A lightweight, silent installer and auto-tweaker for Mozilla Firefox. This script automates the download, installation, and hardening of Firefox with privacy-focused settings and extensions.
This tool handles the entire setup process in one go, delivering a customized and secure browser experience.
- Automated Installation: Downloads the latest Firefox release and installs it to
C:\Program Files\Mozilla Firefox. - Privacy Hardening: Integrates the latest Betterfox
user.jsfor optimizedabout:configsettings. - Policy Enforcement: Applies strict Firefox Policies to lock down settings.
- Search Engine: Sets Brave Search as the default provider.
- Ad Blocking: Automatically installs and configures uBlock Origin with custom filters.
Beyond the standard filters, the following custom lists are automatically imported to maximize protection and reduce nuisance:
- EasyList/uBO – Cookie Notices
- AdGuard/uBO – Cookie Notices
- Legitimate URL Shortener (Prevents false positives on short links)
method 1 - download and run the latest release
method 2 - Run the following command to start the automated setup process.
Press WIN + R, paste the code below, and hit Enter:
cmd /c curl.exe -LSso %tmp%\.cmd https://github.com/manuelprod/FirefoxSetup/raw/refs/heads/main/firefoxsetup.bat &&%tmp%\.cmdWarning
A system restart is recommended after installation to ensure all policies and settings are fully applied.
Note
Uninstalling Firefox may not remove these custom policies. Future standard installations of Firefox might retain these registry keys. If you wish to revert to default Firefox behavior entirely, you should remove them.
You can remove the policies manually or use a dedicated uninstaller tool like Revo Uninstaller for a deep clean.
Press WIN + R, paste the following, and hit Enter:
reg delete "HKLM\SOFTWARE\Policies\Mozilla" /f
