These scripts are based off of the ChromeLoader.exe that is packaged with ChromePortable from Carsten Knobloch at
Caschy's Blog. My version of the script is more flexible by providing an INI file with certains switches enabled by default (such as --bookmark-menu). The INI file can be changed to customized any setup. Also, switches can be passed through ChromeLoader.exe (e.g. ChromeLoader.exe --no-sandbox)
Code:
;==============================================================================
;
; TITLE: ChromeLoader
; VERSION: v0.1.0
; LINK: http://www.autohotkey.com/forum/
;
; AUTHOR: Voltron43
; DATE: 10/10/09
; HOMEPAGE: http://www.autohotkey.net/~Voltron43/#ChromeLoader
;
;==============================================================================
;
; DESCRIPTION: This script if based off of the ChromeLoader.exe that is
; packaged with ChromePortable from Carsten Knobloch at
; Caschy's Blog <http://stadt-bremerhaven.de/>. My version of
; the script is more flexible by providing an INI file with
; certains switches enabled by default (such as --bookmark-menu).
; The INI file can be changed to customized any setup. Also,
; switches can be passed through ChromeLoader.exe
; (e.g. ChromeLoader.exe --no-sandbox)
;
;==============================================================================
; http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/chrome_switches.cc?view=markup
;==============================================================================
#NoEnv
#NoTrayIcon
SendMode Input
SetWorkingDir %A_ScriptDir%
#SingleInstance, Force
sSettingsName := "ChromeLoader.ini"
IniRead, sChromePath, %sSettingsName%, Settings, sChromePath, chrome\chrome.exe
IniRead, sProfilePath, %sSettingsName%, Settings, user-data-dir, profil
IniRead, bBookmarksButton, %sSettingsName%, Settings, bookmark-menu, 1
IniRead, bEnableSync , %sSettingsName%, Settings, enable-sync , 0
IniRead, bStartMaximized, %sSettingsName%, Settings, start-maximized, 0
IfNotExist, %sSettingsName%
{
IniWrite, %sChromePath%, %sSettingsName%, Settings, sChromePath
IniWrite, %sProfilePath%, %sSettingsName%, Settings, user-data-dir
IniWrite, %bBookmarksButton%, %sSettingsName%, Settings, bookmark-menu
IniWrite, %bEnableSync%, %sSettingsName%, Settings, enable-sync
IniWrite, %bStartMaximized%, %sSettingsName%, Settings, start-maximized
}
sPath = %sChromePath%
sPath .= ((sProfilePath) ? " --user-data-dir=""" . sProfilePath . """" : "")
. ((bBookmarksButton) ? " --bookmark-menu" : "")
. ((bEnableSync) ? " --enable-sync" : "")
. ((bStartMaximized) ? " --start-maximized" : "")
If (%0% != 0)
Loop, %0%
sPath .= A_Space . %A_Index%
Run, % sPath
ExitApp
Code:
;==============================================================================
;
; TITLE: IncognitoChromeLoader
; VERSION: v0.1.0
; LINK: http://www.autohotkey.com/forum/
;
; AUTHOR: Voltron43
; DATE: 10/10/09
; HOMEPAGE: http://www.autohotkey.net/~Voltron43/#ChromeLoader
; LICENSE: GNU General Public License <http://www.gnu.org/licenses/gpl.txt>
;
;==============================================================================
;
; DESCRIPTION: This script if based off of the ChromeLoader.exe that is
; packaged with ChromePortable from Carsten Knobloch at
; Caschy's Blog <http://stadt-bremerhaven.de/>. My version of
; the script is more flexible by providing an INI file with
; certains switches enabled by default (such as --bookmark-menu).
; The INI file can be changed to customized any setup. Also,
; switches can be passed through ChromeLoader.exe
; (e.g. ChromeLoader.exe --no-sandbox)
;
;==============================================================================
; http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/chrome_switches.cc?view=markup
;==============================================================================
#NoEnv
#NoTrayIcon
SendMode Input
SetWorkingDir %A_ScriptDir%
#SingleInstance, Force
sSettingsName := "ChromeLoader.ini"
IniRead, sChromePath, %sSettingsName%, Settings, sChromePath, chrome\chrome.exe
IniRead, sProfilePath, %sSettingsName%, Settings, user-data-dir, profil
IniRead, bBookmarksButton, %sSettingsName%, Settings, bookmark-menu, 1
IniRead, bEnableSync , %sSettingsName%, Settings, enable-sync , 0
IniRead, bStartMaximized, %sSettingsName%, Settings, start-maximized, 0
IfNotExist, %sSettingsName%
{
IniWrite, %sChromePath%, %sSettingsName%, Settings, sChromePath
IniWrite, %sProfilePath%, %sSettingsName%, Settings, user-data-dir
IniWrite, %bBookmarksButton%, %sSettingsName%, Settings, bookmark-menu
IniWrite, %bEnableSync%, %sSettingsName%, Settings, enable-sync
IniWrite, %bStartMaximized%, %sSettingsName%, Settings, start-maximized
}
sPath = %sChromePath% --incognito
sPath .= ((sProfilePath) ? " --user-data-dir=""" . sProfilePath . """" : "")
. ((bBookmarksButton) ? " --bookmark-menu" : "")
. ((bEnableSync) ? " --enable-sync" : "")
. ((bStartMaximized) ? " --start-maximized" : "")
If (%0% != 0)
Loop, %0%
sPath .= A_Space . %A_Index%
Run, % sPath
ExitApp