Firefox configs for security, privacy, usability and performance
Install UBlock Origin, Sponsorblock, Decentraleyes, PrivacyBadger and Containers (eg. Google container, facebook container).
You can make firefox fully-suited to your needs and for the maximum security, privacy, usability and performance without very much tweaking by changing the user js in your browser profile.
Firefox profiles are located by default in ~/.mozilla/firefox/ in Linux and %APPDATA%\Mozilla\Firefox\Profiles\ in Windows.
- Create a new Firefox profile or use an existing one and move to the profile directory. You can navigate to
about:profilesand find the location for your current profile's root directory as well as find the option to create a new profile. - If you want to try this out, you can go with creating a new profile.
- Copy user.js to your profile's root directory test it out for sometime and make the required changes in your original profile.
- For changing some prefs you can create a new file in profile's Root Directory,
user-overrides.jsand fill it with the prefs you want to override. Now, append the content at the end ofuser.jsfile. You can download from here. - Done! Happy browsing.
The user.js file is taken from various other preexisting projects like arkenfox, betterfox and other projects and modified to suite the needs of a normal user.
Refer to this guide - The Hitchhiker’s Guide to Online Anonymity
If you also want to change the appearance of Firefox, you can try searching for some userchrome projects on GitHub or elsewhere and giving them a try. The chrome/ folder in this repo contains a minimal userChrome.css that works with the firefox-csshacks styles — see the section below for setup instructions.
You can also use the firefox-csshacks repo for a wide variety of CSS styles. To set it up alongside this config:
-
Open a terminal and
cdinto your Firefox profile folder (see the "Change user js" section above for the profile location). -
If you already have a
chromefolder, rename it before cloning. After cloning, copy the contents of the old folder into the newchromefolder. -
Clone the repository into the
chromefolder:git clone https://github.com/MrOtherGuy/firefox-csshacks.git chrome -
(Optional) Copy
userChrome_example.csstouserChrome.cssanduserContent_example.csstouserContent.cssinside thechromefolder. -
@importindividual style files into youruserChrome.css. All@importstatements must be placed before anything else in the file. CheckuserChrome_example.cssfor how it uses@import. -
Restart Firefox for the changes to take effect.
Afterwards, run git pull inside the chrome folder to update to the latest styles. git pull will not overwrite your userChrome.css or userContent.css, so you can safely add custom rules to those files.
- A few of the nifty tricks used are present in the
tricks.mdfile. - Flags mentioned in the about:config are largely undocumented. Here's an effort to document most of the flags present. Intial pages are scraped from https://kb.mozillazine.org/ and are present in the
mzpagesdirectory.
If you really liked this project, star it and also contribute back.
