From 2d81cd4094a665be94cfc309157a8a72a8d0b262 Mon Sep 17 00:00:00 2001 From: yokoffing <11689349+yokoffing@users.noreply.github.com> Date: Wed, 20 Aug 2025 17:21:59 -0400 Subject: [PATCH] 142.0 (#420) --- Fastfox.js | 18 +++++++++--------- Peskyfox.js | 41 ++++++++++++++++++++++++++--------------- README.md | 6 +----- Securefox.js | 20 +++++++++++++------- user.js | 16 ++++++++++++++-- zen/user.js | 4 +++- 6 files changed, 66 insertions(+), 39 deletions(-) diff --git a/Fastfox.js b/Fastfox.js index 33ff68a..c920c8d 100644 --- a/Fastfox.js +++ b/Fastfox.js @@ -78,6 +78,15 @@ user_pref("content.notify.interval", 100000); // (.10s); default=120000 (.12s) // PREF: lazy load iframes //user_pref("dom.iframe_lazy_loading.enabled", true); // DEFAULT [FF121+] +// PREF: Prioritized Task Scheduling API +// [1] https://github.com/yokoffing/Betterfox/issues/355 +// [2] https://blog.mozilla.org/performance/2022/06/02/prioritized-task-scheduling-api-is-prototyped-in-nightly/ +// [3] https://medium.com/airbnb-engineering/building-a-faster-web-experience-with-the-posttask-scheduler-276b83454e91 +// [4] https://github.com/WICG/scheduling-apis/blob/main/explainers/prioritized-post-task.md +// [5] https://wicg.github.io/scheduling-apis/ +// [6] https://caniuse.com/mdn-api_taskcontroller +//user_pref("dom.enable_web_task_scheduling", true); // DEFAULT [FF142+] + /**************************************************************************** * SECTION: GFX RENDERING TWEAKS * ****************************************************************************/ @@ -543,15 +552,6 @@ user_pref("network.predictor.enabled", false); // [2] https://www.smashingmagazine.com/native-css-masonry-layout-css-grid/ user_pref("layout.css.grid-template-masonry-value.enabled", true); -// PREF: Prioritized Task Scheduling API [NIGHTLY] -// [1] https://github.com/yokoffing/Betterfox/issues/355 -// [2] https://blog.mozilla.org/performance/2022/06/02/prioritized-task-scheduling-api-is-prototyped-in-nightly/ -// [3] https://medium.com/airbnb-engineering/building-a-faster-web-experience-with-the-posttask-scheduler-276b83454e91 -// [4] https://github.com/WICG/scheduling-apis/blob/main/explainers/prioritized-post-task.md -// [5] https://wicg.github.io/scheduling-apis/ -// [6] https://caniuse.com/mdn-api_taskcontroller -//user_pref("dom.enable_web_task_scheduling", true); - /**************************************************************************** * SECTION: TAB UNLOAD * ****************************************************************************/ diff --git a/Peskyfox.js b/Peskyfox.js index 0eaba41..44e5045 100644 --- a/Peskyfox.js +++ b/Peskyfox.js @@ -3,7 +3,7 @@ * Peskyfox * * "Aquila non capit muscas" * * priority: remove annoyances * - * version: 140 * + * version: 142 * * url: https://github.com/yokoffing/Betterfox * * credit: Some prefs are reproduced and adapted from the arkenfox project * * credit urL: https://github.com/arkenfox/user.js * @@ -29,14 +29,6 @@ user_pref("extensions.htmlaboutaddons.recommendations.enabled", false); // [SETTING] Privacy & Security>Firefox Data Collection & Use>Allow Firefox to make personalized extension recommendations user_pref("browser.discovery.enabled", false); -// PREF: disable Fakespot integration [FF116+] -// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1840156#c0 -// [2] https://github.com/arkenfox/user.js/issues/1730 -// [3] https://www.fakespot.com/ -// [4] https://www.ghacks.net/2023/10/12/firefox-will-soon-tell-you-if-product-reviews-are-reliable/ -//user_pref("browser.shopping.experience2023.enabled", false); // DEFAULT -//user_pref("browser.shopping.experience2023.ads.exposure", false); // DEFAULT [FF121+] - // PREF: disable Firefox from asking to set as the default browser // [1] https://github.com/yokoffing/Betterfox/issues/166 user_pref("browser.shell.checkDefaultBrowser", false); @@ -105,7 +97,24 @@ user_pref("browser.privateWindowSeparation.enabled", false); //user_pref("browser.newtabpage.activity-stream.newtabWallpapers.v2.enabled", true); // [DEFAULT FF132+] /**************************************************************************** - * SECTION: COOKIE BANNER HANDLING * + * SECTION: AI * +****************************************************************************/ +// PREF: AI master switch +// [1] https://github.com/yokoffing/Betterfox/issues/416 +user_pref("browser.ml.enable", false); + +// PREF: AI chat +user_pref("browser.ml.chat.enabled", false); + +// PREF: link previews +//user_pref("browser.ml.linkPreview.enabled", false); + +// PREF: AI-enhanced tab groups +// [1] https://support.mozilla.org/kb/how-use-ai-enhanced-tab-groups +//user_pref("browser.tabs.groups.smart.enabled", false); + +/**************************************************************************** + * SECTION: COOKIE BANNER HANDLING * ****************************************************************************/ // PREF: Cookie Banner handling @@ -130,7 +139,7 @@ user_pref("browser.privateWindowSeparation.enabled", false); //user_pref("cookiebanners.service.enableGlobalRules.subFrames", true); // DEFAULT [FF121+] /**************************************************************************** - * SECTION: TRANSLATIONS * + * SECTION: TRANSLATIONS * ****************************************************************************/ // PREF: Firefox Translations [FF118+] @@ -195,7 +204,7 @@ user_pref("browser.urlbar.suggest.engines", false); //user_pref("browser.urlbar.suggest.weather", true); // DEFAULT [FF108] //user_pref("browser.urlbar.weather.ignoreVPN", false); // DEFAULT //user_pref("browser.urlbar.suggest.calculator", true); // [DEFAULT FF137+] -user_pref("browser.urlbar.unitConversion.enabled", true); +//user_pref("browser.urlbar.unitConversion.enabled", true); // [DEFAULT FF141+] // PREF: disable dropdown suggestions with empty query //user_pref("browser.urlbar.suggest.topsites", false); @@ -207,10 +216,11 @@ user_pref("browser.urlbar.trending.featureGate", false); // PREF: disable urlbar suggestions //user_pref("browser.urlbar.addons.featureGate", false); // [FF115+] +//user_pref("browser.urlbar.amp.featureGate", false); // [FF141+] adMarketplace //user_pref("browser.urlbar.fakespot.featureGate", false); // [FF130+] [DEFAULT: false] //user_pref("browser.urlbar.mdn.featureGate", false); // [FF117+] [HIDDEN PREF] -//user_pref("browser.urlbar.pocket.featureGate", false); // [FF116+] [DEFAULT: false] //user_pref("browser.urlbar.weather.featureGate", false); // [FF108+] [DEFAULT: false] +//user_pref("browser.urlbar.wikipedia.featureGate", false); // [FF141+] //user_pref("browser.urlbar.clipboard.featureGate", false); // [FF118+] [DEFAULT: true FF125+] //user_pref("browser.urlbar.yelp.featureGate", false); // [FF124+] [DEFAULT: false] @@ -292,11 +302,12 @@ user_pref("browser.urlbar.trending.featureGate", false); //user_pref("browser.newtabpage.activity-stream.discoverystream.enabled", false); //user_pref("browser.newtabpage.activity-stream.showSearch", true); // NTP Web Search [DEFAULT] //user_pref("browser.newtabpage.activity-stream.feeds.topsites", false); // Shortcuts - user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // Shortcuts > Sponsored shortcuts [FF83+] + user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // Sponsored shortcuts [FF83+] //user_pref("browser.newtabpage.activity-stream.showWeather", false); // Weather [FF130+] //user_pref("browser.newtabpage.activity-stream.system.showWeather", false); // hides Weather as an UI option user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); // Recommended by Pocket - user_pref("browser.newtabpage.activity-stream.showSponsored", false); // Sponsored Stories [FF58+] +user_pref("browser.newtabpage.activity-stream.showSponsored", false); // Sponsored stories [FF58+] +user_pref("browser.newtabpage.activity-stream.showSponsoredCheckboxes", false); // [FF140+] Support Firefox //user_pref("browser.newtabpage.activity-stream.feeds.section.highlights", false); // Recent Activity [DEFAULT] //user_pref("browser.newtabpage.activity-stream.section.highlights.includeBookmarks", false); //user_pref("browser.newtabpage.activity-stream.section.highlights.includeDownloads", false); diff --git a/README.md b/README.md index fba5e95..97d91e1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[](https://github.com/yokoffing/betterfox/stargazers) +[](https://github.com/yokoffing/betterfox/stargazers) # Betterfox [about:config](https://support.mozilla.org/en-US/kb/about-config-editor-firefox) tweaks to enhance [Mozilla Firefox](https://www.mozilla.org/en-US/firefox/new/). @@ -103,7 +103,3 @@ If you like the project, leave a :star: (top right) and become a [stargazer](htt * Thanks to [Denperidge](https://github.com/Denperidge) for adding [`install.py`](https://github.com/yokoffing/Betterfox/blob/main/install.py) for advanced users in v.131. * A special thanks to [Alex Kontos](https://github.com/MrAlex94) of [Waterfox](https://github.com/WaterfoxCo/Waterfox) for his collaboration in v.116. * Many thanks to the 2021 [Ghostery](https://github.com/ghostery) team for testing Betterfox at scale in its early days. - -
diff --git a/Securefox.js b/Securefox.js index 993d9da..a48f410 100644 --- a/Securefox.js +++ b/Securefox.js @@ -3,7 +3,7 @@ * Securefox * * "Natura non contristatur" * * priority: provide sensible security and privacy * - * version: 140 * + * version: 142 * * url: https://github.com/yokoffing/Betterfox * * credit: Most prefs are reproduced and adapted from the arkenfox project * * credit urL: https://github.com/arkenfox/user.js * @@ -22,6 +22,9 @@ // [1] https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop // [2] https://www.reddit.com/r/firefox/comments/l7xetb/network_priority_for_firefoxs_enhanced_tracking/gle2mqn/?web2x&context=3 user_pref("browser.contentblocking.category", "strict"); // [HIDDEN] +// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1970647 +user_pref("privacy.trackingprotection.allow_list.baseline.enabled", true); // [FF142+] +user_pref("privacy.trackingprotection.allow_list.convenience.enabled", true); // [FF142+] //user_pref("privacy.trackingprotection.enabled", true); // enabled with "Strict" //user_pref("privacy.trackingprotection.pbmode.enabled", true); // DEFAULT //user_pref("browser.contentblocking.customBlockList.preferences.ui.enabled", false); // DEFAULT @@ -317,6 +320,13 @@ user_pref("security.pki.crlite_mode", 2); //user_pref("browser.contentanalysis.enabled", false); // [FF121+] [DEFAULT] //user_pref("browser.contentanalysis.default_result", 0; // [FF127+] [DEFAULT] +// PREF: disable referrer and storage access for resources injected by content scripts [FF139+] +//user_pref("privacy.antitracking.isolateContentScriptResources", true); + +// PREF: disable CSP Level 2 Reporting [FF140+] +// [1] https://github.com/yokoffing/Betterfox/issues/415 +user_pref("security.csp.reporting.enabled", false); + /**************************************************************************** * SECTION: SSL (Secure Sockets Layer) / TLS (Transport Layer Security) * ****************************************************************************/ @@ -980,9 +990,9 @@ user_pref("extensions.enabledScopes", 5); // [HIDDEN PREF] // Users may see a notification when running add-ons that are not monitored by Mozilla when they visit certain sites. // The notification informs them that “some extensions are not allowed” and were blocked from running on that site. // There's no details as to which sites are affected. -// [1] https://support.mozilla.org/en-US/kb/quarantined-domains +// [1] https://support.mozilla.org/kb/quarantined-domains // [2] https://www.ghacks.net/2023/07/04/firefox-115-new-esr-base-and-some-add-ons-may-be-blocked-from-running-on-certain-sites/ -//user_pref("extensions.quarantinedDomains.enabled", false); +//user_pref("extensions.quarantinedDomains.enabled", true); // [DEFAULT: true] /****************************************************************************** * SECTION: HEADERS / REFERERS * @@ -1166,10 +1176,6 @@ user_pref("privacy.userContext.ui.enabled", true); // [3] https://www.zdnet.com/article/half-of-the-websites-using-webassembly-use-it-for-malicious-purposes //user_pref("javascript.options.wasm", false); -// PREF: CSP reporting -// [1] https://github.com/yokoffing/Betterfox/issues/415 -//user_pref("security.csp.reporting.enabled", false); - /****************************************************************************** * SECTION: SAFE BROWSING (SB) * ******************************************************************************/ diff --git a/user.js b/user.js index a85a636..62f430a 100644 --- a/user.js +++ b/user.js @@ -10,7 +10,7 @@ /**************************************************************************** * Betterfox * * "Ad meliora" * - * version: 140 * + * version: 142 * * url: https://github.com/yokoffing/Betterfox * ****************************************************************************/ @@ -63,6 +63,8 @@ user_pref("layout.css.grid-template-masonry-value.enabled", true); ****************************************************************************/ /** TRACKING PROTECTION ***/ user_pref("browser.contentblocking.category", "strict"); +user_pref("privacy.trackingprotection.allow_list.baseline.enabled", true); +user_pref("privacy.trackingprotection.allow_list.convenience.enabled", true); user_pref("browser.download.start_downloads_in_tmp_dir", true); user_pref("browser.helperApps.deleteTempFileOnExit", true); user_pref("browser.uitour.enabled", false); @@ -71,6 +73,7 @@ user_pref("privacy.globalprivacycontrol.enabled", true); /** OCSP & CERTS / HPKP ***/ user_pref("security.OCSP.enabled", 0); user_pref("security.pki.crlite_mode", 2); +user_pref("security.csp.reporting.enabled", false); /** SSL / TLS ***/ user_pref("security.ssl.treat_unsafe_negotiation_as_broken", true); @@ -174,13 +177,16 @@ user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); user_pref("browser.compactmode.show", true); user_pref("browser.privateWindowSeparation.enabled", false); // WINDOWS +/** AI ***/ +user_pref("browser.ml.enable", false); +user_pref("browser.ml.chat.enabled", false); + /** FULLSCREEN NOTICE ***/ user_pref("full-screen-api.transition-duration.enter", "0 0"); user_pref("full-screen-api.transition-duration.leave", "0 0"); user_pref("full-screen-api.warning.timeout", 0); /** URL BAR ***/ -user_pref("browser.urlbar.unitConversion.enabled", true); user_pref("browser.urlbar.trending.featureGate", false); /** NEW TAB PAGE ***/ @@ -188,6 +194,7 @@ user_pref("browser.newtabpage.activity-stream.default.sites", ""); user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); user_pref("browser.newtabpage.activity-stream.showSponsored", false); +user_pref("browser.newtabpage.activity-stream.showSponsoredCheckboxes", false); /** POCKET ***/ user_pref("extensions.pocket.enabled", false); @@ -224,3 +231,8 @@ user_pref("layout.word_select.eat_space_to_next_word", false); /**************************************************************************** * END: BETTERFOX * ****************************************************************************/ + + + + + diff --git a/zen/user.js b/zen/user.js index 300e0f2..a5943e5 100644 --- a/zen/user.js +++ b/zen/user.js @@ -10,7 +10,7 @@ /**************************************************************************** * BetterZen * * "Ex nihilo nihil fit" * - * version: 138 * + * version: 142 * * url: https://github.com/yokoffing/Betterfox * ****************************************************************************/ @@ -38,6 +38,8 @@ user_pref("network.predictor.enable-prefetch", false); ****************************************************************************/ /** TRACKING PROTECTION ***/ user_pref("browser.contentblocking.category", "strict"); +user_pref("privacy.trackingprotection.allow_list.baseline.enabled", true); +user_pref("privacy.trackingprotection.allow_list.convenience.enabled", true); user_pref("browser.download.start_downloads_in_tmp_dir", true); /** OCSP & CERTS / HPKP ***/