mirror of
https://github.com/theitaliandeveloper/WindowsPPKGOptimizer.git
synced 2025-10-02 15:10:48 +00:00
Add project files
This commit is contained in:
25
TweakFirefox.cmd
Normal file
25
TweakFirefox.cmd
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
:: Code took from ReviOS
|
||||
:: https://github.com/meetrevision/playbook/blob/main/src/Executables/FIREFOX.cmd
|
||||
|
||||
setlocal EnableDelayedExpansion
|
||||
for /f "usebackq tokens=2 delims=\" %%e in (`reg query "HKEY_USERS" ^| findstr /r /x /c:"HKEY_USERS\\S-.*" /c:"HKEY_USERS\\AME_UserHive_[^_]*"`) do (
|
||||
REM If the "Volatile Environment" key exists, that means it is a proper user. Built in accounts/SIDs do not have this key.
|
||||
reg query "HKU\%%e" | findstr /c:"Volatile Environment" /c:"AME_UserHive_" > nul 2>&1
|
||||
if not errorlevel 1 (
|
||||
call :USERREG "%%e"
|
||||
)
|
||||
)
|
||||
call :USERREG ".DEFAULT"
|
||||
goto MozManServ
|
||||
:USERREG
|
||||
reg add "HKU\%~1\Software\Policies\Mozilla\Firefox" /v "DisableTelemetry" /t REG_DWORD /d 1 /f >NUL 2>nul
|
||||
reg add "HKU\%~1\Software\Policies\Mozilla\Firefox" /v "DisablePocket" /t REG_DWORD /d 1 /f >NUL 2>nul
|
||||
reg add "HKU\%~1\Software\Policies\Mozilla\Firefox" /v "CaptivePortal" /t REG_DWORD /d 0 /f >NUL 2>nul
|
||||
reg add "HKU\%~1\Software\Policies\Mozilla\Firefox" /v "DisableFirefoxStudies" /t REG_DWORD /d 1 /f >NUL 2>nul
|
||||
reg add "HKU\%~1\Software\Policies\Mozilla\Firefox" /v "ExtensionSettings" /t REG_MULTI_SZ /d "{\0 \"uBlock0@raymondhill.net\": {\0 \"installation_mode\": \"force_installed\",\0 \"install_url\": \"https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi\"\0 }\0}" /f >NUL 2>nul
|
||||
reg add "HKU\%~1\Software\Policies\Mozilla\Firefox" /v "DisableDefaultBrowserAgent" /t REG_DWORD /d 1 /f >NUL 2>nul
|
||||
reg add "HKU\%~1\Software\Policies\Mozilla\Firefox" /v "Preferences" /t REG_MULTI_SZ /d "{\"network.cookie.sameSite.laxByDefault\":{\"Value\":true,\"Status\":\"user\"},\"network.cookie.sameSite.noneRequiresSecure\":{\"Value\":true,\"Status\":\"user\"},\"network.cookie.sameSite.schemeful\":{\"Value\":true,\"Status\":\"user\"},\"browser.contentblocking.category\":{\"Value\":\"strict\",\"Status\":\"user\"},\"browser.newtabpage.activity-stream.showSponsored\":{\"Value\":false,\"Status\":\"user\"},\"browser.newtabpage.activity-stream.showSponsoredTopSites\":{\"Value\":false,\"Status\":\"user\"}}" /f >NUL 2>nul
|
||||
|
||||
:MozManServ
|
||||
"%ProgramFiles(x86)%\Mozilla Maintenance Service\uninstall.exe" /S >NUL 2>nul
|
Reference in New Issue
Block a user