Without routing traffic through the Tor network. Useful in testing for Web development, to not install another Firefox if you already have Tor.
This script applies the following settings. You can set these in about:config
extensions.torbutton.test_enabled = false
extensions.torlauncher.start_tor = false
network.dns.disabled = false
network.proxy.type = 0
You can customize the Tor Browser using a Firefox policies.json
file. Its location is defined at the top of the script
- Windows using Chocolatey:
"${ChocolateyInstall}/lib/tor-browser/tools/tor-browser/Browser/distribution"
- Mac OS:
Firefox.app/Contents/Resources/distribution
- Linux:
<firefox installation directory>/distribution
or system-wide/etc/firefox/policies
Once the correct policies directory is set the script writes the settings for using Tor Browser as a plain Firefox installation, using jq
.
The script starts the browser, waits for it to close, then restores the original policy settings.
It is useful to create a shortcut, Firefox from Tor for example, that invokes this script. For example, on Windows using Git Bash the shortcut's Target field could be:
"C:\Program Files\Git\git-bash.exe" --hide "D:\Config\Programs\Tor Browser\tor-as-firefox.sh"
To further signal that the window is not a Tor Browser window you can go to about:profiles
, open Root Directory and place /chrome/userContent.css
. The script also temporarily enables this stylesheet by setting toolkit.legacyUserProfileCustomizations.stylesheets
to true.
Customize Firefox using policies.json | Firefox for Enterprise Help
Creating a user.js
file did not work. But here are the same settings in that format:
// User.js user preferences file to make Tor Browser run as simple Firefox
user_pref("extensions.torbutton.test_enabled", false)
user_pref("extensions.torlauncher.start_tor", false)
user_pref("network.dns.disabled", false)
user_pref("network.proxy.type", 0)