CUSTOM PREFS

This commit is contained in:
Wraaath 2024-08-24 23:13:24 +02:00
parent e6bc56c42b
commit c1a78499f4

View file

@ -68,12 +68,36 @@
******/ ******/
/* CUSTOM CUSTOM CUSTOM CUSTOM CUSTOM CUSTOM CUSTOM CUSTOM CUSTOM CUSTOM CUSTOM CUSTOM CUSTOM CUSTOM */
user_pref("browser.urlbar.suggest.calculator", true); // Calculator in URL bar
user_pref("browser.urlbar.unitConversion.enabled", true); // Units in URL bar
user_pref("browser.urlbar.trimURLs", false); // Don't trim HTTP/HTTPS
user_pref("browser.tabs.closeWindowWithLastTab", false); // Don't close Firefox when last tab closed
user_pref("browser.tabs.loadBookmarksInTabs", true); // Open bookmark in new tab
// user_pref("browser.tabs.min_inactive_duration_before_unload", 30000) // Unload tabs after 30secs
user_pref("browser.ctrlTab.sortByRecentlyUsed", true); // Cycle ctrl+tab thru recently used
user_pref("browser.compactmode.show", true); // Compact mode
user_pref("browser.bookmarks.openInTabClosesMenu", false);
user_pref("browser.backspace_action", 0); // Restore/enable backspace to return to previous page
user_pref("browser.toolbars.bookmarks.visibility", "always"); // Always show bookmarks bar
user_pref("browser.vpn_promo.enabled", false); // Bye bye VPN promo
user_pref("extensions.pocket.enabled", false); // I don't use Firefox Pocket
user_pref("middlemouse.paste", false); // No paste with mousewheel click
user_pref("widget.non-native-theme.scrollbar.style", 4); // Win10 like scrollbar
user_pref("devtools.chrome.enabled", true); // Enable devtools
user_pref("findbar.highlightAll", true); // Highlight all by default with find
user_pref("image.http.accept", "*/*"); // Remove webp as the default image format. Default = "image/webp,*/*"
user_pref("layout.word_select.eat_space_to_next_word", false); // Don't select the space next to a word when selecting a word
/* START: internal custom pref to test for syntax errors /* START: internal custom pref to test for syntax errors
* [NOTE] Not all syntax errors cause parsing to abort i.e. reaching the last debug pref * [NOTE] Not all syntax errors cause parsing to abort i.e. reaching the last debug pref
* no longer necessarily means that all prefs have been applied. Check the console right * no longer necessarily means that all prefs have been applied. Check the console right
* after startup for any warnings/error messages related to non-applied prefs * after startup for any warnings/error messages related to non-applied prefs
* [1] https://blog.mozilla.org/nnethercote/2018/03/09/a-new-preferences-parser-for-firefox/ ***/ * [1] https://blog.mozilla.org/nnethercote/2018/03/09/a-new-preferences-parser-for-firefox/ ***/
user_pref("_user.js.parrot", "START: Oh yes, the Norwegian Blue... what's wrong with it?"); user_pref(
"_user.js.parrot",
"START: Oh yes, the Norwegian Blue... what's wrong with it?"
);
/* 0000: disable about:config warning ***/ /* 0000: disable about:config warning ***/
user_pref("browser.aboutConfig.showWarning", false); user_pref("browser.aboutConfig.showWarning", false);
@ -102,10 +126,16 @@ user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); //
user_pref("browser.newtabpage.activity-stream.default.sites", ""); user_pref("browser.newtabpage.activity-stream.default.sites", "");
/*** [SECTION 0200]: GEOLOCATION ***/ /*** [SECTION 0200]: GEOLOCATION ***/
user_pref("_user.js.parrot", "0200 syntax error: the parrot's definitely deceased!"); user_pref(
"_user.js.parrot",
"0200 syntax error: the parrot's definitely deceased!"
);
/* 0201: use Mozilla geolocation service instead of Google if permission is granted [FF74+] /* 0201: use Mozilla geolocation service instead of Google if permission is granted [FF74+]
* Optionally enable logging to the console (defaults to false) ***/ * Optionally enable logging to the console (defaults to false) ***/
user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%"); user_pref(
"geo.provider.network.url",
"https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%"
);
// user_pref("geo.provider.network.logging.enabled", true); // [HIDDEN PREF] // user_pref("geo.provider.network.logging.enabled", true); // [HIDDEN PREF]
/* 0202: disable using the OS's geolocation service ***/ /* 0202: disable using the OS's geolocation service ***/
user_pref("geo.provider.ms-windows-location", false); // [WINDOWS] user_pref("geo.provider.ms-windows-location", false); // [WINDOWS]
@ -114,7 +144,10 @@ user_pref("geo.provider.use_gpsd", false); // [LINUX] [HIDDEN PREF]
user_pref("geo.provider.use_geoclue", false); // [FF102+] [LINUX] user_pref("geo.provider.use_geoclue", false); // [FF102+] [LINUX]
/*** [SECTION 0300]: QUIETER FOX ***/ /*** [SECTION 0300]: QUIETER FOX ***/
user_pref("_user.js.parrot", "0300 syntax error: the parrot's not pinin' for the fjords!"); user_pref(
"_user.js.parrot",
"0300 syntax error: the parrot's not pinin' for the fjords!"
);
/** RECOMMENDATIONS ***/ /** RECOMMENDATIONS ***/
/* 0320: disable recommendation pane in about:addons (uses Google Analytics) ***/ /* 0320: disable recommendation pane in about:addons (uses Google Analytics) ***/
user_pref("extensions.getAddons.showPane", false); // [HIDDEN PREF] user_pref("extensions.getAddons.showPane", false); // [HIDDEN PREF]
@ -220,7 +253,10 @@ user_pref("browser.safebrowsing.downloads.remote.enabled", false);
// user_pref("browser.safebrowsing.downloads.remote.url", ""); // Defense-in-depth // user_pref("browser.safebrowsing.downloads.remote.url", ""); // Defense-in-depth
/* 0404: disable SB checks for unwanted software /* 0404: disable SB checks for unwanted software
* [SETTING] Privacy & Security>Security>... "Warn you about unwanted and uncommon software" ***/ * [SETTING] Privacy & Security>Security>... "Warn you about unwanted and uncommon software" ***/
user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false); user_pref(
"browser.safebrowsing.downloads.remote.block_potentially_unwanted",
false
);
user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false); user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
/* 0405: disable "ignore this warning" on SB warnings [FF45+] /* 0405: disable "ignore this warning" on SB warnings [FF45+]
* If clicked, it bypasses the block for that session. This is a means for admins to enforce SB * If clicked, it bypasses the block for that session. This is a means for admins to enforce SB
@ -250,7 +286,10 @@ user_pref("browser.places.speculativeConnect.enabled", false);
// user_pref("browser.send_pings", false); // [DEFAULT: false] // user_pref("browser.send_pings", false); // [DEFAULT: false]
/*** [SECTION 0700]: DNS / DoH / PROXY / SOCKS ***/ /*** [SECTION 0700]: DNS / DoH / PROXY / SOCKS ***/
user_pref("_user.js.parrot", "0700 syntax error: the parrot's given up the ghost!"); user_pref(
"_user.js.parrot",
"0700 syntax error: the parrot's given up the ghost!"
);
/* 0702: set the proxy server to do any DNS lookups when using SOCKS /* 0702: set the proxy server to do any DNS lookups when using SOCKS
* e.g. in Tor, this stops your local DNS server from knowing your Tor destination * e.g. in Tor, this stops your local DNS server from knowing your Tor destination
* as a remote Tor node will handle the DNS request * as a remote Tor node will handle the DNS request
@ -375,7 +414,10 @@ user_pref("network.auth.subresource-http-auth-allow", 1);
user_pref("network.http.windows-sso.enabled", false); // [DEFAULT: false] user_pref("network.http.windows-sso.enabled", false); // [DEFAULT: false]
/*** [SECTION 1000]: DISK AVOIDANCE ***/ /*** [SECTION 1000]: DISK AVOIDANCE ***/
user_pref("_user.js.parrot", "1000 syntax error: the parrot's gone to meet 'is maker!"); user_pref(
"_user.js.parrot",
"1000 syntax error: the parrot's gone to meet 'is maker!"
);
/* 1001: disable disk cache /* 1001: disable disk cache
* [SETUP-CHROME] If you think disk cache helps perf, then feel free to override this * [SETUP-CHROME] If you think disk cache helps perf, then feel free to override this
* [NOTE] We also clear cache on exit (2811) ***/ * [NOTE] We also clear cache on exit (2811) ***/
@ -522,7 +564,10 @@ user_pref("privacy.userContext.newTabContainerOnLeftClick.enabled", false);
* true=Firefox will not choose a container (so your extension can) * true=Firefox will not choose a container (so your extension can)
* false=Firefox will choose the container/no-container (default) * false=Firefox will choose the container/no-container (default)
* [1] https://bugzilla.mozilla.org/1874599 ***/ * [1] https://bugzilla.mozilla.org/1874599 ***/
user_pref("browser.link.force_default_user_context_id_for_external_opens", true); user_pref(
"browser.link.force_default_user_context_id_for_external_opens",
true
);
/*** [SECTION 2000]: PLUGINS / MEDIA / WEBRTC ***/ /*** [SECTION 2000]: PLUGINS / MEDIA / WEBRTC ***/
user_pref("_user.js.parrot", "2000 syntax error: the parrot's snuffed it!"); user_pref("_user.js.parrot", "2000 syntax error: the parrot's snuffed it!");
@ -542,12 +587,18 @@ user_pref("media.peerconnection.ice.no_host", false);
user_pref("media.gmp-provider.enabled", false); user_pref("media.gmp-provider.enabled", false);
/*** [SECTION 2400]: DOM (DOCUMENT OBJECT MODEL) ***/ /*** [SECTION 2400]: DOM (DOCUMENT OBJECT MODEL) ***/
user_pref("_user.js.parrot", "2400 syntax error: the parrot's kicked the bucket!"); user_pref(
"_user.js.parrot",
"2400 syntax error: the parrot's kicked the bucket!"
);
/* 2402: prevent scripts from moving and resizing open windows ***/ /* 2402: prevent scripts from moving and resizing open windows ***/
user_pref("dom.disable_window_move_resize", true); user_pref("dom.disable_window_move_resize", true);
/*** [SECTION 2600]: MISCELLANEOUS ***/ /*** [SECTION 2600]: MISCELLANEOUS ***/
user_pref("_user.js.parrot", "2600 syntax error: the parrot's run down the curtain!"); user_pref(
"_user.js.parrot",
"2600 syntax error: the parrot's run down the curtain!"
);
/* 2603: remove temp files opened from non-PB windows with an external application /* 2603: remove temp files opened from non-PB windows with an external application
* [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=302433,1738574 ***/ * [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=302433,1738574 ***/
user_pref("browser.download.start_downloads_in_tmp_dir", true); // [FF102+] user_pref("browser.download.start_downloads_in_tmp_dir", true); // [FF102+]
@ -624,7 +675,10 @@ user_pref("extensions.postDownloadThirdPartyPrompt", false);
// user_pref("extensions.webextensions.restrictedDomains", ""); // user_pref("extensions.webextensions.restrictedDomains", "");
/*** [SECTION 2700]: ETP (ENHANCED TRACKING PROTECTION) ***/ /*** [SECTION 2700]: ETP (ENHANCED TRACKING PROTECTION) ***/
user_pref("_user.js.parrot", "2700 syntax error: the parrot's joined the bleedin' choir invisible!"); user_pref(
"_user.js.parrot",
"2700 syntax error: the parrot's joined the bleedin' choir invisible!"
);
/* 2701: enable ETP Strict Mode [FF86+] /* 2701: enable ETP Strict Mode [FF86+]
* ETP Strict Mode enables Total Cookie Protection (TCP) * ETP Strict Mode enables Total Cookie Protection (TCP)
* [NOTE] Adding site exceptions disables all ETP protections for that site and increases the risk of * [NOTE] Adding site exceptions disables all ETP protections for that site and increases the risk of
@ -642,7 +696,10 @@ user_pref("browser.contentblocking.category", "strict"); // [HIDDEN PREF]
// user_pref("privacy.antitracking.enableWebcompat", false); // user_pref("privacy.antitracking.enableWebcompat", false);
/*** [SECTION 2800]: SHUTDOWN & SANITIZING ***/ /*** [SECTION 2800]: SHUTDOWN & SANITIZING ***/
user_pref("_user.js.parrot", "2800 syntax error: the parrot's bleedin' demised!"); user_pref(
"_user.js.parrot",
"2800 syntax error: the parrot's bleedin' demised!"
);
/* 2810: enable Firefox to clear items on shutdown /* 2810: enable Firefox to clear items on shutdown
* [SETTING] Privacy & Security>History>Custom Settings>Clear history when Firefox closes | Settings ***/ * [SETTING] Privacy & Security>History>Custom Settings>Clear history when Firefox closes | Settings ***/
user_pref("privacy.sanitize.sanitizeOnShutdown", true); user_pref("privacy.sanitize.sanitizeOnShutdown", true);
@ -798,7 +855,10 @@ user_pref("privacy.fingerprintingProtection.remoteOverrides.enabled", false);
1787790 - normalize system fonts (FF128) 1787790 - normalize system fonts (FF128)
1835987 - spoof timezone as Atlantic/Reykjavik (previously FF55+ was UTC) (FF128) 1835987 - spoof timezone as Atlantic/Reykjavik (previously FF55+ was UTC) (FF128)
***/ ***/
user_pref("_user.js.parrot", "4500 syntax error: the parrot's popped 'is clogs"); user_pref(
"_user.js.parrot",
"4500 syntax error: the parrot's popped 'is clogs"
);
/* 4501: enable RFP /* 4501: enable RFP
* [SETUP-WEB] RFP can cause some website breakage: mainly canvas, use a canvas site exception via the urlbar. * [SETUP-WEB] RFP can cause some website breakage: mainly canvas, use a canvas site exception via the urlbar.
* RFP also has a few side effects: mainly timezone is UTC, and websites will prefer light theme * RFP also has a few side effects: mainly timezone is UTC, and websites will prefer light theme
@ -863,7 +923,10 @@ user_pref("webgl.disabled", false);
/*** [SECTION 5000]: OPTIONAL OPSEC /*** [SECTION 5000]: OPTIONAL OPSEC
Disk avoidance, application data isolation, eyeballs... Disk avoidance, application data isolation, eyeballs...
***/ ***/
user_pref("_user.js.parrot", "5000 syntax error: the parrot's taken 'is last bow"); user_pref(
"_user.js.parrot",
"5000 syntax error: the parrot's taken 'is last bow"
);
/* 5001: start Firefox in PB (Private Browsing) mode /* 5001: start Firefox in PB (Private Browsing) mode
* [NOTE] In this mode all windows are "private windows" and the PB mode icon is not displayed * [NOTE] In this mode all windows are "private windows" and the PB mode icon is not displayed
* [NOTE] The P in PB mode can be misleading: it means no "persistent" disk state such as history, * [NOTE] The P in PB mode can be misleading: it means no "persistent" disk state such as history,
@ -1053,7 +1116,10 @@ user_pref("extensions.quarantinedDomains.enabled", true); // [DEFAULT: true]
// user_pref("privacy.partition.serviceWorkers", ""); // user_pref("privacy.partition.serviceWorkers", "");
/*** [SECTION 7000]: DON'T BOTHER ***/ /*** [SECTION 7000]: DON'T BOTHER ***/
user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies!"); user_pref(
"_user.js.parrot",
"7000 syntax error: the parrot's pushing up daisies!"
);
/* 7001: disable APIs /* 7001: disable APIs
* Location-Aware Browsing, Full Screen * Location-Aware Browsing, Full Screen
* [WHY] The API state is easily fingerprintable. * [WHY] The API state is easily fingerprintable.
@ -1168,7 +1234,10 @@ user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies
[WHY] They are insufficient to help anti-fingerprinting and do more harm than good [WHY] They are insufficient to help anti-fingerprinting and do more harm than good
[WARNING] DO NOT USE with RFP. RFP already covers these and they can interfere [WARNING] DO NOT USE with RFP. RFP already covers these and they can interfere
***/ ***/
user_pref("_user.js.parrot", "8000 syntax error: the parrot's crossed the Jordan"); user_pref(
"_user.js.parrot",
"8000 syntax error: the parrot's crossed the Jordan"
);
/* 8001: prefsCleaner: reset items useless for anti-fingerprinting ***/ /* 8001: prefsCleaner: reset items useless for anti-fingerprinting ***/
// user_pref("browser.display.use_document_fonts", ""); // user_pref("browser.display.use_document_fonts", "");
// user_pref("browser.zoom.siteSpecific", ""); // user_pref("browser.zoom.siteSpecific", "");
@ -1194,18 +1263,30 @@ user_pref("_user.js.parrot", "8000 syntax error: the parrot's crossed the Jordan
// user_pref("webgl.enable-debug-renderer-info", ""); // user_pref("webgl.enable-debug-renderer-info", "");
/*** [SECTION 9000]: NON-PROJECT RELATED ***/ /*** [SECTION 9000]: NON-PROJECT RELATED ***/
user_pref("_user.js.parrot", "9000 syntax error: the parrot's cashed in 'is chips!"); user_pref(
"_user.js.parrot",
"9000 syntax error: the parrot's cashed in 'is chips!"
);
/* 9001: disable welcome notices ***/ /* 9001: disable welcome notices ***/
user_pref("browser.startup.homepage_override.mstone", "ignore"); // [HIDDEN PREF] user_pref("browser.startup.homepage_override.mstone", "ignore"); // [HIDDEN PREF]
/* 9002: disable General>Browsing>Recommend extensions/features as you browse [FF67+] ***/ /* 9002: disable General>Browsing>Recommend extensions/features as you browse [FF67+] ***/
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false); user_pref(
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false); "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons",
false
);
user_pref(
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features",
false
);
/* 9004: disable search terms [FF110+] /* 9004: disable search terms [FF110+]
* [SETTING] Search>Search Bar>Use the address bar for search and navigation>Show search terms instead of URL... ***/ * [SETTING] Search>Search Bar>Use the address bar for search and navigation>Show search terms instead of URL... ***/
user_pref("browser.urlbar.showSearchTerms.enabled", false); user_pref("browser.urlbar.showSearchTerms.enabled", false);
/*** [SECTION 9999]: DEPRECATED / RENAMED ***/ /*** [SECTION 9999]: DEPRECATED / RENAMED ***/
user_pref("_user.js.parrot", "9999 syntax error: the parrot's shuffled off 'is mortal coil!"); user_pref(
"_user.js.parrot",
"9999 syntax error: the parrot's shuffled off 'is mortal coil!"
);
/* ESR115.x still uses all the following prefs /* ESR115.x still uses all the following prefs
// [NOTE] replace the * with a slash in the line above to re-enable active ones // [NOTE] replace the * with a slash in the line above to re-enable active ones
// FF116 // FF116
@ -1264,4 +1345,7 @@ user_pref("browser.messaging-system.whatsNewPanel.enabled", false);
// ***/ // ***/
/* END: internal custom pref to test for syntax errors ***/ /* END: internal custom pref to test for syntax errors ***/
user_pref("_user.js.parrot", "SUCCESS: No no he's not dead, he's, he's restin'!"); user_pref(
"_user.js.parrot",
"SUCCESS: No no he's not dead, he's, he's restin'!"
);