|
3 سال پیش | |
---|---|---|
.. | ||
profile | 3 سال پیش | |
ReadMe.org | 6 سال پیش | |
addons_config.org | 6 سال پیش |
A Firefox Developer Edition user.js
configuration file. HardenedFDE focuses on
privacy and security, not anonymity. Features relying on 3rd party services may
be partially on eg. safeBrowsing
.
Whilst this configuration might work on the Nightly distribution it probably
won't fully work on the current stable release, and certainly not on ESR. Beware,
since 58 toolkit.telemetry.enabled
has been locked to true
for pre-releases.
We can verify that uploads are disabled at about:telemetry
.
Settings in user.js
take precedence over those in the preferences, and about:config
.
Any changes to those two will be lost on restart.
These are a few things to consider about this user.js
.
Some settings rely on external add-ons for better performance. More on those, and other settings are explained in the Manual Settings section below.
user.js
file.Whether or not we review all setting, is good to have a view at the top two sections,
~VINTAGE~ and SENSITIVE
. They are meant for convenient access to options that
we may want to tune on a per-profile basis.
As user.js changes the browser behavior, it is recommended to either:
Note: when following instructions from those links you may need to replace the directory paths with the ones below.
Copy user.js
to desired user profile directory. The file should be located at:
~/.mozilla/firefox/XXXXXXXX.your_profile_name/user.js
~/Library/Application Support/Firefox/Profiles/XXXXXXXX.your_profile_name
Copy user.js
to the Firefox installation directory. The file should be at:
/etc/firefox/firefox.js
or /etc/firefox-esr/firefox-esr.js
/Applications/FirefoxDeveloperEdition.app/Contents/Resources/mozilla.cfg
In this file, we can substitute user_pref
for:
pref
to set the default value for all profiles where it hasn't been set yet.lockPref
sets the default values for new profiles. Beware: these settings areCreate /Applications/FirefoxDeveloperEdition.app/Contents/Resources/defaults/pref/local-settings.js
pref("general.config.obscure_value", 0);
pref("general.config.filename", "mozilla.cfg");
If mozilla.cfg
still fails to load, we must add a blank comment (//
) at the
top of it.
Surf to about:support
, scroll down looking for "Important Modified Preferences"
and "user.js Preferences" sections.
Alternatively, go to about:config
and check that _user.js.log
is set to
~user.js loaded~
Password storage has been disabled for security reasons. Make sure to install a password manager that doesn't rely on the browser.
We can enable DoH starting w/Firefox 62. So it's been enabled in this ~user.js~ with default DoH resolver.
For other resolver options check out this list by the curl team, or even this Wikipedia page.
Whilst Firefox comes bundle with a few search engines we can add our preferred ones.
Simply visit their main search page, and click the three dots next
the URL bar. Click on Add Search Engine
. Alternatively, purge unused engines.
We can add two Searx instances to ensure we can always search the web privately. Alternatively, you can use close-source solutions such as DuckDuckGo, and Startpage. Also, check out the official add or remove a search engine in firefox post.
Tracking is too profitable to be easy to turn off. These add-ons help a lot:
Read addons_config.org
for sample configurations.
Some useful add-ons for web development (code not reviewed thoroughly):
C-&
)Other privacy-focus extensions we've seen recommended (may replace some of the above)
Power-extensions that require more user interaction for a customized experienced.
Alternative viewers
For privacy reasons, downloads aren't allowed on Desktop. To set your default "downloads":
General > Downloads > Save files to
Both, camera and mic, have been blocked for privacy reason. To add site exceptions:
Page Info > Permissions > Use the Camera/Microphone
To manage site exceptions:
Options > Privacy & Security > Permissions > Camera/Microphone > Settings
Web fonts can easily be abused on many ways, either directly or by requiring unsafe configuration settings.
Best course of action, privacy wise, is to use whatever fonts Firefox
includes. Next, to set the font.name.*
family of attributes to
something suitable to your system. If none of that is suitable check out
these:
On macOS we might want to remove these fonts to reduce fingerprinting.
In Font Book
remove Wingdings 2
, Wingdings 3
, Arial Unicode MS
,
~Brush Script MT~, Georgia
, and Helvetica
.
Notifying is complex, requires features that may be abused. If you want to enable
them, in the VINTAGE
section toggle:
dom.serviceWorkers.enabled
dom.webnotifications.enabled
dom.webnotifications.serviceworker.enabled
Even then notifications are blocked by default, yes they're that unsafe. To add site exceptions:
Page Info > Permissions > Receive Notifications
To manage site exceptions:
Options > Privacy & Security > Permissions > Notifications > Settings
As mentioned above, we can temporarily reset any option on the about:config~
page. For instance, to toggle ~media.autoplay.enabled
which may break some media
players. Also, to temporarily toggle on ~network.captive-portal-service.enabled~
to allow WiFi hotspot login pages. Overrides last until we restart the browser.
The user.js
, as is, has browser and add-on automatic updates turn on.
On BSD/Linux we may need to toggle app.update.auto
under KEEP UP
.