11/******
22* name: arkenfox user.js
3- * date: 18 July 2022
4- * version: 102
3+ * date: 18 August 2022
4+ * version: 103
55* url: https://github.com/arkenfox/user.js
66* license: MIT: https://github.com/arkenfox/user.js/blob/master/LICENSE.txt
77
3030 * It is best to use the arkenfox release that is optimized for and matches your Firefox version
3131 * EVERYONE: each release
3232 - run prefsCleaner to reset prefs made inactive, including deprecated (9999s)
33- ESR91
34- - If you are not using arkenfox v91... (not a definitive list)
33+ ESR102
34+ - If you are not using arkenfox v102-1... (not a definitive list)
35+ - 2815: clearOnShutdown cookies + offlineApps should be false
3536 - 9999: switch the appropriate deprecated section(s) back on
3637
3738* INDEX:
@@ -82,7 +83,7 @@ user_pref("_user.js.parrot", "0100 syntax error: the parrot's dead!");
8283user_pref ( "browser.shell.checkDefaultBrowser" , false ) ;
8384/* 0102: set startup page [SETUP-CHROME]
8485 * 0=blank, 1=home, 2=last visited page, 3=resume previous session
85- * [NOTE] Session Restore is cleared with history (2811, 2820 ), and not used in Private Browsing mode
86+ * [NOTE] Session Restore is cleared with history (2811), and not used in Private Browsing mode
8687 * [SETTING] General>Startup>Restore previous session ***/
8788user_pref ( "browser.startup.page" , 0 ) ;
8889/* 0103: set HOME+NEWWINDOW page
@@ -119,6 +120,7 @@ user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/
119120user_pref ( "geo.provider.ms-windows-location" , false ) ; // [WINDOWS]
120121user_pref ( "geo.provider.use_corelocation" , false ) ; // [MAC]
121122user_pref ( "geo.provider.use_gpsd" , false ) ; // [LINUX]
123+ user_pref ( "geo.provider.use_geoclue" , false ) ; // [FF102+] [LINUX]
122124/* 0203: disable region updates
123125 * [1] https://firefox-source-docs.mozilla.org/toolkit/modules/toolkit_modules/Region.html ***/
124126user_pref ( "browser.region.network.url" , "" ) ; // [FF78+]
@@ -219,6 +221,7 @@ user_pref("network.connectivity-service.enabled", false);
219221 [1] https://feeding.cloud.geek.nz/posts/how-safe-browsing-works-in-firefox/
220222 [2] https://wiki.mozilla.org/Security/Safe_Browsing
221223 [3] https://support.mozilla.org/kb/how-does-phishing-and-malware-protection-work
224+ [4] https://educatedguesswork.org/posts/safe-browsing-privacy/
222225***/
223226user_pref ( "_user.js.parrot" , "0400 syntax error: the parrot's passed on!" ) ;
224227/* 0401: disable SB (Safe Browsing)
@@ -344,9 +347,9 @@ user_pref("browser.urlbar.suggest.searches", false);
344347 * [1] https://bugzilla.mozilla.org/1348275 ***/
345348user_pref ( "browser.urlbar.speculativeConnect.enabled" , false ) ;
346349/* 0806: disable location bar leaking single words to a DNS provider **after searching** [FF78+]
347- * 0=never resolve single words , 1=heuristic (default) , 2=always resolve
350+ * 0=never resolve, 1=use heuristics , 2=always resolve
348351 * [1] https://bugzilla.mozilla.org/1642623 ***/
349- user_pref ( "browser.urlbar.dnsResolveSingleWordsAfterSearch" , 0 ) ;
352+ user_pref ( "browser.urlbar.dnsResolveSingleWordsAfterSearch" , 0 ) ; // [DEFAULT: 0 FF104+]
350353/* 0807: disable location bar contextual suggestions [FF92+]
351354 * [SETTING] Privacy & Security>Address Bar>Suggestions from...
352355 * [1] https://blog.mozilla.org/data/2021/09/15/data-and-firefox-suggest/ ***/
@@ -622,17 +625,6 @@ user_pref("media.peerconnection.ice.default_address_only", true);
622625 * [1] https://www.eff.org/deeplinks/2017/10/drms-dead-canary-how-we-just-lost-web-what-we-learned-it-and-what-we-need-do-next ***/
623626user_pref ( "media.eme.enabled" , false ) ;
624627 // user_pref("browser.eme.ui.enabled", false);
625- /* 2030: disable autoplay of HTML5 media [FF63+]
626- * 0=Allow all, 1=Block non-muted media (default), 5=Block all
627- * [NOTE] You can set exceptions under site permissions
628- * [SETTING] Privacy & Security>Permissions>Autoplay>Settings>Default for all websites ***/
629- // user_pref("media.autoplay.default", 5);
630- /* 2031: disable autoplay of HTML5 media if you interacted with the site [FF78+]
631- * 0=sticky (default), 1=transient, 2=user
632- * Firefox's Autoplay Policy Documentation (PDF) is linked below via SUMO
633- * [NOTE] If you have trouble with some video sites, then add an exception (2030)
634- * [1] https://support.mozilla.org/questions/1293231 ***/
635- user_pref ( "media.autoplay.blocking_policy" , 2 ) ;
636628
637629/*** [SECTION 2400]: DOM (DOCUMENT OBJECT MODEL) ***/
638630user_pref ( "_user.js.parrot" , "2400 syntax error: the parrot's kicked the bucket!" ) ;
@@ -762,41 +754,43 @@ user_pref("privacy.partition.serviceWorkers", true);
762754
763755/*** [SECTION 2800]: SHUTDOWN & SANITIZING ***/
764756user_pref ( "_user.js.parrot" , "2800 syntax error: the parrot's bleedin' demised!" ) ;
765- /** COOKIES + SITE DATA : ALLOWS EXCEPTIONS ***/
766- /* 2801: delete cookies and site data on exit
767- * 0=keep until they expire (default), 2=keep until you close Firefox
768- * [NOTE] A "cookie" block permission also controls localStorage/sessionStorage, indexedDB,
769- * sharedWorkers and serviceWorkers. serviceWorkers require an "Allow" permission
770- * [SETTING] Privacy & Security>Cookies and Site Data>Delete cookies and site data when Firefox is closed
771- * [SETTING] to add site exceptions: Ctrl+I>Permissions>Cookies>Allow
772- * [SETTING] to manage site exceptions: Options>Privacy & Security>Permissions>Settings ***/
773- user_pref ( "network.cookie.lifetimePolicy" , 2 ) ;
774- /* 2802: delete cache on exit [FF96+]
775- * [NOTE] We already disable disk cache (1001) and clear on exit (2811) which is more robust
776- * [1] https://bugzilla.mozilla.org/1671182 ***/
777- // user_pref("privacy.clearsitedata.cache.enabled", true);
778-
779- /** SANITIZE ON SHUTDOWN : ALL OR NOTHING ***/
780- /* 2810: enable Firefox to clear items on shutdown (2811)
781- * [SETTING] Privacy & Security>History>Custom Settings>Clear history when Firefox closes ***/
757+ /* 2810: enable Firefox to clear items on shutdown
758+ * [SETTING] Privacy & Security>History>Custom Settings>Clear history when Firefox closes | Settings ***/
782759user_pref ( "privacy.sanitize.sanitizeOnShutdown" , true ) ;
760+
761+ /** SANITIZE ON SHUTDOWN: IGNORES "ALLOW" SITE EXCEPTIONS ***/
783762/* 2811: set/enforce what items to clear on shutdown (if 2810 is true) [SETUP-CHROME]
784- * These items do not use exceptions, it is all or nothing (1681701)
785763 * [NOTE] If "history" is true, downloads will also be cleared
786764 * [NOTE] "sessions": Active Logins: refers to HTTP Basic Authentication [1], not logins via cookies
787- * [NOTE] "offlineApps": Offline Website Data: localStorage, service worker cache, QuotaManager (IndexedDB, asm-cache)
788- * [SETTING] Privacy & Security>History>Custom Settings>Clear history when Firefox closes>Settings
789765 * [1] https://en.wikipedia.org/wiki/Basic_access_authentication ***/
790766user_pref ( "privacy.clearOnShutdown.cache" , true ) ; // [DEFAULT: true]
791767user_pref ( "privacy.clearOnShutdown.downloads" , true ) ; // [DEFAULT: true]
792768user_pref ( "privacy.clearOnShutdown.formdata" , true ) ; // [DEFAULT: true]
793769user_pref ( "privacy.clearOnShutdown.history" , true ) ; // [DEFAULT: true]
794770user_pref ( "privacy.clearOnShutdown.sessions" , true ) ; // [DEFAULT: true]
795- user_pref ( "privacy.clearOnShutdown.offlineApps" , false ) ; // [DEFAULT: false]
796- user_pref ( "privacy.clearOnShutdown.cookies" , false ) ;
797- // user_pref("privacy.clearOnShutdown.siteSettings", false);
771+ // user_pref("privacy.clearOnShutdown.siteSettings", false); // [DEFAULT: false]
772+ /* 2812: set Session Restore to clear on shutdown (if 2810 is true) [FF34+]
773+ * [NOTE] Not needed if Session Restore is not used (0102) or it is already cleared with history (2811)
774+ * [NOTE] If true, this prevents resuming from crashes (also see 5008) ***/
775+ // user_pref("privacy.clearOnShutdown.openWindows", true);
776+
777+ /** SANITIZE ON SHUTDOWN: RESPECTS "ALLOW" SITE EXCEPTIONS FF103+ ***/
778+ /* 2815: set "Cookies" and "Site Data" to clear on shutdown (if 2810 is true) [SETUP-CHROME]
779+ * [NOTE] Exceptions: A "cookie" block permission also controls "offlineApps" (see note below).
780+ * serviceWorkers require an "Allow" permission. For cross-domain logins, add exceptions for
781+ * both sites e.g. https://www.youtube.com (site) + https://accounts.google.com (single sign on)
782+ * [NOTE] "offlineApps": Offline Website Data: localStorage, service worker cache, QuotaManager (IndexedDB, asm-cache)
783+ * [WARNING] Be selective with what sites you "Allow", as they also disable partitioning (1767271)
784+ * [SETTING] to add site exceptions: Ctrl+I>Permissions>Cookies>Allow (when on the website in question)
785+ * [SETTING] to manage site exceptions: Options>Privacy & Security>Permissions>Settings ***/
786+ user_pref ( "privacy.clearOnShutdown.cookies" , true ) ; // Cookies
787+ user_pref ( "privacy.clearOnShutdown.offlineApps" , true ) ; // Site Data
788+ /* 2816: set cache to clear on exit [FF96+]
789+ * [NOTE] We already disable disk cache (1001) and clear on exit (2811) which is more robust
790+ * [1] https://bugzilla.mozilla.org/1671182 ***/
791+ // user_pref("privacy.clearsitedata.cache.enabled", true);
798792
799- /** SANITIZE MANUAL: ALL OR NOTHING ***/
793+ /** SANITIZE MANUAL: IGNORES "ALLOW" SITE EXCEPTIONS ***/
800794/* 2820: reset default items to clear with Ctrl-Shift-Del [SETUP-CHROME]
801795 * This dialog can also be accessed from the menu History>Clear Recent History
802796 * Firefox remembers your last choices. This will reset them when you start Firefox
@@ -809,13 +803,9 @@ user_pref("privacy.cpd.sessions", true); // [DEFAULT: true]
809803user_pref ( "privacy.cpd.offlineApps" , false ) ; // [DEFAULT: false]
810804user_pref ( "privacy.cpd.cookies" , false ) ;
811805 // user_pref("privacy.cpd.downloads", true); // not used, see note above
806+ // user_pref("privacy.cpd.openWindows", false); // Session Restore
812807 // user_pref("privacy.cpd.passwords", false);
813808 // user_pref("privacy.cpd.siteSettings", false);
814- /* 2821: clear Session Restore data when sanitizing on shutdown or manually [FF34+]
815- * [NOTE] Not needed if Session Restore is not used (0102) or it is already cleared with history (2811)
816- * [NOTE] privacy.clearOnShutdown.openWindows prevents resuming from crashes (also see 5008) ***/
817- // user_pref("privacy.clearOnShutdown.openWindows", true);
818- // user_pref("privacy.cpd.openWindows", true);
819809/* 2822: reset default "Time range to clear" for "Clear Recent History" (2820)
820810 * Firefox remembers your last choice. This will reset the value when you start Firefox
821811 * 0=everything, 1=last hour, 2=last two hours, 3=last four hours, 4=today
@@ -918,7 +908,7 @@ user_pref("privacy.resistFingerprinting.letterboxing", true); // [HIDDEN PREF]
918908user_pref ( "browser.startup.blankWindow" , false ) ;
919909/* 4510: disable using system colors
920910 * [SETTING] General>Language and Appearance>Fonts and Colors>Colors>Use system colors ***/
921- user_pref ( "browser.display.use_system_colors" , false ) ; // [DEFAULT false NON-WINDOWS]
911+ user_pref ( "browser.display.use_system_colors" , false ) ; // [DEFAULT: false NON-WINDOWS]
922912/* 4511: enforce non-native widget theme
923913 * Security: removes/reduces system API calls, e.g. win32k API [1]
924914 * Fingerprinting: provides a uniform look and feel across platforms [2]
@@ -1080,8 +1070,6 @@ user_pref("security.tls.version.enable-deprecated", false); // [DEFAULT: false]
10801070 * Web Compatibility Reporter adds a "Report Site Issue" button to send data to Mozilla
10811071 * [WHY] To prevent wasting Mozilla's time with a custom setup ***/
10821072user_pref ( "extensions.webcompat-reporter.enabled" , false ) ; // [DEFAULT: false]
1083- /* 6012: disable SHA-1 certificates ***/
1084- user_pref ( "security.pki.sha1_enforcement_level" , 1 ) ; // [DEFAULT: 1 FF102+]
10851073/* 6050: prefsCleaner: reset items removed from arkenfox FF92+ ***/
10861074 // user_pref("browser.urlbar.trimURLs", "");
10871075 // user_pref("dom.caches.enabled", "");
@@ -1176,7 +1164,7 @@ user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies
11761164 // user_pref("privacy.donottrackheader.enabled", true);
11771165/* 7016: customize ETP settings
11781166 * [WHY] Arkenfox only supports strict (2701) which sets these at runtime ***/
1179- // user_pref("network.cookie.cookieBehavior", 5);
1167+ // user_pref("network.cookie.cookieBehavior", 5); // [DEFAULT: 5 FF103+]
11801168 // user_pref("network.http.referer.disallowCrossSiteRelaxingDefault", true);
11811169 // user_pref("network.http.referer.disallowCrossSiteRelaxingDefault.top_navigation", true); // [FF100+]
11821170 // user_pref("privacy.partition.network_state.ocsp_cache", true);
@@ -1242,7 +1230,7 @@ user_pref("browser.startup.homepage_override.mstone", "ignore"); // master switc
12421230 // user_pref("startup.homepage_welcome_url.additional", "");
12431231 // user_pref("startup.homepage_override_url", ""); // What's New page after updates
12441232/* WARNINGS ***/
1245- // user_pref("browser.tabs.warnOnClose", false); // [DEFAULT false FF94+]
1233+ // user_pref("browser.tabs.warnOnClose", false); // [DEFAULT: false FF94+]
12461234 // user_pref("browser.tabs.warnOnCloseOtherTabs", false);
12471235 // user_pref("browser.tabs.warnOnOpen", false);
12481236 // user_pref("browser.warnOnQuitShortcut", false); // [FF94+]
@@ -1269,6 +1257,14 @@ user_pref("browser.startup.homepage_override.mstone", "ignore"); // master switc
12691257 // user_pref("accessibility.typeaheadfind", true); // enable "Find As You Type"
12701258 // user_pref("clipboard.autocopy", false); // disable autocopy default [LINUX]
12711259 // user_pref("layout.spellcheckDefault", 2); // 0=none, 1-multi-line, 2=multi-line & single-line
1260+ /* HTML5 MEDIA AUTOPLAY ***/
1261+ // [NOTE] You can set exceptions under site permissions
1262+ // user_pref("media.autoplay.default", 5); // [FF63+]
1263+ // 0=Allow all, 1=Block non-muted media (default), 5=Block all
1264+ // [SETTING] Privacy & Security>Permissions>Autoplay>Settings>Default for all websites
1265+ // user_pref("media.autoplay.blocking_policy", 2); // disable autoplay if you interacted with the site [FF78+]
1266+ // 0=sticky (default), 1=transient, 2=user
1267+ // [1] https://support.mozilla.org/questions/1293231 // links to Autoplay Policy Documentation (PDF)
12721268/* UX BEHAVIOR ***/
12731269 // user_pref("browser.backspace_action", 2); // 0=previous page, 1=scroll up, 2=do nothing
12741270 // user_pref("browser.quitShortcut.disabled", true); // disable Ctrl-Q quit shortcut [LINUX] [MAC] [FF87+]
@@ -1349,5 +1345,18 @@ user_pref("security.password_lifetime", 5); // [DEFAULT: 30]
13491345user_pref("dom.storage.next_gen", true); // [DEFAULT: true FF92+]
13501346// ***/
13511347
1348+ /* ESR102.x still uses all the following prefs
1349+ // [NOTE] replace the * with a slash in the line above to re-enable them
1350+ // FF103
1351+ // 2801: delete cookies and site data on exit - replaced by sanitizeOnShutdown* (2810)
1352+ // 0=keep until they expire (default), 2=keep until you close Firefox
1353+ // [SETTING] Privacy & Security>Cookies and Site Data>Delete cookies and site data when Firefox is closed
1354+ // [-] https://bugzilla.mozilla.org/buglist.cgi?bug_id=1681493,1681495,1681498,1759665
1355+ user_pref("network.cookie.lifetimePolicy", 2);
1356+ // 6012: disable SHA-1 certificates
1357+ // [-] https://bugzilla.mozilla.org/1766687
1358+ user_pref("security.pki.sha1_enforcement_level", 1); // [DEFAULT: 1 FF102+]
1359+ // ***/
1360+
13521361/* END: internal custom pref to test for syntax errors ***/
13531362user_pref ( "_user.js.parrot" , "SUCCESS: No no he's not dead, he's, he's restin'!" ) ;
0 commit comments