custom homepage

This commit is contained in:
Michael H.G. Schmidt 2024-12-13 23:45:59 +01:00
parent 51de7a5b43
commit 47c4aa9536
5 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,5 @@
; SNAPCONTROL config file.
; https://gitea.exabyte-systems.com/WINDOWS/snapcontrol.git
; https://redbeard.ebslan.de/WINDOWS/snapcontrol.git
;
; This tool creates an image backups of windows machines,
; it uses the Drive Snapshot tool by Tom Ehlert Software.

View File

@ -42,6 +42,7 @@ set bluetooth_networking=0
set ms_tcpip6=0
set ms_implat=0
set ms_server=0
set browser_homepage=google.com
echo ####### %0 #######
date /t
@ -95,6 +96,7 @@ echo bluetooth_networking=%bluetooth_networking%
echo ms_tcpip6=%ms_tcpip6%
echo ms_implat=%ms_implat%
echo ms_server=%ms_server%
echo browser_homepage=%browser_homepage%
echo ++++++++++++++++++
echo.

View File

@ -30,7 +30,7 @@ defaultPref("browser.search.region", "US");
lockPref("browser.search.suggest.enabled", false);
defaultPref("browser.shell.checkDefaultBrowser", false);
defaultPref("browser.shell.didSkipDefaultBrowserCheckOnFirstRun", true);
lockPref("browser.startup.homepage", "exabyte-systems.com");
lockPref("browser.startup.homepage", "___HOMEPAGE___");
defaultPref("browser.tabs.warnOnClose", false);
lockPref("browser.urlbar.suggest.bookmark", false);
lockPref("browser.urlbar.suggest.history", false);

View File

@ -4,6 +4,7 @@ set CONFIG=config\firefox
set SCRIPTS=..\scripts
set SOFTWARE=..\software
set EXE=firefox-setup.exe
if not defined browser_homepage set browser_homepage=google.com
if NOT EXIST %SOFTWARE%\%EXE% (
echo ERROR: %SOFTWARE%\%EXE% not found!
@ -38,6 +39,9 @@ rem copy config ...
copy /Y %CONFIG%\local-settings.js %FIREFOXBASE%\defaults\pref
copy /Y %CONFIG%\mozilla.cfg %FIREFOXBASE%
rem set browser homepage ...
searchreplace "%ProgramFiles%\Mozilla Firefox\mozilla.cfg" ___HOMEPAGE___ %browser_homepage%
echo disabling FireFox updates (all users) ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox" ^
/v DisableAppUpdate ^

View File

@ -22,4 +22,5 @@ set bluetooth_networking=0
set ms_tcpip6=0
set ms_implat=0
set ms_server=0
set browser_homepage=google.com