From d3c53532eb73524d117060014cf9d2cae156dfb2 Mon Sep 17 00:00:00 2001 From: yokoffing <11689349+yokoffing@users.noreply.github.com> Date: Wed, 16 Apr 2025 10:10:06 -0400 Subject: [PATCH] v137.0 (#379) --- Fastfox.js | 9 +-- Peskyfox.js | 24 ++++--- README.md | 28 +++----- Securefox.js | 51 +++++++++------ Smoothfox.js | 4 +- personal/user-overrides.js | 11 +--- user.js | 26 +++----- zen/user.js | 129 +++++++++++++++++++++++++++++++++++++ 8 files changed, 202 insertions(+), 80 deletions(-) create mode 100644 zen/user.js diff --git a/Fastfox.js b/Fastfox.js index 1873f41..a648650 100644 --- a/Fastfox.js +++ b/Fastfox.js @@ -3,7 +3,7 @@ * Fastfox * * "Non ducor duco" * * priority: speedy browsing * - * version: 135 * + * version: 137 * * url: https://github.com/yokoffing/Betterfox * ***************************************************************************************/ @@ -323,13 +323,14 @@ user_pref("image.mem.decode_bytes_at_a_time", 32768); // default=16384; alt=6553 ****************************************************************************/ // PREF: use bigger packets -// [WARNING] Cannot open HTML files bigger than 4MB if changed [2]. +// [WARNING] Cannot open HTML files bigger than 4MB if value is too large [2]. // Reduce Firefox's CPU usage by requiring fewer application-to-driver data transfers. // However, it does not affect the actual packet sizes transmitted over the network. // [1] https://www.mail-archive.com/support-seamonkey@lists.mozilla.org/msg74561.html // [2] https://github.com/yokoffing/Betterfox/issues/279 -//user_pref("network.buffer.cache.size", 262144); // 256 kb; default=32768 (32 kb) -//user_pref("network.buffer.cache.count", 128); // default=24 +// [3] https://ra1ahq.blog/en/optimizaciya-proizvoditelnosti-mozilla-firefox +//user_pref("network.buffer.cache.size", 65535); // default=32768 (32 kb); 262144 too large +//user_pref("network.buffer.cache.count", 48); // default=24; 128 too large // PREF: increase the absolute number of HTTP connections // [1] https://kb.mozillazine.org/Network.http.max-connections diff --git a/Peskyfox.js b/Peskyfox.js index 31f78cc..2fb678d 100644 --- a/Peskyfox.js +++ b/Peskyfox.js @@ -3,7 +3,7 @@ * Peskyfox * * "Aquila non capit muscas" * * priority: remove annoyances * - * version: 135 * + * version: 137 * * 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 * @@ -109,16 +109,19 @@ user_pref("browser.privateWindowSeparation.enabled", false); ****************************************************************************/ // PREF: Cookie Banner handling +// [DEPRECIATED] Future of the project is unclear. See [5] and [6]. // [NOTE] Feature still enforces Total Cookie Protection to limit 3rd-party cookie tracking [1] // [1] https://github.com/mozilla/cookie-banner-rules-list/issues/33#issuecomment-1318460084 // [2] https://phabricator.services.mozilla.com/D153642 // [3] https://winaero.com/make-firefox-automatically-click-on-reject-all-in-cookie-banner-consent/ // [4] https://docs.google.com/spreadsheets/d/1Nb4gVlGadyxix4i4FBDnOeT_eJp2Zcv69o-KfHtK-aA/edit#gid=0 +// [5] https://bugzilla.mozilla.org/show_bug.cgi?id=1940418 +// [6] https://github.com/mozilla/cookie-banner-rules-list/issues/544 // 2: reject banners if it is a one-click option; otherwise, fall back to the accept button to remove banner // 1: reject banners if it is a one-click option; otherwise, keep banners on screen // 0: disable all cookie banner handling -user_pref("cookiebanners.service.mode", 1); -user_pref("cookiebanners.service.mode.privateBrowsing", 1); +//user_pref("cookiebanners.service.mode", 1); +//user_pref("cookiebanners.service.mode.privateBrowsing", 1); // PREF: Cookie Banner global rules // Global rules that can handle a list of cookie banner libraries and providers on any site. @@ -191,7 +194,7 @@ user_pref("browser.urlbar.suggest.engines", false); //user_pref("browser.urlbar.shortcuts.quickactions", 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); +//user_pref("browser.urlbar.suggest.calculator", true); // [DEFAULT FF137+] user_pref("browser.urlbar.unitConversion.enabled", true); // PREF: disable dropdown suggestions with empty query @@ -234,11 +237,12 @@ user_pref("browser.urlbar.trending.featureGate", false); // disable=0 //user_pref("browser.urlbar.maxRichResults", 5); // default=10 -// PREF: text fragments [FF126+ NIGHTLY] +// PREF: text fragments // [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1753933#c6 // [2] https://developer.mozilla.org/en-US/docs/Web/Text_fragments // [3] https://web.dev/articles/text-fragments //user_pref("dom.text_fragments.enabled", true); // [DEFAULT] +user_pref("dom.text_fragments.create_text_fragment.enabled", true); /**************************************************************************** * SECTION: AUTOPLAY * @@ -285,12 +289,12 @@ user_pref("browser.urlbar.trending.featureGate", false); // [1] https://github.com/arkenfox/user.js/issues/1556 //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.showWeather", false); // Weather [FF130+] +//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.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.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); @@ -303,7 +307,7 @@ user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); // PREF: clear default topsites // [NOTE] This does not block you from adding your own. -//user_pref("browser.newtabpage.activity-stream.default.sites", ""); +user_pref("browser.newtabpage.activity-stream.default.sites", ""); // PREF: keep search in the search box; prevent from jumping to address bar // [1] https://www.reddit.com/r/firefox/comments/oxwvbo/firefox_start_page_search_options/ diff --git a/README.md b/README.md index 103c477..7211d1c 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,24 @@ -![GitHub Maintained](https://img.shields.io/badge/open%20source-yes-orange) -![GitHub Maintained](https://img.shields.io/badge/maintained-yes-yellow) -[![Visitors](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fyokoffing%2FBetter-Fox&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=visitors&edge_flat=false)](https://hits.seeyoufarm.com) +![GitHub Maintained](https://img.shields.io/badge/maintained-yes-green)![GitHub last commit](https://img.shields.io/github/last-commit/yokoffing/betterfox)![GitHub issues](https://img.shields.io/github/issues/yokoffing/betterfox)![GitHub closed issues](https://img.shields.io/github/issues-closed/yokoffing/betterfox)![GitHub repo size](https://img.shields.io/github/repo-size/yokoffing/betterfox)[![shields.io Stars](https://img.shields.io/github/stars/yokoffing/betterfox)](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/). +[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/). -31% [faster](https://medium.com/@mihirgrand/comparing-popular-firefox-forks-6fa83fdfdaad#:~:text=31%25%20more%20than%20vanilla%20Firefox) than regular Firefox :rocket: +## Made for everyday browsing +[Faster](https://medium.com/@mihirgrand/comparing-popular-firefox-forks-6fa83fdfdaad#:~:text=31%25%20more%20than%20vanilla%20Firefox), more private and secure — without using third-party code. -Now with support for ESR [128](https://github.com/yokoffing/Betterfox/tree/esr128) :new: +Betterfox is an opinionated preference list inspired by the [law of diminishing returns](https://miro.medium.com/v2/resize:fit:1206/1*lcOcxriV_II_lZuXQYLoXg.jpeg) and the [minimum effective dose](https://medium.com/the-mission/less-is-more-the-minimum-effective-dose-e6d56625931e). ## Required reading 0) Create a [backup profile](https://github.com/yokoffing/Betterfox/wiki/Backup). 1) Download the user.js file [here](https://raw.githubusercontent.com/yokoffing/Betterfox/main/user.js) (Right click > `Save Link As…`). -2) Review [Common Overrides](https://github.com/yokoffing/Betterfox/wiki/Common-Overrides) and make any necessary changes. - * See also [Optional Hardening](https://github.com/yokoffing/Betterfox/wiki/Optional-Hardening) for other recommendations. +2) Review both [Common Overrides](https://github.com/yokoffing/Betterfox/wiki/Common-Overrides) and [Optional Hardening](https://github.com/yokoffing/Betterfox/wiki/Optional-Hardening) to make any necessary changes. 3) Open Firefox. In the URL bar, type `about:profiles` and press **Enter**. -4) For the profile you want to use (or use default), click **Open Folder** in the **Root Directory** section. +4) For the profile you want to use, click **Open Folder** in the **Root Directory** section. 5) Move the `user.js` file into the folder. *After restarting Firefox:* 1) Get an **ad blocker** like [uBlock Origin](https://addons.mozilla.org/blog/ublock-origin-everything-you-need-to-know-about-the-ad-blocker/) with our [recommended filters](https://github.com/yokoffing/filterlists#guidelines). -2) Enable **DNS-level protection** with [NextDNS](https://nextdns.io/?from=xujj63g5). Use the link and support this page! - * Check out our configuration [guide](https://github.com/yokoffing/NextDNS-Config) for the best experience. - * See how to [quickly enable](https://support.mozilla.org/en-US/kb/dns-over-https) **secure DNS** in Firefox. - -## Made for everyday browsing -**A secure, blazing fast browsing experience. Without breakage.** - -Betterfox is an opinionated preference list inspired by the [law of diminishing returns](https://miro.medium.com/v2/resize:fit:1206/1*lcOcxriV_II_lZuXQYLoXg.jpeg) and the [minimum effective dose](https://medium.com/the-mission/less-is-more-the-minimum-effective-dose-e6d56625931e). +2) Enable **DNS-level protection** with your chosen [provider](https://github.com/yokoffing/Betterfox/wiki/Optional-Hardening#secure-dns) to further protect against security threats, ads, and trackers. ## Simple goals 1) **Minimalism:** get what isn't needed out of the way @@ -54,7 +45,7 @@ The `user.js` — a configuration file that controls Firefox settings — is cur > [!IMPORTANT] > While the browsers listed below incorporate Betterfox to some extent, they often modify it in ways that reduce its effectiveness. For optimal results, apply the `user.js` file even when using Firefox forks. -* [Zen](https://github.com/zen-browser/desktop?tab=readme-ov-file) | [files](https://github.com/zen-browser/desktop/blob/main/src/browser/app/profile/better-fox.js) (July 2024) +* [Zen](https://github.com/zen-browser/desktop?tab=readme-ov-file) | [files](https://github.com/zen-browser/desktop/blob/stable/src/browser/app/profile/zen-browser.js) (July 2024) * [Midori](https://github.com/goastian/midori-desktop/blob/ESR115/README.md) | [files](https://github.com/goastian/midori-desktop/blob/f3d8d96eb8e08f35a64e3c957bea4e839d7c7730/floorp/browser/components/userjsUtils.sys.mjs#L28-L33) (Dec 2023?) * [Mercury](https://github.com/Alex313031/Mercury/releases/tag/v.115.3.0) | [files](https://github.com/Alex313031/Mercury/commit/eb9600f9fb8f48c8f5b5c6f3264fbcdb5caff7f5) (Sep 2023) * [Waterfox](https://www.waterfox.net/en-US/docs/releases/G6.0/) | [files](https://github.com/WaterfoxCo/Waterfox/tree/current/waterfox/browser/app/profile) (Sep 2023) @@ -63,6 +54,7 @@ The `user.js` — a configuration file that controls Firefox settings — is cur * [Ghostery Private Browser](https://github.com/ghostery/user-agent-desktop#community) [1](https://web.archive.org/web/20210509171835/https://www.ghostery.com/ghostery-dawn-update-more/) [2](https://web.archive.org/web/20210921114333/https://www.ghostery.com/ghostery-dawn-product-update/) | [files](https://github.com/ghostery/user-agent-desktop/tree/main/brands/ghostery/branding/pref) (Feb 2021) ### YouTube +* [A Better Firefox](https://youtu.be/JuHIwCFx34Q?si=1dx39t3HX5kzNVj-&t=133) (Mar 2025) * [Ditch Chrome for One Of These BETTER BROWSERS!](https://youtu.be/ygkxFc8SZlc?si=m5NQe-b_oFXs5crb&t=230) (Aug 2024) * [The ULTIMATE Browser Tier List](https://youtu.be/j5r6jFE8gic?t=560) (Mar 2023) * [I Hate Firefox. But I'm Still Switching Back to It.](https://youtu.be/w0SJFED5xK0?t=220) (Nov 2022) diff --git a/Securefox.js b/Securefox.js index 6a6dc84..a7da8d8 100644 --- a/Securefox.js +++ b/Securefox.js @@ -3,7 +3,7 @@ * Securefox * * "Natura non contristatur" * * priority: provide sensible security and privacy * - * version: 135 * + * version: 137 * * 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 * @@ -56,7 +56,14 @@ user_pref("browser.contentblocking.category", "strict"); // [HIDDEN] //user_pref("privacy.query_stripping.strip_list", ""); // DEFAULT //user_pref("privacy.query_stripping.strip_on_share.enabled", true); -// PREF: allow embedded tweets, Instagram and Reddit posts, and TikTok embeds +// PREF: Smartblock +// [1] https://support.mozilla.org/en-US/kb/smartblock-enhanced-tracking-protection +// [2] https://www.youtube.com/watch?v=VE8SrClOTgw +// [3] https://searchfox.org/mozilla-central/source/browser/extensions/webcompat/data/shims.js +//user_pref("extensions.webcompat.enable_shims", true); // [HIDDEN] enabled with "Strict" +//user_pref("extensions.webcompat.smartblockEmbeds.enabled", true); // enabled with "Strict" + +// PREF: allow embedded tweets and reddit posts [FF136+] // [TEST - reddit embed] https://www.pcgamer.com/amazing-halo-infinite-bugs-are-already-rolling-in/ // [TEST - instagram embed] https://www.ndtv.com/entertainment/bharti-singh-and-husband-haarsh-limbachiyaa-announce-pregnancy-see-trending-post-2646359 // [TEST - tweet embed] https://www.newsweek.com/cryptic-tweet-britney-spears-shows-elton-john-collab-may-date-back-2015-1728036 @@ -64,11 +71,12 @@ user_pref("browser.contentblocking.category", "strict"); // [HIDDEN] // [TEST - truthsocial embed] https://www.newsweek.com/donald-trump-congratulates-patrick-brittany-mahomes-new-baby-2027097 // [1] https://www.reddit.com/r/firefox/comments/l79nxy/firefox_dev_is_ignoring_social_tracking_preference/gl84ukk // [2] https://www.reddit.com/r/firefox/comments/pvds9m/reddit_embeds_not_loading/ -//user_pref("urlclassifier.trackingSkipURLs", "embed.reddit.com"); // MANUAL - // originals: - user_pref("urlclassifier.trackingSkipURLs", "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com"); // MANUAL - user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.twitter.com, *.twimg.com"); // MANUAL -//user_pref("extensions.webcompat.smartblockEmbeds.enabled", true); // NIGHTLY-ONLY +//user_pref("urlclassifier.trackingSkipURLs", "embed.reddit.com, *.twitter.com, *.twimg.com"); // MANUAL [FF136+] +//user_pref("urlclassifier.features.socialtracking.skipURLs", "*.twitter.com, *.twimg.com"); // MANUAL [FF136+] + +// PREF: allow embedded tweets, Instagram and Reddit posts, and TikTok embeds [before FF136+] +//user_pref("urlclassifier.trackingSkipURLs", "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com"); // MANUAL +//user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.twitter.com, *.twimg.com"); // MANUAL // PREF: lower the priority of network loads for resources on the tracking protection list [NIGHTLY] // [1] https://github.com/arkenfox/user.js/issues/102#issuecomment-298413904 @@ -133,12 +141,6 @@ user_pref("browser.contentblocking.category", "strict"); // [HIDDEN] //user_pref("privacy.partition.always_partition_third_party_non_cookie_storage", true); // [DEFAULT: true FF109+] //user_pref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false); // [DEFAULT: false FF109+] -// PREF: Smartblock -// [1] https://support.mozilla.org/en-US/kb/smartblock-enhanced-tracking-protection -// [2] https://www.youtube.com/watch?v=VE8SrClOTgw -// [3] https://searchfox.org/mozilla-central/source/browser/extensions/webcompat/data/shims.js -//user_pref("extensions.webcompat.enable_shims", true); // enabled with "Strict" - // PREF: Redirect Tracking Prevention / Cookie Purging // All storage is cleared (more or less) daily from origins that are known trackers and that // haven’t received a top-level user interaction (including scroll) within the last 45 days. @@ -260,6 +262,7 @@ user_pref("security.OCSP.enabled", 0); // [1] https://blog.mozilla.org/security/2013/07/29/ocsp-stapling-in-firefox/ // [2] https://www.imperialviolet.org/2014/04/19/revchecking.html // [3] https://www.ssl.com/blogs/how-do-browsers-handle-revoked-ssl-tls-certificates/#ftoc-heading-3 +// [4] https://letsencrypt.org/2024/12/05/ending-ocsp/ //user_pref("security.OCSP.require", true); // PREF: CRLite @@ -271,7 +274,7 @@ user_pref("security.OCSP.enabled", 0); // 3 = consult CRLite and enforce "Not Revoked" results, but defer to OCSP for "Revoked" [FF99+, default FF100+] // [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=1429800,1670985,1753071 // [2] https://blog.mozilla.org/security/tag/crlite/ -user_pref("security.remote_settings.crlite_filters.enabled", true); +//user_pref("security.remote_settings.crlite_filters.enabled", true); // [DEFAULT: true FF137+] user_pref("security.pki.crlite_mode", 2); // PREF: HTTP Public Key Pinning (HPKP) @@ -561,8 +564,8 @@ user_pref("browser.urlbar.untrimOnUserInteraction.featureGate", true); // PREF: display "Not Secure" text on HTTP sites // Needed with HTTPS-First Policy; not needed with HTTPS-Only Mode. -user_pref("security.insecure_connection_text.enabled", true); -user_pref("security.insecure_connection_text.pbmode.enabled", true); +//user_pref("security.insecure_connection_text.enabled", true); // [DEFAULT FF136+] +//user_pref("security.insecure_connection_text.pbmode.enabled", true); // [DEFAULT FF136+] // PREF: do not show search terms in URL bar [FF110+] // Show search query instead of URL on search results pages. @@ -657,7 +660,7 @@ user_pref("network.IDN_show_punycode", true); // [4] https://web.dev/why-https-matters/ // [5] https://www.cloudflare.com/learning/ssl/why-use-https/ // [6] https://blog.chromium.org/2023/08/towards-https-by-default.html -user_pref("dom.security.https_first", true); // [DEFAULT FF129+] +//user_pref("dom.security.https_first", true); // [DEFAULT FF136+] //user_pref("dom.security.https_first_pbm", true); // [DEFAULT FF91+] //user_pref("dom.security.https_first_schemeless", true); // [FF120+] [DEFAULT FF129+] @@ -837,7 +840,6 @@ user_pref("dom.security.https_first", true); // [DEFAULT FF129+] // [NOTE] This does not clear any passwords already saved. // [SETTING] Privacy & Security>Logins and Passwords>Ask to save logins and passwords for websites //user_pref("signon.rememberSignons", false); - //user_pref("signon.rememberSignons.visibilityToggle", true); // DEFAULT //user_pref("signon.schemeUpgrades", true); // DEFAULT //user_pref("signon.showAutoCompleteFooter", true); // DEFAULT //user_pref("signon.autologin.proxy", false); // DEFAULT @@ -1273,10 +1275,13 @@ user_pref("permissions.default.desktop-notification", 2); // 0=always ask (default), 1=allow, 2=block user_pref("permissions.default.geo", 2); -// PREF: use Mozilla geolocation service instead of Google when geolocation is enabled -// [NOTE] Mozilla's geolocation service is discontinued 12 June 2024 [1]. +// PREF: use alternative geolocation service instead of Google +// [NOTE] Mozilla's geolocation service was discontinued in June 2024 [1]. +// BeaconDB is its replacement. // [1] https://github.com/mozilla/ichnaea/issues/2065 -//user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%"); +// [2] https://codeberg.org/beacondb/beacondb +// [3] https://github.com/yokoffing/Betterfox/issues/378 +user_pref("geo.provider.network.url", "https://beacondb.net/v1/geolocate"); // PREF: disable using the OS's geolocation service //user_pref("geo.provider.ms-windows-location", false); // [WINDOWS] @@ -1357,6 +1362,10 @@ user_pref("toolkit.coverage.endpoint.base", ""); user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false); user_pref("browser.newtabpage.activity-stream.telemetry", false); +// PREF: disable daily active users [FF136+] +// [NOTE] Already disabled by main telemetry switch +//user_pref("datareporting.usage.uploadEnabled", false); + /****************************************************************************** * SECTION: EXPERIMENTS * ******************************************************************************/ diff --git a/Smoothfox.js b/Smoothfox.js index a554f0c..d8b6ca7 100644 --- a/Smoothfox.js +++ b/Smoothfox.js @@ -3,7 +3,7 @@ * Smoothfox * * "Faber est suae quisque fortunae" * * priority: better scrolling * - * version: 126.1 * + * version: 137 * * url: https://github.com/yokoffing/Betterfox * ***************************************************************************************/ @@ -17,7 +17,7 @@ // only sharpen scrolling user_pref("apz.overscroll.enabled", true); // DEFAULT NON-LINUX user_pref("general.smoothScroll", true); // DEFAULT -user_pref("mousewheel.min_line_scroll_amount", 10); // 10-40; adjust this number to your liking; default=5 +user_pref("mousewheel.min_line_scroll_amount", 10); // adjust this number to your liking; default=5 user_pref("general.smoothScroll.mouseWheel.durationMinMS", 80); // default=50 user_pref("general.smoothScroll.currentVelocityWeighting", "0.15"); // default=.25 user_pref("general.smoothScroll.stopDecelerationWeighting", "0.6"); // default=.4 diff --git a/personal/user-overrides.js b/personal/user-overrides.js index b9ae47d..b2f8412 100644 --- a/personal/user-overrides.js +++ b/personal/user-overrides.js @@ -20,11 +20,9 @@ /** FASTFOX ***/ user_pref("browser.sessionstore.restore_pinned_tabs_on_demand", true); user_pref("browser.sessionhistory.max_total_viewers", 4); // only remember # of pages in Back-Forward cache -user_pref("browser.cache.disk.enable", false); // disable disk cache user_pref("network.http.max-persistent-connections-per-server", 20); // increase download connections /** SECUREFOX ***/ -//user_pref("urlclassifier.features.socialtracking.skipURLs", "*.twitter.com, *.twimg.com"); // removed *.instagram.com user_pref("signon.rememberSignons", false); // disable password manager user_pref("extensions.formautofill.addresses.enabled", false); // disable address manager user_pref("extensions.formautofill.creditCards.enabled", false); // disable credit card manager @@ -35,8 +33,6 @@ user_pref("signon.management.page.breach-alerts.enabled", false); // extra harde user_pref("signon.autofillForms", false); // unselect "Autofill logins and passwords" for clean UI user_pref("signon.generation.enabled", false); // unselect "Suggest and generate strong passwords" for clean UI user_pref("signon.firefoxRelay.feature", ""); // unselect suggestions from Firefox Relay for clean UI -//user_pref("privacy.sanitize.sanitizeOnShutdown", true); // clear browsing data on shutdown -//user_pref("privacy.clearOnShutdown.offlineApps", true); // clear Site Data on shutdown user_pref("browser.safebrowsing.downloads.enabled", false); // deny SB to scan downloads to identify suspicious files; local checks only user_pref("browser.safebrowsing.downloads.remote.url", ""); // enforce no remote checks for downloads by SB user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false); // clean up UI; not needed in user.js if remote downloads are disabled @@ -51,8 +47,6 @@ user_pref("accessibility.force_disabled", 1); // disable Accessibility features user_pref("security.cert_pinning.enforcement_level", 2); // strict public key pinning /** PESKYFOX ***/ -user_pref("cookiebanners.service.mode", 0); // disable for performance since I'm using Easylist Cookie -user_pref("cookiebanners.service.mode.privateBrowsing", 0); // disable for performance since I'm using Easylist Cookie user_pref("devtools.accessibility.enabled", false); // removes un-needed "Inspect Accessibility Properties" on right-click user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // Settings>Home>Firefox Home Content>Recent Activity>Shortcuts>Sponsored shortcuts user_pref("browser.newtabpage.activity-stream.showSponsored", false); // Settings>Home>Firefox Home Content>Recent Activity>Recommended by Pocket>Sponsored Stories @@ -81,7 +75,7 @@ user_pref("layout.word_select.eat_space_to_next_word", false); // do not select user_pref("browser.tabs.loadBookmarksInTabs", true); // force bookmarks to open in a new tab, not the current tab user_pref("ui.key.menuAccessKey", 0); // remove underlined characters from various settings user_pref("general.autoScroll", false); // disable unintentional behavior for middle click -user_pref("ui.SpellCheckerUnderlineStyle", 1); // dots for spell check errors +user_pref("ui.SpellCheckerUnderlineStyle", 1); // [HIDDEN] dots for spell check errors user_pref("media.videocontrols.picture-in-picture.display-text-tracks.size", "small"); // PiP user_pref("media.videocontrols.picture-in-picture.urlbar-button.enabled", false); // PiP in address bar user_pref("reader.parse-on-load.enabled", false); // disable reader mode @@ -98,8 +92,7 @@ user_pref("browser.crashReports.unsubmittedCheck.enabled", false); // true by de /** DELETE IF NOT WINDOWS DESKTOP ***/ user_pref("network.trr.mode", 3); // enable TRR (without System fallback) -user_pref("gfx.canvas.accelerated", true); // DEFAULT NON-WINDOWS; enable if not using an integrated GPU -user_pref("browser.startup.preXulSkeletonUI", false); // WINDOWS +//user_pref("browser.startup.preXulSkeletonUI", false); // WINDOWS user_pref("default-browser-agent.enabled", false); // deny Mozilla monitoring default browser (breaks "Make Default" button) user_pref("geo.provider.ms-windows-location", false); // [WINDOWS] user_pref("pdfjs.defaultZoomValue", "125"); // alt=page-width; PDF zoom level diff --git a/user.js b/user.js index 6f048d8..c81b5e4 100644 --- a/user.js +++ b/user.js @@ -10,7 +10,7 @@ /**************************************************************************** * Betterfox * * "Ad meliora" * - * version: 135 * + * version: 137 * * url: https://github.com/yokoffing/Betterfox * ****************************************************************************/ @@ -58,8 +58,6 @@ user_pref("layout.css.grid-template-masonry-value.enabled", true); ****************************************************************************/ /** TRACKING PROTECTION ***/ user_pref("browser.contentblocking.category", "strict"); -user_pref("urlclassifier.trackingSkipURLs", "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com"); -user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.twitter.com, *.twimg.com"); user_pref("browser.download.start_downloads_in_tmp_dir", true); user_pref("browser.helperApps.deleteTempFileOnExit", true); user_pref("browser.uitour.enabled", false); @@ -67,7 +65,6 @@ user_pref("privacy.globalprivacycontrol.enabled", true); /** OCSP & CERTS / HPKP ***/ user_pref("security.OCSP.enabled", 0); -user_pref("security.remote_settings.crlite_filters.enabled", true); user_pref("security.pki.crlite_mode", 2); /** SSL / TLS ***/ @@ -92,13 +89,8 @@ user_pref("browser.search.suggest.enabled", false); user_pref("browser.urlbar.quicksuggest.enabled", false); user_pref("browser.urlbar.groupLabels.enabled", false); user_pref("browser.formfill.enable", false); -user_pref("security.insecure_connection_text.enabled", true); -user_pref("security.insecure_connection_text.pbmode.enabled", true); user_pref("network.IDN_show_punycode", true); -/** HTTPS-FIRST POLICY ***/ -user_pref("dom.security.https_first", true); - /** PASSWORDS ***/ user_pref("signon.formlessCapture.enabled", false); user_pref("signon.privateBrowsingCapture.enabled", false); @@ -124,6 +116,7 @@ user_pref("browser.safebrowsing.downloads.remote.enabled", false); /** MOZILLA ***/ user_pref("permissions.default.desktop-notification", 2); user_pref("permissions.default.geo", 2); +user_pref("geo.provider.network.url", "https://beacondb.net/v1/geolocate"); user_pref("browser.search.update", false); user_pref("permissions.manager.defaultsUrl", ""); @@ -180,24 +173,21 @@ user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); user_pref("browser.compactmode.show", true); user_pref("browser.privateWindowSeparation.enabled", false); // WINDOWS -/** COOKIE BANNER HANDLING ***/ -user_pref("cookiebanners.service.mode", 1); -user_pref("cookiebanners.service.mode.privateBrowsing", 1); - /** 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.suggest.calculator", true); user_pref("browser.urlbar.unitConversion.enabled", true); user_pref("browser.urlbar.trending.featureGate", false); +user_pref("dom.text_fragments.create_text_fragment.enabled", true); /** NEW TAB PAGE ***/ -user_pref("browser.newtabpage.activity-stream.feeds.topsites", false); -user_pref("browser.newtabpage.activity-stream.showWeather", false); +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); /** POCKET ***/ user_pref("extensions.pocket.enabled", false); @@ -221,12 +211,16 @@ user_pref("layout.word_select.eat_space_to_next_word", false); // visit https://github.com/yokoffing/Betterfox/wiki/Optional-Hardening // Enter your personal overrides below this line: + + /**************************************************************************** * SECTION: SMOOTHFOX * ****************************************************************************/ // visit https://github.com/yokoffing/Betterfox/blob/main/Smoothfox.js // Enter your scrolling overrides below this line: + + /**************************************************************************** * END: BETTERFOX * ****************************************************************************/ diff --git a/zen/user.js b/zen/user.js new file mode 100644 index 0000000..d756c81 --- /dev/null +++ b/zen/user.js @@ -0,0 +1,129 @@ +// +/* You may copy+paste this file and use it as it is. + * + * If you make changes to your about:config while the program is running, the + * changes will be overwritten by the user.js when the application restarts. + * + * To make lasting changes to preferences, you will have to edit the user.js. + */ + +/**************************************************************************** + * BetterZen * + * "Ex nihilo nihil fit" * + * version: 137 * + * url: https://github.com/yokoffing/Betterfox * +****************************************************************************/ + +/**************************************************************************** + * SECTION: FASTFOX * +****************************************************************************/ +/** GFX ***/ +user_pref("gfx.canvas.accelerated.cache-items", 8192); // DEFAULT FF135+ +user_pref("gfx.canvas.accelerated.cache-size", 512); + +/** DISK CACHE ***/ +user_pref("browser.cache.disk.enable", false); + +/** NETWORK ***/ +user_pref("network.http.pacing.requests.enabled", false); + +/** SPECULATIVE LOADING ***/ +user_pref("network.dns.disablePrefetch", true); +user_pref("network.dns.disablePrefetchFromHTTPS", true); +user_pref("network.prefetch-next", false); +user_pref("network.predictor.enabled", false); +user_pref("network.predictor.enable-prefetch", false); + +/**************************************************************************** + * SECTION: SECUREFOX * +****************************************************************************/ +/** TRACKING PROTECTION ***/ +user_pref("browser.contentblocking.category", "strict"); +user_pref("browser.download.start_downloads_in_tmp_dir", true); + +/** OCSP & CERTS / HPKP ***/ +user_pref("security.OCSP.enabled", 0); +user_pref("security.pki.crlite_mode", 2); + +/** DISK AVOIDANCE ***/ +user_pref("browser.sessionstore.interval", 60000); + +/** SHUTDOWN & SANITIZING ***/ +user_pref("browser.privatebrowsing.resetPBM.enabled", true); +user_pref("privacy.history.custom", true); + +/** SEARCH / URL BAR ***/ +user_pref("browser.urlbar.quicksuggest.enabled", false); + +/** PASSWORDS ***/ +user_pref("signon.formlessCapture.enabled", false); +user_pref("signon.privateBrowsingCapture.enabled", false); +user_pref("network.auth.subresource-http-auth-allow", 1); +user_pref("editor.truncate_user_pastes", false); + +/** HEADERS / REFERERS ***/ +user_pref("network.http.referer.XOriginTrimmingPolicy", 2); + +/** SAFE BROWSING ***/ +user_pref("browser.safebrowsing.downloads.remote.enabled", false); + +/** MOZILLA ***/ +user_pref("permissions.default.desktop-notification", 2); +user_pref("permissions.default.geo", 2); +user_pref("geo.provider.network.url", "https://beacondb.net/v1/geolocate"); +user_pref("browser.search.update", false); +user_pref("permissions.manager.defaultsUrl", ""); + +/**************************************************************************** + * SECTION: PESKYFOX * +****************************************************************************/ +/** MOZILLA UI ***/ +user_pref("browser.shell.checkDefaultBrowser", false); + +/** NEW TAB PAGE ***/ +user_pref("browser.newtabpage.activity-stream.default.sites", ""); + +/** URL BAR ***/ +user_pref("dom.text_fragments.create_text_fragment.enabled", true); + +/**************************************************************************** + * START: ZEN-SPECIFIC OVERRIDES * +****************************************************************************/ +// Remove the slashes to enable the prefs + +// PREF: reduce CPU and GPU use until bug is fixed +// [1] https://github.com/zen-browser/desktop/issues/6302 +user_pref("zen.view.experimental-rounded-view", false); + +// PREF: re-enable Windows efficiency mode +//user_pref("dom.ipc.processPriorityManager.backgroundUsesEcoQoS", true); + +// PREF: disable new tab preload since they are off by default +//user_pref("browser.newtab.preload", false); + +// PREF: show Enhance Tracking Protection shield in URL bar +// Currently bugged if you click to view what's blocked +//user_pref("zen.urlbar.show-protections-icon", true); + +/**************************************************************************** + * START: MY OVERRIDES * +****************************************************************************/ +// visit https://github.com/yokoffing/Betterfox/wiki/Common-Overrides +// visit https://github.com/yokoffing/Betterfox/wiki/Optional-Hardening +// Enter your personal overrides below this line: + + +/**************************************************************************** + * SECTION: SMOOTHFOX * +****************************************************************************/ +// Reset Zen's custom scrolling prefs to their Firefox defaults before making changes! +// [1] Zen changes: https://github.com/zen-browser/desktop/blob/3932ec21f5661440c4b20796f90341a6ac725818/src/browser/app/profile/zen-browser.js#L297-L312 +// [2] Firefox defaults: https://searchfox.org/mozilla-release/source/modules/libpref/init/StaticPrefList.yaml +// Then apply an example from Smoothfox +// [3] https://github.com/yokoffing/Betterfox/blob/main/Smoothfox.js +// Enter your scrolling overrides below this line: + + +/**************************************************************************** + * END: BETTERFOX * +****************************************************************************/