Jump to content


Holistic approach to Firefox settings via user.js

Firefox Privacy

  • Please log in to reply
No replies to this topic

#1 lsat


    Advanced Member

  • Members2
  • PipPipPip
  • 66 posts

Posted 29 September 2017 - 06:08 AM

I've came across with different settings via about:config and found them too tiresome, so I've decided to amend the existing user.js from ghacks

Short description is here:


In Firefox profile folder (


Help-> Troubleshooting information-> Profile directory


copy and save your current pref.js file. If something falls apart you can safely delete your user.js and replace  pref.js with its older version. It's important!!


The following part is my amendments to ghacks user.js.


user_pref("network.cookie.cookieBehavior", 1);


2- is too much, you cannot enter some websites with it. Or be ready to change it in user.js ( and in pref.js as it preserve previous user's choice) every time.


user_pref("network.cookie.lifetimePolicy", 2);


the commented option from original file was 0 (The originated server sets the cookie lifetime. (default))


user_pref("privacy.clearOnShutdown.cookies", true);


it was false on ghacks-user.js, but true was the good default option

I also uncommented related safebrowsing options, for example:


 user_pref("browser.safebrowsing.malware.enabled", false);
user_pref("browser.safebrowsing.phishing.enabled", false);


I like some old add-ons , so


user_pref("extensions.legacy.enabled", true);


For those, who prefer searching from the address string


user_pref("keyword.enabled", true);



Yes, this is invocation for DuckDuckGo


user_pref("browser.search.defaultenginename", "DuckDuckGo");

Also tagged with one or more of these keywords: Firefox, Privacy

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Servers online. Online Sessions: 15441 - BW: 59935 Mbit/sYour IP: Access.