mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-12 07:30:47 +05:30
Compare commits
143 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b17905359a | |||
| 6695266de5 | |||
| 02abcccca4 | |||
| 5228abe8bc | |||
| 6dc12c39d1 | |||
| 07c7bbe6ba | |||
| bdf392b895 | |||
| 885a60390c | |||
| 213e6f15db | |||
| a1284a1653 | |||
| d861f1b093 | |||
| 1209ea9743 | |||
| 8897e910ca | |||
| 368df70ca6 | |||
| 4d02f2752d | |||
| 39c19c43ee | |||
| f069be9637 | |||
| d6cff27f32 | |||
| 99f2e86063 | |||
| d97b8e5c60 | |||
| ec5d8b7423 | |||
| 064f64ab5f | |||
| 4011344f22 | |||
| f95103e854 | |||
| 00516e9bbf | |||
| 363392935a | |||
| 1abb557b27 | |||
| 04cfb3348a | |||
| 229d6697ba | |||
| d12492db46 | |||
| 9b7b0e68bc | |||
| 876d0fdabb | |||
| 40b30c550a | |||
| f9b73ef2fb | |||
| a1258c93a7 | |||
| 02b814cdc5 | |||
| 9f4f3ac94f | |||
| 5526f98e36 | |||
| 47296c3db7 | |||
| c6d825c2e0 | |||
| b38e21923a | |||
| ccc5c19347 | |||
| ec00fcc8b5 | |||
| df898d612c | |||
| 64e25ca5a6 | |||
| d1922b36b3 | |||
| a581701b4c | |||
| 16d5acbc00 | |||
| 1f0591765c | |||
| cfab690e59 | |||
| ac700e6059 | |||
| e377ae10ee | |||
| 3404a2149b | |||
| e968e81b9d | |||
| d822d3f15e | |||
| 7a2884f474 | |||
| ad624c0dba | |||
| 2d7db5a003 | |||
| 739e44c4dd | |||
| 0bd34c0e38 | |||
| 6275cc4b89 | |||
| ab193f3d8d | |||
| ded2f4e39c | |||
| b142f7ee3c | |||
| b9fbb68e01 | |||
| 15164e057f | |||
| 406e15fe45 | |||
| da5d381581 | |||
| f4c4f2c92e | |||
| adcc0b9495 | |||
| 2ee90c6aea | |||
| 1f430a55e0 | |||
| 7652235ba5 | |||
| 820ef8630d | |||
| d59b4c6ca4 | |||
| 2e70eae32e | |||
| 9c80d3aa4d | |||
| 65447bc01c | |||
| 855727791b | |||
| 3ecee6db5b | |||
| f07fcf289e | |||
| 9d68a4a0be | |||
| 89850bb04d | |||
| 6b81e65bc7 | |||
| 9603397a98 | |||
| 96bd585870 | |||
| 463de7b7b4 | |||
| bd19921244 | |||
| 6a879397f5 | |||
| 353540bf7c | |||
| f41d06c2a4 | |||
| bc3c8f84de | |||
| 32705478d2 | |||
| 3ff20e8efc | |||
| f85d2d09a9 | |||
| 11fb448317 | |||
| d38de11c8e | |||
| 078a8fa5ca | |||
| fa159e12e4 | |||
| ef04b0bd37 | |||
| b2cc5f3ca8 | |||
| 3577f4d70c | |||
| 62d43d24fc | |||
| 08ba8fb771 | |||
| 683e3c805c | |||
| 349ed50ebd | |||
| f2408dd157 | |||
| 6a732503bb | |||
| cd3a4c162b | |||
| 2003c8d989 | |||
| 00c018e4ae | |||
| 1bdf238075 | |||
| ec601dcbdc | |||
| 2bc1dd8fb2 | |||
| b7e389eec4 | |||
| 48dd1dfbb3 | |||
| bb9e5c1ea3 | |||
| 14f27cd5f8 | |||
| 3f533f236f | |||
| 01fab3ca34 | |||
| 351b685659 | |||
| 645de9a604 | |||
| 41850d9cfd | |||
| dbf6515187 | |||
| ca15a55a49 | |||
| 2f0999939e | |||
| 2b2e375228 | |||
| 4b049633ab | |||
| 30bc1e69de | |||
| 54d453dec5 | |||
| c29fe2b939 | |||
| a8e9aaa5f0 | |||
| c3eb95ae41 | |||
| 405cbc7a86 | |||
| 733dfe2dfd | |||
| f9fae4f3c2 | |||
| da0e4c2e2e | |||
| 85b84dd669 | |||
| c7dc352e60 | |||
| 00acc684f6 | |||
| 9aa77019ff | |||
| 103e2866fa | |||
| 2f576bc100 |
@@ -2,34 +2,37 @@
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: bug
|
||||
labels: ''
|
||||
assignees: yokoffing
|
||||
|
||||
---
|
||||
|
||||
## BEFORE YOU BEGIN
|
||||
I have attempted the following troubleshooting suggestions:
|
||||
- [ ] [Cleared website data](https://www.hostinger.com/tutorials/wp-content/uploads/sites/2/2018/05/clear-browser-cache-firefox.png), restarted Firefox, and my issue persists.
|
||||
- [ ] No issues when using the website or extension in another web browser.
|
||||
- [ ] The issue persists when using Firefox in [Safe Mode](https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode#w_how-to-start-firefox-in-safe-mode).
|
||||
- [ ] Disabled DNS-level content blocking (AdGuard, NextDNS, PiHole), [cleared my DNS cache](https://www.pcmag.com/how-to/how-to-flush-your-dns-cache), and used my ISP's DNS resolver (if applicable).
|
||||
- [ ] The issue persists when using Firefox in [Troubleshoot Mode](https://support.mozilla.org/en-US/kb/diagnose-firefox-issues-using-troubleshoot-mode).
|
||||
- [ ] Disabled DNS-level content blocking (AdGuard Home, NextDNS, Control D, RethinkDNS, PiHole, etc), [cleared my DNS cache](https://www.pcmag.com/how-to/how-to-flush-your-dns-cache), and used my ISP's DNS resolver (if applicable).
|
||||
- [ ] [Cleared website data](https://support.mozilla.org/en-US/kb/clear-cookies-and-site-data-firefox), restarted Firefox, and my issue persists.
|
||||
- [ ] I have created a [new profile](https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles). The issue persists when using the current [user.js](https://github.com/yokoffing/Betterfox/blob/master/user.js) file on GitHub. (Must be in a new profile and a new user.js!)
|
||||
|
||||
## REPORT
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
*A clear and concise description of what the bug is.*
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
*Steps to reproduce the behavior:*
|
||||
|
||||
```
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
```
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
*A clear and concise description of what you expected to happen.*
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
*If applicable, add screenshots to help explain your problem.*
|
||||
|
||||
**Desktop (please complete the following information):**
|
||||
- OS: [e.g. iOS]
|
||||
@@ -37,4 +40,4 @@ If applicable, add screenshots to help explain your problem.
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
*Add any other context about the problem here.*
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: enhancement
|
||||
labels: ''
|
||||
assignees: yokoffing
|
||||
|
||||
---
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
---
|
||||
name: General Inquiry
|
||||
about: Ask a question
|
||||
title: ''
|
||||
labels: ":grey_question: question"
|
||||
assignees: yokoffing
|
||||
|
||||
---
|
||||
|
||||
|
||||
+196
-114
@@ -1,25 +1,64 @@
|
||||
//
|
||||
/* Do not COPY+PASTE this file. If you do, only COPY+PASTE the user_pref itself.
|
||||
*
|
||||
* If you make changes to your about:config while the program is running, the
|
||||
* changes will be overwritten when the application restarts.
|
||||
*
|
||||
* To make a change to preferences, you will have to edit the user.js file.
|
||||
*/
|
||||
|
||||
/****************************************************************************************
|
||||
* Fastfox *
|
||||
* "Non ducor duco" *
|
||||
* priority: speedy browsing *
|
||||
* version: 107a *
|
||||
* version: 110 *
|
||||
* url: https://github.com/yokoffing/Betterfox *
|
||||
***************************************************************************************/
|
||||
|
||||
// PREF: process count
|
||||
// Process count used to be "# of CPU cores = processCount" starting with Firefox Quantum (2017).
|
||||
// Since the introduction of Fission [2], increasing process count
|
||||
// is more complicated than changing one pref [1].
|
||||
// [1] https://firefox-source-docs.mozilla.org/dom/ipc/process_model.html#web-content-processes
|
||||
// [2] https://github.com/yokoffing/Betterfox/blob/064f64ab5f0e8443ed6b127d91326d9c887cd15d/Securefox.js#L58-L64
|
||||
//user_pref("dom.ipc.processCount", 8); // DEFAULT; Shared Web Content
|
||||
//user_pref("dom.ipc.processCount.webIsolated", 4); // per-site; DEFAULT; Isolated Web Content
|
||||
|
||||
// PREF: initial paint delay
|
||||
// How long FF will wait before rendering the page
|
||||
// [1] https://kb.mozillazine.org/Nglayout.initialpaint.delay
|
||||
// How long FF will wait before rendering the page, in milliseconds
|
||||
// Reduce the 5ms Firefox waits to render the page
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1283302
|
||||
// [2] https://docs.google.com/document/d/1BvCoZzk2_rNZx3u9ESPoFjSADRI0zIPeJRXFLwWXx_4/edit#heading=h.28ki6m8dg30z
|
||||
user_pref("nglayout.initialpaint.delay", 0); // default=5; used to be 250
|
||||
user_pref("nglayout.initialpaint.delay_in_oopif", 0); // default=5; used to be 250
|
||||
user_pref("nglayout.initialpaint.delay_in_oopif", 0); // default=5
|
||||
|
||||
// PREF: page reflow timer
|
||||
// Rather than wait until a page has completely downloaded to display it to the user,
|
||||
// web browsers will periodically render what has been received to that point.
|
||||
// Because reflowing the page every time additional data is received slows down
|
||||
// total page load time, a timer was added so that the page would not reflow too often.
|
||||
// This preference specfies whether that timer is active.
|
||||
// [1] https://kb.mozillazine.org/Content.notify.ontimer
|
||||
// true = do not reflow pages at an interval any higher than that specified by content.notify.interval (default)
|
||||
// false = reflow pages whenever new data is received
|
||||
//user_pref("content.notify.ontimer", true); // DEFAULT
|
||||
|
||||
// PREF: notification interval (in microseconds) [to avoid layout thrashing]
|
||||
// When Firefox is loading a page, it periodically reformats
|
||||
// or "reflows" the page as it loads. The page displays new elements
|
||||
// every 0.12 seconds by default. These redraws increase the total page load time.
|
||||
// The default value provides good incremental display of content
|
||||
// without causing an increase in page load time.
|
||||
// [NOTE] Lowering the interval will decrease the PERCEIVED page load time (user experience?)
|
||||
// but increase the TOTAL loading time (benchmarks?).
|
||||
// [NOTE] Slower connections will want lower value (100000).
|
||||
// Page load does not change dramatically for faster connections,
|
||||
// so you may favor a smoother page load (360000).
|
||||
// [WARNING] If this value is set below 1/10 of a second, it starts
|
||||
// to impact page load performance.
|
||||
// [EXAMPLE] 100000 = .10s = 100 reflows/second
|
||||
// [1] https://searchfox.org/mozilla-central/rev/c1180ea13e73eb985a49b15c0d90e977a1aa919c/modules/libpref/init/StaticPrefList.yaml#1824-1834
|
||||
// [2] https://dev.opera.com/articles/efficient-javascript/?page=3#reflow
|
||||
// [3] https://dev.opera.com/articles/efficient-javascript/?page=3#smoothspeed
|
||||
user_pref("content.notify.interval", 100000); // alt=360000 (.36s)
|
||||
|
||||
// PREF: set the minimum interval between session save operations
|
||||
// Increasing this can help on older machines and some websites, as well as reducing writes
|
||||
// [1] https://bugzilla.mozilla.org/1304389
|
||||
// default=15000 (15s)
|
||||
//user_pref("browser.sessionstore.interval", 30000); // (30s)
|
||||
|
||||
// PREF: control how tabs are loaded when a session is restored
|
||||
// true=Tabs are not loaded until they are selected (default)
|
||||
@@ -27,37 +66,10 @@ user_pref("nglayout.initialpaint.delay_in_oopif", 0); // default=5; used to be 2
|
||||
//user_pref("browser.sessionstore.restore_on_demand", true); // DEFAULT
|
||||
//user_pref("browser.sessionstore.restore_pinned_tabs_on_demand", true);
|
||||
//user_pref("browser.sessionstore.restore_tabs_lazily", true); // DEFAULT
|
||||
|
||||
// PREF: enable Lazy Image Loading
|
||||
// https://www.ghacks.net/2020/02/15/firefox-75-gets-lazy-loading-support-for-images/
|
||||
//user_pref("dom.image-lazy-loading.enabled", true); // DEFAULT
|
||||
|
||||
// PREF: disable preSkeletonUI on startup
|
||||
user_pref("browser.startup.preXulSkeletonUI", false);
|
||||
|
||||
// PREF: set the minimum interval between session save operations
|
||||
// Increasing this can help on older machines and some websites, as well as reducing writes
|
||||
// [1] https://bugzilla.mozilla.org/1304389
|
||||
//user_pref("browser.sessionstore.interval", 30000); // [DEFAULT: 15000]
|
||||
|
||||
// PREF: OffscreenCanvas
|
||||
// [1] https://yashints.dev/blog/2019/05/11/offscreen-canvas
|
||||
// [2] https://www.youtube.com/watch?v=CWvRA9E0DqU
|
||||
// [3] https://developer.chrome.com/blog/offscreen-canvas/
|
||||
// [4] https://groups.google.com/a/mozilla.org/g/dev-platform/c/kp9SZL-0wW0
|
||||
//user_pref("gfx.offscreencanvas.enabled", true); // DEFAULT FF106+
|
||||
|
||||
// PREF: CSS Font Loading API in workers
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1072107
|
||||
//user_pref("layout.css.font-loading-api.workers.enabled", true); // DEFAULT FF106+
|
||||
|
||||
// PREF: enable importMaps [FF108+]
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1688879
|
||||
// [2] https://github.com/WICG/import-maps#the-basic-idea
|
||||
// [3] https://caniuse.com/import-maps
|
||||
//user_pref("dom.importMaps.enabled", true); // DEFAULT FF108+
|
||||
//user_pref("javascript.options.experimental.import_assertions", true);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: EXPERIMENTAL *
|
||||
****************************************************************************/
|
||||
@@ -68,71 +80,76 @@ user_pref("browser.startup.preXulSkeletonUI", false);
|
||||
//user_pref("browser.startup.homepage.abouthome_cache.enabled", true);
|
||||
|
||||
// PREF: CSS Masonry Layout [NIGHTLY]
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Masonry_Layout
|
||||
user_pref("layout.css.grid-template-masonry-value.enabled", true);
|
||||
|
||||
// PREF: CSS Animation Composition [NIGHTLY]
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1785329
|
||||
// [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1293490
|
||||
// [3] https://developer.mozilla.org/en-US/docs/Web/CSS/animation-composition
|
||||
user_pref("layout.css.animation-composition.enabled", true);
|
||||
|
||||
// PREF: Prioritized Task Scheduling API [NIGHTLY]
|
||||
// [1] https://blog.mozilla.org/performance/2022/06/02/prioritized-task-scheduling-api-is-prototyped-in-nightly/
|
||||
// [2] https://medium.com/airbnb-engineering/building-a-faster-web-experience-with-the-posttask-scheduler-276b83454e91
|
||||
user_pref("dom.enable_web_task_scheduling", true);
|
||||
|
||||
// PREF: enable animation-composition [NIGHTLY]
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1785329
|
||||
// [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1293490
|
||||
// [3] https://developer.mozilla.org/en-US/docs/Web/CSS/animation-composition
|
||||
user_pref("layout.css.animation-composition.enabled", true);
|
||||
// PREF: inert HTML attribute [NIGHTLY]
|
||||
//user_pref("html5.inert.enabled", true);
|
||||
|
||||
// PREF: container query length units [NIGHTLY]
|
||||
//user_pref("layout.css.container-queries.enabled", true);
|
||||
|
||||
// PREF: scroll-linked animations [NIGHTLY]
|
||||
//user_pref("layout.css.scroll-driven-animations.enabled", true);
|
||||
|
||||
// PREF: HTML Sanitizer API [NIGHTLY]
|
||||
//user_pref("dom.security.sanitizer.enabled", true);
|
||||
|
||||
// PREF: Clear-Site-Data: "cache" header [NIGHTLY]
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data
|
||||
//user_pref("privacy.clearsitedata.cache.enabled", true);
|
||||
|
||||
// PREF: Shadowrealms [NIGHTLY]
|
||||
// [1] https://github.com/tc39/proposal-shadowrealm/blob/main/explainer.md#introduction
|
||||
//user_pref("javascript.options.experimental.shadow_realms", true);
|
||||
|
||||
// PREF: Wasm GC [NIGHTLY]
|
||||
// PREF: Wasm GC + References [NIGHTLY]
|
||||
// [1] https://github.com/WebAssembly/gc/blob/main/proposals/gc/Overview.md
|
||||
// [2] https://github.com/WebAssembly/function-references/blob/master/proposals/function-references/Overview.md
|
||||
//user_pref("javascript.options.wasm_gc", true);
|
||||
|
||||
// PREF: Wasm Function References [NIGHTLY]
|
||||
// [1] https://github.com/WebAssembly/function-references/blob/master/proposals/function-references/Overview.md
|
||||
//user_pref("javascript.options.wasm_function_references", true);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: NETWORK *
|
||||
****************************************************************************/
|
||||
// PREF: import assertions [NIGHTLY]
|
||||
//user_pref("javascript.options.experimental.import_assertions", true);
|
||||
|
||||
// PREF: faster SSL
|
||||
user_pref("network.ssl_tokens_cache_capacity", 32768); // more TLS token caching (fast reconnects)
|
||||
// PREF: Array.fromAsync [NIGHTLY]
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1795452
|
||||
//user_pref("javascript.options.experimental.array_grouping", true);
|
||||
//user_pref("javascript.options.experimental.enable_change_array_by_copy", true);
|
||||
|
||||
// PREF: increase DNS cache
|
||||
user_pref("network.dnsCacheEntries", 20000);
|
||||
user_pref("network.dnsCacheExpiration", 3600);
|
||||
user_pref("network.dnsCacheExpirationGracePeriod", 240);
|
||||
// PREF: indexedDB
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1112702
|
||||
//user_pref("dom.indexedDB.preprocessing", true);
|
||||
//user_pref("dom.indexedDB.experimental", false); // DEFAULT
|
||||
|
||||
// PREF: use bigger packets
|
||||
// [1] https://www.mail-archive.com/support-seamonkey@lists.mozilla.org/msg74561.html
|
||||
// [2] https://www.mail-archive.com/support-seamonkey@lists.mozilla.org/msg74570.html
|
||||
user_pref("network.buffer.cache.size", 262144); // preferred=327680; default=32768
|
||||
user_pref("network.buffer.cache.count", 128); // preferred=240; default=24
|
||||
// PREF: WebGPU [HIGHLY EXPERIMENTAL!]
|
||||
// [WARNING] Do not enable unless you are a web developer!
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1746245
|
||||
// [2] https://developer.chrome.com/docs/web-platform/webgpu/
|
||||
// [3] https://github.com/gpuweb/gpuweb/wiki/Implementation-Status
|
||||
// [4] https://hacks.mozilla.org/2020/04/experimental-webgpu-in-firefox/
|
||||
//user_pref("dom.webgpu.enabled", true);
|
||||
//user_pref("gfx.webgpu.force-enabled", true);
|
||||
|
||||
// PREF: DoH requests
|
||||
//user_pref("network.trr.request_timeout_ms", 1500); // DEFAULT
|
||||
//user_pref("network.trr.retry-timeout-ms", 125); // DEFAULT
|
||||
|
||||
// These do not affect anything, probably:
|
||||
|
||||
// PREF: close a connection if tls handshake does not finish in given number of seconds
|
||||
//user_pref("network.http.tls-handshake-timeout", 3); // default=30
|
||||
|
||||
// PREF: timeout connections if an initial response is not received in number of seconds
|
||||
//user_pref("network.http.response.timeout", 5); // default=300
|
||||
|
||||
// PREF: increase the absolute number of http connections
|
||||
// [1] https://kb.mozillazine.org/Network.http.max-connections
|
||||
// [2] https://kb.mozillazine.org/Network.http.max-persistent-connections-per-server
|
||||
//user_pref("network.http.max-connections", 1800); // default=900
|
||||
//user_pref("network.http.max-persistent-connections-per-server", 8); // default=6; download connections; anything above 10 is excessive
|
||||
// PREF: Animated AVIF [NIGHTLY]
|
||||
// [1] https://codecalamity.com/animated-avif-is-finally-coming-to-firefox/
|
||||
//user_pref("image.avif.sequence.enabled", true);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: MAKE FIREFOX FAST *
|
||||
* [NOTE] The following is not recommended for low-end machines *
|
||||
* Credit for most of these: *
|
||||
* Credit for many of these: *
|
||||
* https://gist.github.com/RubenKelevra/fd66c2f856d703260ecdf0379c4f59db *
|
||||
* [NOTE] For best performance on older hardware, you will need to test *
|
||||
* these settings individually. *
|
||||
@@ -143,24 +160,31 @@ user_pref("network.buffer.cache.count", 128); // preferred=240; default=24
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: Webrender tweaks
|
||||
// [1] https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-fps-how-webrender-gets-rid-of-jank/
|
||||
// [2] https://wiki.mozilla.org/Platform/GFX/WebRender_Where
|
||||
// [3] https://www.reddit.com/r/firefox/comments/fo1jwz/make_firefox_faster/flhh5l2/
|
||||
// [4] https://www.troddit.com/r/firefox/comments/tbphok/is_setting_gfxwebrenderprecacheshaders_to_true/i0bxs2r/
|
||||
// [1] https://searchfox.org/mozilla-central/rev/6e6332bbd3dd6926acce3ce6d32664eab4f837e5/modules/libpref/init/StaticPrefList.yaml#6202-6219
|
||||
// [2] https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-fps-how-webrender-gets-rid-of-jank/
|
||||
// [3] https://www.troddit.com/r/firefox/comments/tbphok/is_setting_gfxwebrenderprecacheshaders_to_true/i0bxs2r/
|
||||
// [4] https://www.troddit.com/r/firefox/comments/z5auzi/comment/ixw65gb?context=3
|
||||
user_pref("gfx.webrender.all", true); // enables WR (GPU) + additional features
|
||||
user_pref("gfx.webrender.precache-shaders", true);
|
||||
user_pref("gfx.webrender.compositor", true);
|
||||
//user_pref("gfx.webrender.compositor.force-enabled", true); // reinforce
|
||||
//user_pref("gfx.webrender.compositor.force-enabled", true); // enforce
|
||||
user_pref("layers.gpu-process.enabled", true);
|
||||
//user_pref("layers.gpu-process.force-enabled", true); // enforce
|
||||
user_pref("media.hardware-video-decoding.enabled", true);
|
||||
//user_pref("media.hardware-video-decoding.force-enabled", true); // enforce
|
||||
|
||||
// PREF: if your hardware doesn't support Webrender, you can fallback to Webrender's software renderer
|
||||
// [1] https://www.ghacks.net/2020/12/14/how-to-find-out-if-webrender-is-enabled-in-firefox-and-how-to-enable-it-if-it-is-not/
|
||||
//user_pref("gfx.webrender.enabled", true);
|
||||
//user_pref("gfx.webrender.software", true); // Webrender uses the CPU and not the GPU
|
||||
//user_pref("gfx.webrender.software.opengl", true); [LINUX]
|
||||
//user_pref("gfx.webrender.software.opengl", true); // [LINUX]
|
||||
//user_pref("media.ffmpeg.vaapi.enabled", true); // [LINUX]
|
||||
|
||||
// PREF: GPU-accelerated Canvas2D tweaks
|
||||
// PREF: GPU-accelerated Canvas2D
|
||||
// [WARNING] May break PDF rendering on Surface Pro devices [2]
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1739448
|
||||
user_pref("gfx.canvas.accelerated", true);
|
||||
// [2] https://github.com/yokoffing/Betterfox/issues/153
|
||||
user_pref("gfx.canvas.accelerated", true); // DEFAULT on macOS and Linux v.110
|
||||
user_pref("gfx.canvas.accelerated.cache-items", 32768);
|
||||
user_pref("gfx.canvas.accelerated.cache-size", 4096);
|
||||
user_pref("gfx.content.skia-font-cache-size", 80);
|
||||
@@ -169,48 +193,106 @@ user_pref("gfx.content.skia-font-cache-size", 80);
|
||||
user_pref("image.cache.size", 10485760);
|
||||
user_pref("image.mem.decode_bytes_at_a_time", 131072); // alt=65536; preferred=262144; chunk size for calls to the image decoders
|
||||
user_pref("image.mem.shared.unmap.min_expiration_ms", 120000); // default=60000; minimum timeout to unmap shared surfaces since they have been last used
|
||||
user_pref("layers.gpu-process.enabled", true);
|
||||
//user_pref("layers.gpu-process.force-enabled", true); // reinforce
|
||||
|
||||
// PREF: increase media cache
|
||||
user_pref("media.memory_cache_max_size", 1048576); // alt=512000; also in Securefox (inactive there)
|
||||
user_pref("media.memory_caches_combined_limit_kb", 2560000); // preferred=3145728; // default=524288
|
||||
//user_pref("media.memory_caches_combined_limit_pc_sysmem", 20); // default=5
|
||||
//user_pref("media.ffmpeg.vaapi.enabled", true); // [LINUX]
|
||||
//user_pref("media.hardware-video-decoding.enabled", true);
|
||||
//user_pref("media.hardware-video-decoding.force-enabled", true); // reinforce
|
||||
|
||||
// PREF: decrease video buffering
|
||||
// [NOTE] Does not affect YouTube since it uses DASH playback [1]
|
||||
// [NOTE] Does not affect videos over 720p since they use DASH playback [1]
|
||||
// [1] https://lifehacker.com/preload-entire-youtube-videos-by-disabling-dash-playbac-1186454034
|
||||
user_pref("media.cache_size", 2048000); // default=512000
|
||||
//user_pref("media.cache_size", 2048000); // default=512000
|
||||
user_pref("media.cache_readahead_limit", 9000); // default=60; stop reading ahead when our buffered data is this many seconds ahead of the current playback
|
||||
user_pref("media.cache_resume_threshold", 6000); // default=30; when a network connection is suspended, don't resume it until the amount of buffered data falls below this threshold (in seconds)
|
||||
|
||||
// PREF: faster upload speed
|
||||
// Firefox currently has a bug with impacting upload speeds with HTTP3/QUIC
|
||||
// [TEST] https://speedof.me/
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1753486
|
||||
// [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1596576
|
||||
//user_pref("network.http.http3.enable", false); // disables HTTP3/QUIC
|
||||
//user_pref("network.http.http2.chunk-size", 32000); // preferred=48000; default=16000 [needed?]
|
||||
|
||||
// PREF: disable AV1 for hardware decodeable videos
|
||||
// AV1 uses software (CPU-based) decoding
|
||||
// Firefox sometimes uses AV1 video decoding even to GPUs which do not support it
|
||||
// [1] https://www.troddit.com/r/AV1/comments/s5xyph/youtube_av1_codec_have_worse_quality_than_old_vp9
|
||||
//user_pref("media.av1.enabled", false);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: BROWSER CACHE *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: re-enable disk cache (optional)
|
||||
// PREF: disk cache
|
||||
// [EXTENSION] https://addons.mozilla.org/en-US/firefox/addon/cache-longer/
|
||||
//user_pref("browser.cache.disk.enable", true); // SecureFox override
|
||||
//user_pref("browser.cache.disk.max_entry_size", 51200); // DEFAULT
|
||||
//user_pref("browser.cache.disk.smart_size.enabled", false); // disable adaptive cache size on disk
|
||||
// More efficient to keep the browser cache instead of
|
||||
// having to re-download objects for the websites you visit frequently
|
||||
//user_pref("browser.cache.disk.enable", true); // DEFAULT; overrides Securefox
|
||||
//user_pref("browser.cache.disk.capacity", 8192000); // 8 GB cache on disk
|
||||
//user_pref("browser.cache.max_shutdown_io_lag", 16); // number of seconds the cache spends writing pending data and closing files after shutdown has been signalled
|
||||
//user_pref("browser.cache.frecency_half_life_hours", 128); // lower cache sweep intervals, the half life used to re-compute cache entries frecency (in hours)
|
||||
// disable clearing cache on shutdown:
|
||||
//user_pref("privacy.clearOnShutdown.cache", false);
|
||||
//user_pref("browser.cache.disk.smart_size.enabled", false); // disable adaptive cache size on disk
|
||||
//user_pref("browser.cache.disk.max_entry_size", 51200); // DEFAULT
|
||||
//user_pref("browser.cache.max_shutdown_io_lag", 8); // number of seconds the cache spends writing pending data and closing files after shutdown has been signalled
|
||||
//user_pref("browser.cache.frecency_half_life_hours", 6); // DEFAULT; lower cache sweep intervals, the half life used to re-compute cache entries frequency (in hours)
|
||||
|
||||
// PREF: increase memory cache size (recommended)
|
||||
// PREF: increase memory cache size
|
||||
// [1] https://www.makeuseof.com/tag/how-much-data-does-youtube-use/
|
||||
//user_pref("browser.cache.memory.capacity", 5242880); // default=-1; 256000=256MB, 512000=512MB, 1024000=1GB, 2097152=2GB, 5242880=5GB, 8388608=8GB
|
||||
user_pref("browser.cache.memory.max_entry_size", 153600); // alt=51200; preferred=327680 ; -1 -> entries bigger than than 90% of the mem-cache are never cached
|
||||
//user_pref("browser.cache.memory.capacity", -1); // DEFAULT; 256000=256MB, 512000=512MB, 1024000=1GB, 2097152=2GB, 5242880=5GB, 8388608=8GB
|
||||
user_pref("browser.cache.memory.max_entry_size", 153600); // alt=51200; preferred=327680 ; alt= -1 -> entries bigger than than 90% of the mem-cache are never cached
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: NETWORK *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: use bigger packets
|
||||
// [1] https://www.mail-archive.com/support-seamonkey@lists.mozilla.org/msg74561.html
|
||||
// [2] https://www.mail-archive.com/support-seamonkey@lists.mozilla.org/msg74570.html
|
||||
user_pref("network.buffer.cache.size", 262144); // preferred=327680; default=32768
|
||||
user_pref("network.buffer.cache.count", 128); // preferred=240; default=24
|
||||
|
||||
// PREF: increase the absolute number of HTTP connections
|
||||
// [1] https://kb.mozillazine.org/Network.http.max-connections
|
||||
// [2] https://kb.mozillazine.org/Network.http.max-persistent-connections-per-server
|
||||
//user_pref("network.http.max-connections", 1800); // default=900
|
||||
//user_pref("network.http.max-persistent-connections-per-server", 9); // default=6; download connections; anything above 10 is excessive
|
||||
//user_pref("network.http.max-persistent-connections-per-proxy", 48); // default=32
|
||||
//user_pref("network.http.max-urgent-start-excessive-connections-per-host", 6); // default=3
|
||||
//user_pref("network.http.pacing.requests.min-parallelism", 18); // default=6
|
||||
|
||||
// PREF: increase DNS cache
|
||||
// [NOTE] May be overridden by DNS resolver, especially if using TRR
|
||||
//user_pref("network.dnsCacheEntries", 20000);
|
||||
//user_pref("network.dnsCacheExpiration", 3600); // keep entries for 1 hour
|
||||
//user_pref("network.dnsCacheExpirationGracePeriod", 240); // 4 minutes
|
||||
|
||||
// PREF: increase TLS token caching
|
||||
user_pref("network.ssl_tokens_cache_capacity", 32768); // default=2048; more TLS token caching (fast reconnects)
|
||||
|
||||
// PREF: temporary fix for upload speed bug in Firefox
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1596576
|
||||
//user_pref("network.http.http2.send-buffer-size", 33554432);
|
||||
//user_pref("network.http.http2.push-allowance", 33554432);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: SPECULATIVE CONNECTIONS *
|
||||
****************************************************************************/
|
||||
|
||||
// [NOTE] FF85+ partitions (isolates) pooled connections, prefetch connections,
|
||||
// pre-connect connections, speculative connections, TLS session identifiers,
|
||||
// and other connections. We can take advantage of the speed of pre-connections
|
||||
// while preserving privacy. Users may relax hardening to maximize their preference.
|
||||
// For more information, see SecureFox: "PREF: State Paritioning" and "PREF: Network Partitioning" [1]
|
||||
// [1] https://github.com/yokoffing/Betterfox/blob/e9621b0062914da5fdb5f83b8da64041965b7a50/Securefox.js#L74-L108
|
||||
// [NOTE] To activate and increase network predictions, go to settings in uBlock Origin, and make this setting is DISABLED:
|
||||
// - "Disable pre-fetching (to prevent any connection for blocked network requests)"
|
||||
// [NOTE] Add prefs to "MY OVERRIDES" section and uncomment to enable them in your user.js.
|
||||
|
||||
// PREF: increase network predictions
|
||||
//user_pref("network.http.speculative-parallel-limit", 18); // default=6; overrides SecureFox
|
||||
//user_pref("network.dns.disablePrefetch", false); // overrides SecureFox
|
||||
//user_pref("network.dns.disablePrefetchFromHTTPS", false);
|
||||
//user_pref("browser.urlbar.speculativeConnect.enabled", true); // overrides SecureFox
|
||||
//user_pref("browser.places.speculativeConnect.enabled", true); // overrides SecureFox
|
||||
//user_pref("network.prefetch-next", true); // overrides SecureFox
|
||||
//user_pref("network.predictor.enabled", true); // overrides SecureFox
|
||||
//user_pref("network.predictor.enable-prefetch", true); // overrides SecureFox
|
||||
//user_pref("network.predictor.enable-hover-on-ssl", true);
|
||||
//user_pref("network.predictor.preresolve-min-confidence", 40); // default=60; alt=10
|
||||
//user_pref("network.predictor.preconnect-min-confidence", 60); // default=90; alt=20
|
||||
//user_pref("network.predictor.prefetch-min-confidence", 80); // default=100; alt=30
|
||||
//user_pref("network.predictor.prefetch-force-valid-for", 3600); // default=10
|
||||
//user_pref("network.predictor.prefetch-rolling-load-count", 120); // default=10
|
||||
//user_pref("network.predictor.max-resources-per-entry", 250); // default=100
|
||||
//user_pref("network.predictor.max-uri-length", 1000); // default=500
|
||||
|
||||
+63
-80
@@ -1,17 +1,9 @@
|
||||
//
|
||||
/* Do not COPY+PASTE this file. If you do, only COPY+PASTE the user_pref itself.
|
||||
*
|
||||
* If you make changes to your about:config while the program is running, the
|
||||
* changes will be overwritten when the application restarts.
|
||||
*
|
||||
* To make a change to preferences, you will have to edit the user.js file.
|
||||
*/
|
||||
|
||||
/****************************************************************************
|
||||
* Peskyfox *
|
||||
* "Aquila non capit muscas" *
|
||||
* priority: remove annoyances *
|
||||
* version: 107a *
|
||||
* version: 110 *
|
||||
* url: https://github.com/yokoffing/Betterfox *
|
||||
***************************************************************************/
|
||||
|
||||
@@ -19,16 +11,6 @@
|
||||
* SECTION: MOZILLA UI *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: enable a Light theme for browser and webpage content
|
||||
// [TEST] https://9to5mac.com/
|
||||
//user_pref("ui.systemUsesDarkTheme", 0); // HIDDEN
|
||||
//user_pref("browser.in-content.dark-mode", false); // HIDDEN
|
||||
|
||||
// PREF: enable a Dark theme for browser and webpage content
|
||||
// [TEST] https://9to5mac.com/
|
||||
//user_pref("ui.systemUsesDarkTheme", 1); // HIDDEN
|
||||
//user_pref("browser.in-content.dark-mode", true); // HIDDEN
|
||||
|
||||
// PREF: choose what theme Firefox follows by default
|
||||
// Dark (0), Light (1), System (2), or Browser (3) (default)
|
||||
// [1] https://www.reddit.com/r/firefox/comments/rfj6yc/how_to_stop_firefoxs_dark_theme_from_overriding/hoe82i5/?context=3
|
||||
@@ -37,28 +19,11 @@ user_pref("layout.css.prefers-color-scheme.content-override", 2);
|
||||
// PREF: enable Firefox to use userChome, userContent, etc.
|
||||
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
|
||||
|
||||
// PREF: enable CSS moz document rules
|
||||
// Still needed for Stylus?
|
||||
// [1] https://old.reddit.com/r/FirefoxCSS/comments/8x2q97/reenabling_mozdocument_rules_in_firefox_61/
|
||||
//user_pref("layout.css.moz-document.content.enabled", true);
|
||||
|
||||
// PREF: disable annoying update restart prompts
|
||||
// Delay update available prompts for ~1 week
|
||||
// Will still show green arrow in menu bar
|
||||
user_pref("app.update.suppressPrompts", true);
|
||||
|
||||
// PREF: disable Accessibility services
|
||||
// Performance improvement
|
||||
user_pref("accessibility.force_disabled", 1);
|
||||
|
||||
// PREF: disable the Accessibility panel
|
||||
//user_pref("devtools.accessibility.enabled", false);
|
||||
|
||||
// PREF: don't focus elements on click, only on tab
|
||||
// Helps to eliminate ugly 1px dotted outline
|
||||
// default=1
|
||||
//user_pref("accessibility.mouse_focuses_formcontrol", 0);
|
||||
|
||||
// PREF: add compact mode back to options
|
||||
user_pref("browser.compactmode.show", true);
|
||||
|
||||
@@ -83,19 +48,6 @@ user_pref("browser.preferences.moreFromMozilla", false);
|
||||
// [1] https://www.ghacks.net/2022/10/19/how-to-hide-firefoxs-list-all-tabs-icon/
|
||||
user_pref("browser.tabs.tabmanager.enabled", false);
|
||||
|
||||
// PREF: disable Unified Extensions button [NIGHTLY]
|
||||
//user_pref("extensions.unifiedExtensions.enabled", false);
|
||||
|
||||
// PREF: remove "addons.mozilla.org" from set of domains that extensions cannot access
|
||||
// [NOTE] May only work with privacy.resistfingerprinting enabled? + DEV/NIGHTLY-only?
|
||||
// [1] https://www.reddit.com/r/firefox/comments/n1lpaf/make_addons_work_on_mozilla_sites/gwdy235/?context=3
|
||||
//user_pref("extensions.webextensions.restrictedDomains", "accounts-static.cdn.mozilla.net,accounts.firefox.com,addons.cdn.mozilla.net,api.accounts.firefox.com,content.cdn.mozilla.net,discovery.addons.mozilla.org,install.mozilla.org,oauth.accounts.firefox.com,profile.accounts.firefox.com,support.mozilla.org,sync.services.mozilla.com");
|
||||
//user_pref("privacy.resistFingerprinting.block_mozAddonManager", true); // [HIDDEN]
|
||||
|
||||
// PREF: do not require signing for extensions [ESR/DEV/NIGHTLY ONLY]
|
||||
// [1] https://support.mozilla.org/en-US/kb/add-on-signing-in-firefox#w_what-are-my-options-if-i-want-to-use-an-unsigned-add-on-advanced-users
|
||||
//user_pref("xpinstall.signatures.required", false);
|
||||
|
||||
// PREF: disable Warnings
|
||||
//user_pref("browser.tabs.warnOnClose", false); // DEFAULT [FF94+]
|
||||
//user_pref("browser.tabs.warnOnCloseOtherTabs", false);
|
||||
@@ -122,37 +74,45 @@ user_pref("browser.aboutwelcome.enabled", false); // disable Intro screens
|
||||
user_pref("findbar.highlightAll", true);
|
||||
|
||||
// PREF: disable middle mouse click opening links from clipboard
|
||||
// [1] https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/10089 ***/
|
||||
// [1] https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/10089
|
||||
user_pref("middlemouse.contentLoadURL", false);
|
||||
|
||||
// PREF: attempt to remove ugly border drawn around links when clicked
|
||||
//user_pref("accessibility.mouse_focuses_formcontrol", 0);
|
||||
// The above should work, but you may need to add:
|
||||
//user_pref("browser.display.focus_ring_style", 0);
|
||||
//user_pref("browser.display.focus_ring_width", 0);
|
||||
|
||||
// Private Browsing changes [FF106+]
|
||||
// PREF: disable private windows being separate from normal windows in taskbar [WINDOWS]
|
||||
//user_pref("browser.privateWindowSeparation.enabled", false);
|
||||
|
||||
// PREF: disable "private window" indicator in tab bar
|
||||
// PREF: disable "private window" indicator in tab bar [FF106+]
|
||||
user_pref("browser.privatebrowsing.enable-new-indicator", false);
|
||||
|
||||
// PREF: disable always using dark theme for private browsing windows
|
||||
// PREF: disable always using dark theme for private browsing windows [FF106+]
|
||||
//user_pref("browser.theme.dark-private-windows", false);
|
||||
|
||||
// PREF: Cookie Banner handling [NIGHTLY]
|
||||
// [NOTE] Feature still enforces Total Cookie Protection to limit 3rd-party cookie tracking
|
||||
// [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
|
||||
// 0: Disables all cookie banner handling (default)
|
||||
// 1: reject banners if it is a one-click option; otherwise, keep banners on screen
|
||||
// [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
|
||||
// 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", 2);
|
||||
//user_pref("cookiebanners.service.mode.privateBrowsing", 1);
|
||||
//user_pref("cookiebanners.bannerClicking.enabled", true);
|
||||
//user_pref("cookiebanners.service.mode.privateBrowsing", 2);
|
||||
//user_pref("cookiebanners.bannerClicking.enabled", true); // DEFAULT [FF108]
|
||||
//user_pref("cookiebanners.cookieInjector.enabled", true); // DEFAULT
|
||||
|
||||
// PREF: enable global CookieBannerRules
|
||||
// This is used for click rules that can handle common Consent Management Providers (CMP).
|
||||
// [NOTE] Enabling this (when the cookie handling feature is enabled) may
|
||||
// This is used for click rules that can handle common Consent Management Providers (CMP)
|
||||
// [WARNING] Enabling this (when the cookie handling feature is enabled) may
|
||||
// negatively impact site performance since it requires us to run rule-defined
|
||||
// query selectors for every page.
|
||||
//user_pref("cookiebanners.service.enableGlobalRules", true);
|
||||
// query selectors for every page
|
||||
//user_pref("cookiebanners.service.enableGlobalRules", enable);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: FONT APPEARANCE *
|
||||
@@ -163,7 +123,8 @@ user_pref("browser.privatebrowsing.enable-new-indicator", false);
|
||||
//user_pref("gfx.webrender.quality.force-subpixel-aa-where-possible", true);
|
||||
|
||||
// PREF: use DirectWrite everywhere like Chrome [WINDOWS]
|
||||
// [1] https://old.reddit.com/r/firefox/comments/wvs04y/comment/ilklzy1/?context=3
|
||||
// [1] https://kb.mozillazine.org/Thunderbird_6.0,_etc.#Font_rendering_and_performance_issues
|
||||
// [2] https://old.reddit.com/r/firefox/comments/wvs04y/comment/ilklzy1/?context=3
|
||||
//user_pref("gfx.font_rendering.cleartype_params.rendering_mode", 5);
|
||||
//user_pref("gfx.font_rendering.cleartype_params.cleartype_level", 100);
|
||||
//user_pref("gfx.font_rendering.cleartype_params.force_gdi_classic_for_families", "");
|
||||
@@ -171,7 +132,7 @@ user_pref("browser.privatebrowsing.enable-new-indicator", false);
|
||||
//user_pref("gfx.font_rendering.directwrite.use_gdi_table_loading", false);
|
||||
// Some users find these helpful:
|
||||
//user_pref("gfx.font_rendering.cleartype_params.gamma", 1750);
|
||||
//user_pref("gfx.font_rendering.cleartype_params.enhanced_contrast", 50);
|
||||
//user_pref("gfx.font_rendering.cleartype_params.enhanced_contrast", 100);
|
||||
//user_pref("gfx.font_rendering.cleartype_params.pixel_structure", 1);
|
||||
|
||||
// PREF: use macOS Appearance Panel text smoothing setting when rendering text [macOS]
|
||||
@@ -188,6 +149,7 @@ user_pref("browser.urlbar.suggest.engines", false);
|
||||
//user_pref("browser.urlbar.suggest.openpage", true);
|
||||
//user_pref("browser.urlbar.suggest.quickactions", false); // [NIGHTLY]
|
||||
//user_pref("browser.urlbar.suggest.searches", false);
|
||||
//user_pref("browser.urlbar.suggest.weather", true); // DEFAULT [FF108]
|
||||
// Disable dropdown suggestions with empty query:
|
||||
user_pref("browser.urlbar.suggest.topsites", false);
|
||||
// enable helpful features:
|
||||
@@ -196,7 +158,7 @@ user_pref("browser.urlbar.unitConversion.enabled", true);
|
||||
|
||||
// PREF: Adaptive History Autofill
|
||||
// [1] https://docs.google.com/document/u/1/d/e/2PACX-1vRBLr_2dxus-aYhZRUkW9Q3B1K0uC-a0qQyE3kQDTU3pcNpDHb36-Pfo9fbETk89e7Jz4nkrqwRhi4j/pub
|
||||
//user_pref("browser.urlbar.autoFill", true); [DEFAULT]
|
||||
//user_pref("browser.urlbar.autoFill", true); // [DEFAULT]
|
||||
//user_pref("browser.urlbar.autoFill.adaptiveHistory.enabled", false);
|
||||
|
||||
// PREF: Quick Actions in the URL Bar
|
||||
@@ -212,6 +174,9 @@ user_pref("browser.urlbar.unitConversion.enabled", true);
|
||||
// default=10, disable=0
|
||||
//user_pref("browser.urlbar.maxRichResults", 1);
|
||||
|
||||
// PREF: show search query in URL bar instead of URL upon navigation
|
||||
//user_pref("browser.urlbar.showSearchTerms.enabled", true); // DEFAULT
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: AUTOPLAY *
|
||||
****************************************************************************/
|
||||
@@ -255,11 +220,11 @@ user_pref("browser.urlbar.unitConversion.enabled", true);
|
||||
// PREF: Home / New Tab page items
|
||||
// [SETTINGS] Home>Firefox Home Content
|
||||
// [1] https://github.com/arkenfox/user.js/issues/1556
|
||||
//user_pref("browser.newtabpage.activity-stream.discoverystream.enabled", false); /// unnecessary?
|
||||
//user_pref("browser.newtabpage.activity-stream.discoverystream.enabled", false); // unnecessary?
|
||||
//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.feeds.topsites", false); // Shortcuts
|
||||
//user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // Sponsored shortcuts [FF83+]
|
||||
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); // Recommended by Pocket
|
||||
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.feeds.section.highlights", false); // Recent Activity [DEFAULT]
|
||||
//user_pref("browser.newtabpage.activity-stream.section.highlights.includeBookmarks", false);
|
||||
@@ -285,9 +250,9 @@ user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
|
||||
|
||||
// PREF: Disable built-in Pocket extension
|
||||
user_pref("extensions.pocket.enabled", false);
|
||||
// user_pref("extensions.pocket.api"," ");
|
||||
// user_pref("extensions.pocket.oAuthConsumerKey", " ");
|
||||
// user_pref("extensions.pocket.site", " ");
|
||||
//user_pref("extensions.pocket.api"," ");
|
||||
//user_pref("extensions.pocket.oAuthConsumerKey", " ");
|
||||
//user_pref("extensions.pocket.site", " ");
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: DOWNLOADS *
|
||||
@@ -298,7 +263,7 @@ user_pref("extensions.pocket.enabled", false);
|
||||
// 0=desktop, 1=downloads (default), 2=last used
|
||||
//user_pref("browser.download.folderList", 2);
|
||||
|
||||
// PREF: Enforce user interaction for security by always asking where to download.
|
||||
// PREF: Enforce user interaction for security by always asking where to download
|
||||
// [SETTING] General>Downloads>Always ask you where to save files
|
||||
// false=the user is asked what to do
|
||||
user_pref("browser.download.useDownloadDir", false);
|
||||
@@ -310,9 +275,6 @@ user_pref("browser.download.alwaysOpenPanel", false);
|
||||
// PREF: Disable adding downloads to the system's "recent documents" list
|
||||
user_pref("browser.download.manager.addToRecentDocs", false);
|
||||
|
||||
// PREF: Autohide download button
|
||||
//user_pref("browser.download.autohideButton", true); // DEFAULT
|
||||
|
||||
// PREF: enable user interaction for security by always asking how to handle new mimetypes
|
||||
// [SETTING] General>Files and Applications>What should Firefox do with other files
|
||||
user_pref("browser.download.always_ask_before_handling_new_types", true);
|
||||
@@ -336,11 +298,11 @@ user_pref("browser.download.always_ask_before_handling_new_types", true);
|
||||
// PREF: open PDFs inline (FF103+)
|
||||
user_pref("browser.download.open_pdf_attachments_inline", true);
|
||||
|
||||
// PREF: PDF sidebar on load
|
||||
// PREF: PDF sidebar on load [HIDDEN]
|
||||
// 2=table of contents (if not available, will default to 1)
|
||||
// 1=view pages
|
||||
// -1=disabled (default)
|
||||
//user_pref("pdfjs.sidebarViewOnLoad", 1);
|
||||
//user_pref("pdfjs.sidebarViewOnLoad", 2);
|
||||
|
||||
// PREF: default zoom for PDFs [HIDDEN]
|
||||
// [NOTE] "page-width" not needed if using sidebar on load
|
||||
@@ -433,14 +395,15 @@ user_pref("dom.disable_window_move_resize", true);
|
||||
//user_pref("accessibility.blockautorefresh", true);
|
||||
//user_pref("browser.meta_refresh_when_inactive.disabled", true);
|
||||
|
||||
// PREF: Plain Text only when copying text
|
||||
user_pref("clipboard.plainTextOnly", true);
|
||||
// PREF: Controls if a double click word selection also deletes one adjacent whitespace
|
||||
// (if feasible). This mimics native behavior on macOS.
|
||||
//user_pref("editor.word_select.delete_space_after_doubleclick_selection", true);
|
||||
|
||||
// PREF: limit events that can cause a pop-up
|
||||
// Firefox provides an option to provide exceptions for sites, remembered in your Site Settings.
|
||||
// (default) "change click dblclick auxclick mouseup pointerup notificationclick reset submit touchend contextmenu"
|
||||
// (alternate) user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown");
|
||||
user_pref("dom.popup_allowed_events", "click dblclick");
|
||||
//user_pref("dom.popup_allowed_events", "click dblclick");
|
||||
//user_pref("dom.disable_open_during_load", true); // DEFAULT
|
||||
//user_pref("privacy.popups.showBrowserMessage", true); // DEFAULT
|
||||
|
||||
@@ -510,7 +473,7 @@ user_pref("dom.popup_allowed_events", "click dblclick");
|
||||
// PREF: zoom only text on webpage, not other elements
|
||||
//user_pref("browser.zoom.full", false);
|
||||
|
||||
// PREF: enable :has() CSS relational pseudo-class [NIGHTLY?]
|
||||
// PREF: enable :has() CSS relational pseudo-class
|
||||
// Needed for some extensions, filters, and customizations
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Web/CSS/:has
|
||||
// [2] https://caniuse.com/css-has
|
||||
@@ -529,3 +492,23 @@ user_pref("layout.css.has-selector.enabled", true);
|
||||
// PREF: JPEG XL image format [NIGHTLY]
|
||||
// [1] https://cloudinary.com/blog/the-case-for-jpeg-xl
|
||||
//user_pref("image.jxl.enabled", true);
|
||||
|
||||
// PREF: enable CSS moz document rules
|
||||
// Still needed for Stylus?
|
||||
// [1] https://old.reddit.com/r/FirefoxCSS/comments/8x2q97/reenabling_mozdocument_rules_in_firefox_61/
|
||||
//user_pref("layout.css.moz-document.content.enabled", true);
|
||||
|
||||
// PREF: restore zooming behavior [macOS] [FF109+]
|
||||
// On macOS, Ctrl or Cmd + trackpad or mouse wheel now scrolls the page instead of zooming.
|
||||
// This avoids accidental zooming and matches Safari's and Chrome's behavior.
|
||||
// The prefs below restores the previous zooming behavior
|
||||
//user_pref("mousewheel.with_control.action", 3);
|
||||
//user_pref("mousewheel.with_meta.action", 3);
|
||||
|
||||
// PREF: disable efficiency mode [WINDOWS]
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1796525
|
||||
// [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1800412
|
||||
// [3] https://old.reddit.com/r/firefox/comments/107fj69/how_can_i_disable_the_efficiency_mode_on_firefox/
|
||||
//user_pref("dom.ipc.processPriorityManager.backgroundUsesEcoQoS", false);
|
||||
|
||||
|
||||
|
||||
@@ -1,19 +1,14 @@
|
||||
[](https://github.com/yokoffing/Better-Fox/issues)
|
||||
[](https://github.com/yokoffing/Betterfox/issues?q=is%3Aissue+is%3Aclosed)
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
[](https://hits.seeyoufarm.com)
|
||||

|
||||

|
||||
[](https://github.com/yokoffing/Betterfox/issues?q=is%3Aissue+is%3Aclosed)
|
||||
[](https://hits.seeyoufarm.com)
|
||||
|
||||
# Betterfox
|
||||
about:config tweaks to enhance [Mozilla Firefox](https://www.mozilla.org/en-US/firefox/new/ "Firefox Homepage"). Files are updated as needed for your [user.js](http://kb.mozillazine.org/User.js_file).
|
||||
|
||||
|
||||
## Who is this setup for?
|
||||
**If you want a secure, blazing fast browsing experience, and don't want to deal with breakage, this setup is for you.** The objective is to make the defaults sufficient enough for the average privacy-minded user, but remain trouble-free enough that my grandmother could use it. <strike>(That puts a whole new twist on being a foxy grandma!)</strike> Edit: Sorry for the dad joke 😓
|
||||
## Made for everyday browsing
|
||||
**A secure, blazing fast browsing experience. Without breakage.** The objective is to make the defaults sufficient enough for the average privacy-minded user, but remain trouble-free enough that my grandmother could use it. <strike>(That puts a whole new twist on being a foxy grandma!)</strike> Edit: Sorry for the dad joke 😓
|
||||
|
||||
|
||||
## Simple goals
|
||||
@@ -26,70 +21,80 @@ about:config tweaks to enhance [Mozilla Firefox](https://www.mozilla.org/en-US/f
|
||||
|
||||
| List | Description |
|
||||
|:---------:|-------------|
|
||||
| [Securefox](https://github.com/yokoffing/Betterfox/blob/master/Securefox.js) | Remove Telemetry, Mozilla experiments, Google Safe Browsing, and search engine suggestions in URL bar. Auto-upgrade mixed content to HTTPS. Various privacy enhancements. |
|
||||
| [Peskyfox](https://github.com/yokoffing/Betterfox/blob/master/Peskyfox.js) | Unclutter the new tab page. Remove Pocket and form autofill. Prevent Firefox from serving annoying webpage notifications. |
|
||||
| [Fastfox](https://github.com/yokoffing/Betterfox/blob/master/Fastfox.js) | Immensely increase Firefox's browsing speed. Give Chrome a run for its money!|
|
||||
| [Smoothfox](https://github.com/yokoffing/Betterfox/blob/master/Smoothfox.js) | Get Microsoft Edge-like smooth scrolling on your favorite browser. |
|
||||
| [user.js](https://github.com/yokoffing/Betterfox/blob/master/user.js) | All the essentails. None of the breakage. Users may download this list as their own user.js. |
|
||||
| [Securefox](https://github.com/yokoffing/Betterfox/blob/master/Securefox.js) | Telemetry blocked. [HTTPS-only](https://blog.mozilla.org/security/2020/11/17/firefox-83-introduces-https-only-mode/) connections. [Total Cookie Protection](https://blog.mozilla.org/security/2021/02/23/total-cookie-protection/) with [site isolation](https://blog.mozilla.org/security/2021/05/18/introducing-site-isolation-in-firefox/). Enhanced [state](https://developer.mozilla.org/en-US/docs/Web/Privacy/State_Partitioning) and [network](https://blog.mozilla.org/security/2021/01/26/supercookie-protections/) partitioning. Various other enhancements. |
|
||||
| [Peskyfox](https://github.com/yokoffing/Betterfox/blob/master/Peskyfox.js) | Unclutter the new tab page. Remove [Pocket](https://support.mozilla.org/en-US/kb/what-pocket). Restore [compact mode](https://support.mozilla.org/en-US/kb/compact-mode-workaround-firefox) as an option. Stop webpage notifications, pop-ups, and other annoyances. |
|
||||
| [Smoothfox](https://github.com/yokoffing/Betterfox/blob/master/Smoothfox.js) | Get Edge-like smooth scrolling on your favorite browser — or choose something more your style. |
|
||||
| [user.js](https://github.com/yokoffing/Betterfox/blob/master/user.js) | All the essentials. None of the breakage. This is your `user.js`. |
|
||||
|
||||
:bulb: `Securefox`, `Peskyfox`, `Fastfox`, and `Smoothfox` are guides to relevant prefs in Firefox. The `user.js` is curated from the prefs located in these documents, so just because a pref is in one of the guides doesn't mean it is included in the final document, the `user.js`. Please use the descriptions and references as a guide for the prefs in Firefox, and open a [feature request](https://github.com/yokoffing/Betterfox/issues/new/choose) if you think one can be improved upon.
|
||||
:bulb: `Fastfox`, `Securefox`, `Peskyfox`, and `Smoothfox` are guides to relevant prefs in Firefox. The `user.js` is curated from the options located in these documents. Please read the guides to understand the various options hidden in Firefox.
|
||||
|
||||
## about:Privacy
|
||||
The guiding principle is: "If it breaks it, it doesn't make it!" So things like WebGL and DRM are still enabled, and you won't find a setting like `privacy.resistFingerprinting` mentioned here ([why?](https://old.reddit.com/r/firefox/comments/wuqpgi/are_there_any_aboutconfig_tweaks_to_get_smooth/ile3whx/?context=3)). Betterfox is designed to set-and-forget, not to troubleshoot and tinker. You can compare different user.js files [here](https://jm42.github.io/compare-user.js).
|
||||
Most repos have niche privacy and security concerns with little regard for speed, annoyances, or mainstream use. Betterfox was inspired by the [law of diminishing returns](https://pmctraining.com/site/wp-content/uploads/2018/04/Law-of-Diminishing-Returns-CHART.png) and the [minimum effective dose](https://medium.com/the-mission/less-is-more-the-minimum-effective-dose-e6d56625931e). For instance, features like WebGL and DRM are still enabled, and you won't find a setting like `privacy.resistFingerprinting` mentioned here<sup>^[*why?*](https://old.reddit.com/r/firefox/comments/wuqpgi/are_there_any_aboutconfig_tweaks_to_get_smooth/ile3whx/?context=3)</sup>. And while Betterfox is designed to set-and-forget, it contains plenty of options for those who like to tinker.
|
||||
|
||||
Betterfox was created with a [less is more](https://medium.com/the-mission/less-is-more-the-minimum-effective-dose-e6d56625931e) mentality (i.e., keeping in mind [the law of diminishing returns](https://pmctraining.com/site/wp-content/uploads/2018/04/Law-of-Diminishing-Returns-CHART.png)). Most repos I've encountered have niche privacy and security concerns with little regard for speed, annoyances, or mainstream use. The average user doesn't need all `prefs` altered to get the results they want.
|
||||
If your context calls for _anonymity_ and not just reasonable _privacy_, then please use [Tor Browser](https://www.torproject.org).<sup>[1](https://youtu.be/5NrbdO4yWek?t=4334)</sup> [Fingerprinting](https://smartframe.io/blog/browser-fingerprinting-everything-you-need-to-know/) is a high [threat model](https://thenewoil.org/threatmodel.html) issue that is [only addressed reasonably by Tor](https://github.com/arkenfox/user.js/wiki/3.3-Overrides-%5BTo-RFP-or-Not%5D).
|
||||
|
||||
## Assumptions
|
||||
If you use any of the features below, please view the [common overrides](https://github.com/yokoffing/Betterfox/issues/87) sticky to restore functionality.
|
||||
* **Google Safe Browsing** (GSB) is disabled. We recommend use DNS-level protection like [NextDNS](https://nextdns.io/?from=xujj63g5), so check out our configuration guide [here](https://github.com/yokoffing/NextDNS-Config). If you have no other form of protection, then please re-enable GSB.
|
||||
* The native **password manager** is also disabled. If you don't use something like [KeePass](https://addons.mozilla.org/en-US/firefox/addon/keepassxc-browser/), [Bitwarden](https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/), or [1Password](https://addons.mozilla.org/en-US/firefox/addon/1password-x-password-manager), then re-enable Firefox's password management.
|
||||
Apply preferences from the [common overrides](https://github.com/yokoffing/Betterfox/issues/87) sticky if you want to revert the following behavior:
|
||||
* Firefox **Accessibility Service** is disabled to improve resource utilization and security. Override this if you use assistive software.
|
||||
* **Embedded tweets, instagram, reddit posts, and tiktoks** load on webpages, even though these requests are usually blocked when using [Strict Enhanced Tracking Protection](https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop#w_strict-enhanced-tracking-protection).
|
||||
* The native **password manager** is disabled. We recommend using [KeePass](https://addons.mozilla.org/en-US/firefox/addon/keepassxc-browser/), [Bitwarden](https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/), or [1Password](https://addons.mozilla.org/en-US/firefox/addon/1password-x-password-manager).
|
||||
* **Firefox Sync** and **Firefox View** are disabled.
|
||||
* **Site notifications** are disabled.
|
||||
* **Location requests** are rejected.
|
||||
* **Embedded tweets, instagram, and reddit posts** load on webpages, even though these requests are usually blocked when using Firefox's [Strict Enhanced Tracking Protection](https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop#w_strict-enhanced-tracking-protection).
|
||||
* Advanced users: We suggest that you [selectively allow](https://github.com/gorhill/uBlock/wiki/Dynamic-filtering:-quick-guide) these requests in [uBlock Origin](https://addons.mozilla.org/blog/ublock-origin-everything-you-need-to-know-about-the-ad-blocker/) with [medium mode](https://github.com/gorhill/uBlock/wiki/Blocking-mode:-medium-mode) enabled + add the [Privacy Essentials](https://github.com/yokoffing/filterlists/blob/main/privacy_essentials.txt) filter to your [custom lists](https://github.com/gorhill/uBlock/wiki/Dashboard:-Filter-lists#3rd-party-filter-lists).
|
||||
* Since Firefox implemented [state](https://github.com/yokoffing/Betterfox/blob/537eb902106f5cacebfd7a77555193ba4573dc6e/SecureFox.js#L73-L88) and [network](https://github.com/yokoffing/Betterfox/blob/537eb902106f5cacebfd7a77555193ba4573dc6e/SecureFox.js#L93-L100) partitioning, it is recommended but no longer necessary to **clear browsing data** after every session.
|
||||
* If your threat level calls for _anonymity_ and not just reasonable _privacy_,<sup>[1](https://thenewoil.org/secprivanon.html)</sup> please use the [TOR browser](https://www.torproject.org).
|
||||
* **Location requests** are rejected and **site notifications** are disabled.
|
||||
|
||||
## Mentions
|
||||
### Suggestions
|
||||
1) Enable **sanitize on close** ([clear browsing data on shutdown](https://github.com/yokoffing/Betterfox/blob/99f2e860633f307781ddb73d792358ad1bec6af5/Securefox.js#L409-L434)).
|
||||
* You can **allow exceptions** if you want to stay logged in to some sites in *Settings → Privacy & Security → Cookies and Site Data → Manage Exceptions*.
|
||||
* Check *Delete cookies and site data when Firefox is closed*.
|
||||
2) Use [uBlock Origin](https://addons.mozilla.org/blog/ublock-origin-everything-you-need-to-know-about-the-ad-blocker/) or [Ghostery](https://addons.mozilla.org/en-US/firefox/addon/ghostery/) to block ads and trackers.
|
||||
3) Add DNS-level protection like [NextDNS](https://nextdns.io/?from=xujj63g5). Check out our configuration guide [here](https://github.com/yokoffing/NextDNS-Config).
|
||||
|
||||
**User comments:**
|
||||
[1](https://old.reddit.com/r/firefox/comments/xsw0zt/comment/iqo0dbv/?context=3)
|
||||
[2](https://old.reddit.com/r/technology/comments/m4qdvt/google_accused_of_tracking_users_in_incognito/gqwzzgr/?context=2)
|
||||
[3](https://old.reddit.com/r/Ubuntu/comments/pke4wz/suspicious_file_found_after_using_brave/hc568jg/?context=2)
|
||||
[4](https://old.reddit.com/r/browsers/comments/y7w57n/which_browser_do_you_use_on_your_devices/it30hqi/?context=3)
|
||||
## Recognition
|
||||
### User Comments
|
||||
- [1](https://old.reddit.com/r/firefox/comments/xsw0zt/comment/iqo0dbv/?context=3)
|
||||
[2](https://old.reddit.com/r/browsers/comments/y7w57n/which_browser_do_you_use_on_your_devices/it30hqi/?context=3)
|
||||
[3](https://www.troddit.com/r/firefox/comments/z5auzi/firefox_not_properly_usingrecognizing_gpu_poor/iy0kru3)
|
||||
[4](https://www.troddit.com/r/firefox/comments/z5auzi/firefox_not_properly_usingrecognizing_gpu_poor/iy36hyz)
|
||||
[5](https://old.reddit.com/r/firefox/comments/1030fri/why_does_firefox_feel_slowchoppy/j2wu4ow/)
|
||||
[6](https://old.reddit.com/r/pcmasterrace/comments/zwioe1/what_browser_will_you_be_using_in_2023_please/j1wmbxo/)
|
||||
[7](https://old.reddit.com/r/firefox/comments/zodxzx/performance_optimizations_for_firefox/j0memta/?context=2)
|
||||
[8](https://old.reddit.com/r/browsers/comments/106qwyk/in_contrast_to_previous_post_what_do_you_like/j3irpx0/?context=2)
|
||||
|
||||
#### Browser Integration
|
||||
* [Pulse Browser](https://github.com/pulse-browser/browser#%EF%B8%8F-credits) | [files](https://github.com/pulse-browser/browser/tree/alpha/src/browser/app/profile)
|
||||
* [Ghostery Dawn](https://github.com/ghostery/user-agent-desktop#community) | [files](https://github.com/ghostery/user-agent-desktop/tree/main/brands/ghostery/branding/pref)
|
||||
* [Betterfox adopted into Ghostery Dawn](https://web.archive.org/web/20210509171835/https://www.ghostery.com/ghostery-dawn-update-more/) (Feb 2021)<sup>[1](https://web.archive.org/web/20210921114333/https://www.ghostery.com/ghostery-dawn-product-update/)</sup>
|
||||
### YouTube
|
||||
* [I Hate Firefox. But I'm Still Switching Back to It.](https://youtu.be/w0SJFED5xK0?t=220) (Nov 2022)
|
||||
* [Español] [Optimizar y Acelerar Firefox](https://www.youtube.com/watch?v=3XtoONmq5_Q) (Nov 2022)
|
||||
* [How To Improve Firefox Performance](https://www.youtube.com/watch?v=N8IOJiOFVEk) (Dec 2021)
|
||||
|
||||
### Podcasts
|
||||
* [GhoSTORIES with Franz & Pete](https://anchor.fm/ghostories/episodes/S2E6-We-Talking-Ghostery-Dawn----Again-er0q02/a-a4o5vmh), S2|E6, 17:05-18:40 (Feb 2021)
|
||||
|
||||
#### Guides
|
||||
### Browser Integration
|
||||
* [Pulse Browser](https://github.com/pulse-browser/browser#%EF%B8%8F-credits) | [files](https://github.com/pulse-browser/browser/tree/alpha/src/browser/app/profile) (Dec 2021)
|
||||
* [Ghostery Dawn](https://github.com/ghostery/user-agent-desktop#community) | [files](https://github.com/ghostery/user-agent-desktop/tree/main/brands/ghostery/branding/pref) (Feb 2021)
|
||||
* [Betterfox adopted into Ghostery Dawn](https://web.archive.org/web/20210509171835/https://www.ghostery.com/ghostery-dawn-update-more/)<sup>[1](https://web.archive.org/web/20210921114333/https://www.ghostery.com/ghostery-dawn-product-update/)</sup>
|
||||
|
||||
### Guides
|
||||
* [FMHY Browser Tools: Privacy Hardened Firefox](https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/storage/#wiki_privacy_hardened_firefox)
|
||||
* [Firefox-UI-Fix](https://github.com/black7375/Firefox-UI-Fix/wiki/Tips#privacy)
|
||||
* [Narsil/desktop_user.js](https://git.nixnet.services/Narsil/desktop_user.js#thanks)
|
||||
* [pyllyukko/user.js](https://github.com/pyllyukko/user.js) [comparator](https://jm42.github.io/compare-user.js/)
|
||||
|
||||
#### Podcasts
|
||||
* [GhoSTORIES with Franz & Pete, S2|E6, 17:05-18:40](https://anchor.fm/ghostories/episodes/S2E6-We-Talking-Ghostery-Dawn----Again-er0q02/a-a4o5vmh)
|
||||
|
||||
#### Contributions
|
||||
### Contributions
|
||||
* [Ghostery desktop browser](https://github.com/ghostery/user-agent-desktop/issues?q=is%3Apr+is%3Aissue+author%3Ayokoffing+)
|
||||
* [Fingerprinting protection: Betterfox and arkenfox](https://github.com/ghostery/user-agent-desktop/issues/486) (somewhat outdated)
|
||||
* [Orion Browser](https://orionfeedback.org/?author=yokoffing)
|
||||
* [Kagi Search Engine](https://kagifeedback.org/?author=yokoffing)
|
||||
* [Various blocklists](https://github.com/yokoffing/filterlists#contributions)
|
||||
|
||||
## Credit
|
||||
* Many thanks to the [Firefox](https://www.mozilla.org/en-US/firefox/new/) team and to the people working on [Bugzilla](https://bugzilla.mozilla.org/home), fighting for the [open web](https://docs.openwebsandbox.org/learn/ows-articles/what-is-the-open-web).
|
||||
* This repository benefits from the research provided by [arkenfox](https://github.com/arkenfox/user.js). While Betterfox does not use their `user.js`, we attempt to maintain parity with it.
|
||||
|
||||
* This repository benefits from the ongoing research provided by [arkenfox](https://github.com/arkenfox/user.js). They are the foundation to any worthwhile `user.js`.
|
||||
|
||||
## Support
|
||||
I’m a one-person operation, working in mental health and running this page as a passion project in my time off. If you enjoy my work, please leave a tip! Your support is incredibly appreciated and allows me to dedicate time to this project :blush:
|
||||
I’m a one-person operation, running this page as a passion project in my time off. If you enjoy my work, please leave a tip! Your support is incredibly appreciated and allows me to dedicate time to this project :blush:
|
||||
|
||||
<img align="top" width="25px" src="https://coekuss.com/quietfox/bitcoin.png"> Bitcoin: 334gaiEjn6wY1VksQvYe5L668JjtPEPyiM
|
||||
|
||||
<img align="top" width="20px" src="https://coekuss.com/quietfox/paypal.png"> PayPal: [paypal.me](about:blank) (forthcoming)
|
||||
|
||||
<div align='center'><a href='https://www.websitecounterfree.com'><img src='https://www.websitecounterfree.com/c.php?d=9&id=19653&s=1' border='0' alt='Free Website Counter'></a><br / >
|
||||
<div align='center'>23 July 2022</div>
|
||||
<div align='center'>since 23 July 2022</div>
|
||||
|
||||
+211
-168
@@ -1,17 +1,9 @@
|
||||
//
|
||||
/* Do not COPY+PASTE this file. If you do, only COPY+PASTE the user_pref itself.
|
||||
*
|
||||
* If you make changes to your about:config while the program is running, the
|
||||
* changes will be overwritten when the application restarts.
|
||||
*
|
||||
* To make a change to preferences, you will have to edit the user.js file.
|
||||
*/
|
||||
|
||||
/****************************************************************************
|
||||
* Securefox *
|
||||
* "Natura non constristatur" *
|
||||
* priority: provide sensible security and privacy *
|
||||
* version: 107a *
|
||||
* version: 110 *
|
||||
* url: https://github.com/yokoffing/Betterfox *
|
||||
****************************************************************************/
|
||||
|
||||
@@ -24,10 +16,8 @@
|
||||
// Firefox deletes all stored site data (incl. cookies, browser storage) if the site is a known tracker and hasn’t
|
||||
// been interacted with in the last 30 days.
|
||||
// [NOTE] FF86: "Strict" tracking protection enables dFPI.
|
||||
// [1] https://blog.mozilla.org/firefox/control-trackers-with-firefox/
|
||||
// [2] https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop
|
||||
// [3] https://blog.mozilla.org/security/2020/01/07/firefox-72-fingerprinting/
|
||||
// [4] https://www.reddit.com/r/firefox/comments/l7xetb/network_priority_for_firefoxs_enhanced_tracking/gle2mqn/?web2x&context=3
|
||||
// [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("privacy.trackingprotection.enabled", true); // DEFAULT
|
||||
//user_pref("privacy.trackingprotection.pbmode.enabled", true); // DEFAULT
|
||||
//user_pref("browser.contentblocking.customBlockList.preferences.ui.enabled", false); // DEFAULT
|
||||
@@ -36,7 +26,7 @@ user_pref("browser.contentblocking.category", "strict");
|
||||
//user_pref("privacy.socialtracking.block_cookies.enabled", true); // DEFAULT
|
||||
//user_pref("privacy.trackingprotection.cryptomining.enabled", true); // DEFAULT
|
||||
//user_pref("privacy.trackingprotection.fingerprinting.enabled", true); // DEFAULT
|
||||
user_pref("privacy.trackingprotection.emailtracking.enabled", true); // IN BETA
|
||||
user_pref("privacy.trackingprotection.emailtracking.enabled", true);
|
||||
//user_pref("network.http.referer.disallowCrossSiteRelaxingDefault", true); // DEFAULT
|
||||
//user_pref("network.http.referer.disallowCrossSiteRelaxingDefault.pbmode", true); // DEFAULT
|
||||
//user_pref("network.http.referer.disallowCrossSiteRelaxingDefault.pbmode.top_navigation", true); // DEFAULT
|
||||
@@ -44,11 +34,13 @@ user_pref("privacy.trackingprotection.emailtracking.enabled", true); // IN BETA
|
||||
|
||||
// PREF: query stripping
|
||||
// Currently uses a small list [1]
|
||||
// Can set the same query stripping list that Brave uses [2]
|
||||
// We set the same query stripping list that Brave and LibreWolf uses [2]
|
||||
// If using uBlock Origin or AdGuard, use filter lists as well [3]
|
||||
// [1] https://www.eyerys.com/articles/news/how-mozilla-firefox-improves-privacy-using-query-parameter-stripping-feature
|
||||
// [2] https://github.com/brave/brave-core/blob/f337a47cf84211807035581a9f609853752a32fb/browser/net/brave_site_hacks_network_delegate_helper.cc
|
||||
// [3] https://github.com/yokoffing/filterlists#url-tracking-parameters
|
||||
//user_pref("privacy.query_stripping.enabled", true); // enabled with "Strict"
|
||||
//user_pref("privacy.query_stripping.strip_list", "__hsfp __hssc __hstc __s _hsenc _openstat dclid fbclid gbraid gclid hsCtaTracking igshid mc_eid ml_subscriber ml_subscriber_hash msclkid oft_c oft_ck oft_d oft_id oft_ids oft_k oft_lk oft_sk oly_anon_id oly_enc_id rb_clickid s_cid twclid vero_conv vero_id wbraid wickedid yclid");
|
||||
user_pref("privacy.query_stripping.strip_list", "__hsfp __hssc __hstc __s _hsenc _openstat dclid fbclid gbraid gclid hsCtaTracking igshid mc_eid ml_subscriber ml_subscriber_hash msclkid oft_c oft_ck oft_d oft_id oft_ids oft_k oft_lk oft_sk oly_anon_id oly_enc_id rb_clickid s_cid twclid vero_conv vero_id wbraid wickedid yclid");
|
||||
|
||||
// PREF: allow embedded tweets, Instagram and Reddit posts, and TikTok embeds
|
||||
// [TEST - reddit embed] https://www.pcgamer.com/amazing-halo-infinite-bugs-are-already-rolling-in/
|
||||
@@ -65,14 +57,21 @@ user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.
|
||||
// [1] https://github.com/arkenfox/user.js/issues/102#issuecomment-298413904
|
||||
//user_pref("privacy.trackingprotection.lower_network_priority", true);
|
||||
|
||||
// PREF: Site Isolation (Sandboxing)
|
||||
// Creates operating system process-level boundaries for all sites loaded in Firefox for Desktop. Isolating each site
|
||||
// into a separate operating system process makes it harder for malicious sites to read another site’s private data.
|
||||
// PREF: Site Isolation (sandboxing) [FF100+]
|
||||
// Site Isolation builds upon a new security architecture that extends current
|
||||
// protection mechanisms by separating (web) content and loading each site
|
||||
// in its own operating system process. This new security architecture allows
|
||||
// Firefox to completely separate code originating from different sites and, in turn,
|
||||
// defend against malicious sites trying to access sensitive information from other sites you are visiting.
|
||||
// [1] https://hacks.mozilla.org/2021/05/introducing-firefox-new-site-isolation-security-architecture/
|
||||
// [2] https://hacks.mozilla.org/2022/05/improved-process-isolation-in-firefox-100/
|
||||
// [3] https://hacks.mozilla.org/2021/12/webassembly-and-back-again-fine-grained-sandboxing-in-firefox-95/
|
||||
//user_pref("fission.autostart", true); // DEFAULT
|
||||
|
||||
// PREF: GPU sandbox [FF110+]
|
||||
// [1] https://www.ghacks.net/2023/01/17/firefox-110-will-launch-with-gpu-sandboxing-on-windows/
|
||||
//user_pref("security.sandbox.gpu.level", 1); // DEFAULT [WINDOWS]
|
||||
|
||||
// PREF: State Paritioning [aka Dynamic First-Party Isolation (dFPI)]
|
||||
// Firefox manages client-side state (i.e., data stored in the browser) to mitigate the ability of websites to abuse state
|
||||
// for cross-site tracking. This effort aims to achieve that by providing what is effectively a "different", isolated storage
|
||||
@@ -106,8 +105,8 @@ user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.
|
||||
//user_pref("privacy.partition.network_state.ocsp_cache", true); // enabled with "Strict"
|
||||
//user_pref("privacy.partition.bloburl_per_agent_cluster", true); [REGRESSIONS]
|
||||
// enable APS (Always Partitioning Storage) [FF104+]
|
||||
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+]
|
||||
//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
|
||||
@@ -132,46 +131,36 @@ user_pref("privacy.partition.always_partition_third_party_non_cookie_storage.exe
|
||||
//user_pref("network.cookie.sameSite.noneRequiresSecure", true);
|
||||
//user_pref("network.cookie.sameSite.schemeful", true); // DEFAULT 104+
|
||||
|
||||
// PREF: enable Global Privacy Control (GPC) [NIGHTLY]
|
||||
// GPC is default in Brave.
|
||||
// Electronic Frontier Foundation’s (ETF) browser extensions enforce GPC.
|
||||
// Honored by many highly ranked sites [2]
|
||||
// [1] https://globalprivacycontrol.org/
|
||||
// [2] https://github.com/arkenfox/user.js/issues/1542#issuecomment-1279823954
|
||||
// [3] https://blog.mozilla.org/netpolicy/2021/10/28/implementing-global-privacy-control/
|
||||
//user_pref("privacy.globalprivacycontrol.enabled", true);
|
||||
//user_pref("privacy.globalprivacycontrol.functionality.enabled", true);
|
||||
|
||||
// PREF: Hyperlink Auditing (click tracking).
|
||||
//user_pref("browser.send_pings", false); // DEFAULT
|
||||
|
||||
// PREF: Beacon API
|
||||
// Disabling this API sometimes causes breakage:
|
||||
// PREF: disable Beacon API
|
||||
// Disabling this API sometimes causes breakage
|
||||
// [TEST] https://vercel.com/
|
||||
// Instead of disable, block in uBlock Origin with rule `$ping`
|
||||
// [1] https://github.com/arkenfox/user.js/issues/1586#issuecomment-1320372943
|
||||
// [2] https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon
|
||||
user_pref("beacon.enabled", false);
|
||||
// [1] https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon
|
||||
// [2] https://github.com/arkenfox/user.js/issues/1586
|
||||
//user_pref("beacon.enabled", false);
|
||||
|
||||
// PREF: battery status tracking
|
||||
// [NOTE] Pref remains, but API is depreciated
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API#browser_compatibility
|
||||
//user_pref("dom.battery.enabled", false);
|
||||
|
||||
// PREF: Local Storage Next Generation (LSNG) (DOMStorage)
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1286798
|
||||
//user_pref("dom.storage.next_gen", true); // DEFAULT FF92+
|
||||
|
||||
// PREF: WebRTC Global Mute Toggles
|
||||
//user_pref("privacy.webrtc.globalMuteToggles", true);
|
||||
|
||||
// PREF: disable UITour backend so there is no chance that a remote page can use it
|
||||
user_pref("browser.uitour.enabled", false);
|
||||
//user_pref("browser.uitour.url", "");
|
||||
|
||||
// PREF: reset remote debugging to disabled
|
||||
// https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/16222
|
||||
//user_pref("devtools.debugger.remote-enabled", false); // [DEFAULT: false]
|
||||
//user_pref("devtools.debugger.remote-enabled", false); // DEFAULT
|
||||
|
||||
// PREF: enable Global Privacy Control (GPC) [NIGHTLY]
|
||||
// Honored by many highly ranked sites [2]
|
||||
// [1] https://globalprivacycontrol.org/
|
||||
// [2] https://github.com/arkenfox/user.js/issues/1542#issuecomment-1279823954
|
||||
// [3] https://blog.mozilla.org/netpolicy/2021/10/28/implementing-global-privacy-control/
|
||||
//user_pref("privacy.globalprivacycontrol.enabled", true);
|
||||
//user_pref("privacy.globalprivacycontrol.functionality.enabled", true);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: OSCP & CERTS / HPKP (HTTP Public Key Pinning) *
|
||||
@@ -225,9 +214,10 @@ user_pref("security.remote_settings.crlite_filters.enabled", true);
|
||||
user_pref("security.pki.crlite_mode", 2);
|
||||
|
||||
// PREF: enable strict pinning
|
||||
// PKP (Public Key Pinning) 0=disabled, 1=allow user MiTM (such as your antivirus), 2=strict
|
||||
// MOZILLA_PKIX_ERROR_KEY_PINNING_FAILURE
|
||||
// If you rely on an AV (antivirus) to protect your web browsing
|
||||
// by inspecting ALL your web traffic, then leave at current default=1
|
||||
// PKP (Public Key Pinning) 0=disabled, 1=allow user MiTM (such as your antivirus), 2=strict
|
||||
// [1] https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/16206
|
||||
user_pref("security.cert_pinning.enforcement_level", 2);
|
||||
|
||||
@@ -294,10 +284,10 @@ user_pref("security.tls.enable_0rtt_data", false); // disable 0 RTT to improve t
|
||||
// In Private Browsing windows: uses the most restrictive between normal and private
|
||||
// 1=only base system fonts, 2=also fonts from optional language packs, 3=also user-installed fonts
|
||||
// [1] https://searchfox.org/mozilla-central/search?path=StandardFonts*.inc
|
||||
//user_pref("layout.css.font-visibility.standard", 1); // Normal Browsing windows with tracking protection disabled(?)
|
||||
user_pref("layout.css.font-visibility.trackingprotection", 1); // Normal Browsing windows with tracking protection enabled
|
||||
user_pref("layout.css.font-visibility.private", 1); // Private Browsing windows
|
||||
//user_pref("layout.css.font-visibility.resistFingerprinting", 1); // DEFAULT
|
||||
//user_pref("layout.css.font-visibility.trackingprotection", 1); // Normal Browsing windows with tracking protection enabled
|
||||
//user_pref("layout.css.font-visibility.private", 1); // Private Browsing windows
|
||||
//user_pref("layout.css.font-visibility.standard", 1); // Normal Browsing windows with tracking protection disabled(?)
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: RESIST FINGERPRINTING (RFP) *
|
||||
@@ -318,7 +308,7 @@ user_pref("layout.css.font-visibility.private", 1); // Private Browsing windows
|
||||
// PREF: disable showing about:blank as soon as possible during startup [FF60+]
|
||||
// When default true this no longer masks the RFP chrome resizing activity
|
||||
// [1] https://bugzilla.mozilla.org/1448423
|
||||
user_pref("browser.startup.blankWindow", false);
|
||||
//user_pref("browser.startup.blankWindow", false);
|
||||
|
||||
// PREF: disable ICC color management
|
||||
// Use a color calibrator for best results [WINDOWS]
|
||||
@@ -326,7 +316,7 @@ user_pref("browser.startup.blankWindow", false);
|
||||
// [SETTING] General>Language and Appearance>Fonts and Colors>Colors>Use system colors
|
||||
// default=false NON-WINDOWS
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/3.5/ICC_color_correction_in_Firefox
|
||||
user_pref("browser.display.use_system_colors", false);
|
||||
//user_pref("browser.display.use_system_colors", false);
|
||||
|
||||
// PREF: enforce non-native widget theme
|
||||
// Security: removes/reduces system API calls, e.g. win32k API [1]
|
||||
@@ -340,9 +330,6 @@ user_pref("browser.display.use_system_colors", false);
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: disable disk cache
|
||||
// [NOTE] If you're thinking it would be more efficient to keep the browser cache instead of
|
||||
// having to re-download objects for the websites you visit frequently, you're right;
|
||||
// however doing so can compromise your privacy.
|
||||
// [NOTE] If you think disk cache helps performance, then feel free to override this.
|
||||
user_pref("browser.cache.disk.enable", false);
|
||||
|
||||
@@ -363,10 +350,11 @@ user_pref("browser.sessionstore.privacy_level", 2);
|
||||
|
||||
// PREF: remove temp files opened with an external application
|
||||
// [1] https://bugzilla.mozilla.org/302433
|
||||
user_pref("browser.helperApps.deleteTempFileOnExit", true);
|
||||
//user_pref("browser.helperApps.deleteTempFileOnExit", true); // DEFAULT [FF108]
|
||||
|
||||
// PREF: disable page thumbnails capturing
|
||||
user_pref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN PREF]
|
||||
// Page thumbnails are only used in chrome/privileged contexts
|
||||
//user_pref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN PREF]
|
||||
|
||||
// PREF: disable automatic Firefox start and session restore after reboot [WINDOWS]
|
||||
// [1] https://bugzilla.mozilla.org/603903
|
||||
@@ -432,13 +420,13 @@ user_pref("privacy.history.custom", true);
|
||||
//user_pref("privacy.clearOnShutdown.history", true); // [DEFAULT]
|
||||
//user_pref("privacy.clearOnShutdown.formdata", true); // [DEFAULT]
|
||||
//user_pref("privacy.clearOnShutdown.sessions", true); // [DEFAULT]
|
||||
//user_pref("privacy.clearOnShutdown.offlineApps", false); // [DEFAULT]
|
||||
//user_pref("privacy.clearOnShutdown.offlineApps", true);
|
||||
//user_pref("privacy.clearOnShutdown.siteSettings", false); // [DEFAULT]
|
||||
|
||||
// PREF: configure site exceptions
|
||||
// [NOTE] Currently, there is no way to add sites via about:config
|
||||
// [SETTING] to manage site exceptions: Options>Privacy & Security>Cookies & Site Data>Manage Exceptions
|
||||
// [SETTING] to add site exceptions: Ctrl+I>Permissions>Cookies>Allow (when on the website in question)
|
||||
// or when on the website in question: Ctrl+I>Permissions>Cookies>Allow
|
||||
// For cross-domain logins, add exceptions for both sites:
|
||||
// e.g. https://www.youtube.com (site) + https://accounts.google.com (single sign on)
|
||||
// [WARNING] Be selective with what cookies you keep, as they also disable partitioning [1]
|
||||
@@ -447,15 +435,6 @@ user_pref("privacy.history.custom", true);
|
||||
/******************************************************************************
|
||||
* SECTION: SPECULATIVE CONNECTIONS *
|
||||
******************************************************************************/
|
||||
// [NOTE] FF85+ partitions (isolates) pooled connections, prefetch connections,
|
||||
// pre-connect connections, speculative connections, TLS session identifiers,
|
||||
// and other connections. We can take advantage of the speed of pre-connections
|
||||
// while preserving privacy. Users may relax hardening to maximize their preference.
|
||||
// For more information, see SecureFox: "PREF: State Paritioning" and "PREF: Network Partitioning" [1]
|
||||
// [1] https://github.com/yokoffing/Betterfox/blob/e9621b0062914da5fdb5f83b8da64041965b7a50/Securefox.js#L74-L108
|
||||
// [NOTE] To activate and increase network predictions, go to settings in uBlock Origin, and make this setting is DISABLED:
|
||||
// - "Disable pre-fetching (to prevent any connection for blocked network requests)"
|
||||
// [NOTE] Add prefs to "MY OVERRIDES" section to enable.
|
||||
|
||||
// PREF: new tab preload
|
||||
// [WARNING] Disabling this may cause a delay when opening a new tab in Firefox
|
||||
@@ -463,18 +442,32 @@ user_pref("privacy.history.custom", true);
|
||||
// [2] https://github.com/arkenfox/user.js/issues/1556
|
||||
//user_pref("browser.newtab.preload", true); // DEFAULT
|
||||
|
||||
// PREF: Speculative connections on New Tab page
|
||||
// PREF: Speculative Connections
|
||||
// Firefox will open predictive connections to sites when the user hovers their mouse over thumbnails
|
||||
// on the New Tab Page or the user starts to search in the Search Bar, or in the search field on the
|
||||
// New Tab Page. In case the user follows through with the action, the page can begin loading faster
|
||||
// New Tab Page [1]. This pref may control speculative connects for normal links, too [2].
|
||||
// The maximum number of current global half open sockets allowable when starting a new speculative connection [3].
|
||||
// In case the user follows through with the action, the page can begin loading faster
|
||||
// since some of the work was already started in advance.
|
||||
// [NOTE] TCP and SSL handshakes are set up in advance but page contents are not downloaded until a click on the link is registered
|
||||
// [1] https://support.mozilla.org/en-US/kb/how-stop-firefox-making-automatic-connections?redirectslug=how-stop-firefox-automatically-making-connections&redirectlocale=en-US#:~:text=Speculative%20pre%2Dconnections
|
||||
// [2] https://news.slashdot.org/story/15/08/14/2321202/how-to-quash-firefoxs-silent-requests
|
||||
// [3] https://www.keycdn.com/blog/resource-hints#prefetch
|
||||
// [4] https://3perf.com/blog/link-rels/#prefetch
|
||||
// [3] https://searchfox.org/mozilla-central/rev/028c68d5f32df54bca4cf96376f79e48dfafdf08/modules/libpref/init/all.js#1280-1282
|
||||
// [4] https://www.keycdn.com/blog/resource-hints#prefetch
|
||||
// [5] https://3perf.com/blog/link-rels/#prefetch
|
||||
user_pref("network.http.speculative-parallel-limit", 0);
|
||||
|
||||
// PREF: Preconnect to the autocomplete URL in the address bar
|
||||
// Firefox preloads URLs that autocomplete when a user types into the address bar.
|
||||
// Connects to destination server ahead of time, to avoid TCP handshake latency.
|
||||
// [NOTE] Firefox will perform DNS lookup (if enabled) and TCP and TLS handshake,
|
||||
// but will not start sending or receiving HTTP data.
|
||||
// [1] https://www.ghacks.net/2017/07/24/disable-preloading-firefox-autocomplete-urls/
|
||||
user_pref("browser.urlbar.speculativeConnect.enabled", false);
|
||||
|
||||
// PREF: disable mousedown speculative connections on bookmarks and history
|
||||
user_pref("browser.places.speculativeConnect.enabled", false);
|
||||
|
||||
// PREF: DNS pre-resolve <link rel="dns-prefetch">
|
||||
// Resolve hostnames ahead of time, to avoid DNS latency.
|
||||
// In order to reduce latency, Firefox will proactively perform domain name resolution on links that
|
||||
@@ -485,9 +478,6 @@ user_pref("network.http.speculative-parallel-limit", 0);
|
||||
// [4] http://www.mecs-press.org/ijieeb/ijieeb-v7-n5/IJIEEB-V7-N5-2.pdf
|
||||
user_pref("network.dns.disablePrefetch", true);
|
||||
//user_pref("network.dns.disablePrefetchFromHTTPS", true); // DEFAULT
|
||||
//user_pref("network.dnsCacheEntries", 20000);
|
||||
//user_pref("network.dnsCacheExpiration", 3600);
|
||||
//user_pref("network.dnsCacheExpirationGracePeriod", 240);
|
||||
|
||||
// PREF: Preload <link rel=preload>
|
||||
// This tells the browser that the resource should be loaded as part of the current navigation
|
||||
@@ -508,17 +498,6 @@ user_pref("network.dns.disablePrefetch", true);
|
||||
// [9] https://web.dev/preload-critical-assets/
|
||||
//user_pref("network.preload", true); // DEFAULT
|
||||
|
||||
// PREF: Preconnect to the autocomplete URL in the address bar
|
||||
// Firefox preloads URLs that autocomplete when a user types into the address bar.
|
||||
// Connects to destination server ahead of time, to avoid TCP handshake latency.
|
||||
// [NOTE] Firefox will perform DNS lookup (if enabled) and TCP and TLS handshake,
|
||||
// but will not start sending or receiving HTTP data.
|
||||
// [1] https://www.ghacks.net/2017/07/24/disable-preloading-firefox-autocomplete-urls/
|
||||
user_pref("browser.urlbar.speculativeConnect.enabled", false);
|
||||
|
||||
// PREF: disable mousedown speculative connections on bookmarks and history
|
||||
user_pref("browser.places.speculativeConnect.enabled", false);
|
||||
|
||||
// PREF: Link prefetching <link rel="prefetch">
|
||||
// Firefox will prefetch certain links if any of the websites you are viewing uses the special prefetch-link tag.
|
||||
// A directive that tells a browser to fetch a resource that will likely be needed for the next navigation.
|
||||
@@ -538,11 +517,11 @@ user_pref("network.prefetch-next", false);
|
||||
// needed when the user visits a webpage (such as image.jpg and script.js), so that the next time the
|
||||
// user prepares to go to that webpage (upon navigation? URL bar? mouseover?), this history can be used
|
||||
// to predict what resources will be needed rather than wait for the document to link those resources.
|
||||
/// NP only performs pre-connect, not prefetch, by default, including DNS pre-resolve and TCP preconnect
|
||||
// NP only performs pre-connect, not prefetch, by default, including DNS pre-resolve and TCP preconnect
|
||||
// (which includes SSL handshake). No data is actually sent to the site until a user actively clicks
|
||||
// a link. However, NP is still opening TCP connections and doing SSL handshakes, so there is still
|
||||
// information leakage about your browsing patterns. This isn't desirable from a privacy perspective.
|
||||
// [NOTE] Disabling DNS prefetching disables the DNS prefetching behavior of NP
|
||||
// [NOTE] Disabling DNS prefetching disables the DNS prefetching behavior of NP.
|
||||
// [1] https://wiki.mozilla.org/Privacy/Reviews/Necko
|
||||
// [2] https://www.ghacks.net/2014/05/11/seer-disable-firefox/
|
||||
// [3] https://github.com/dillbyrne/random-agent-spoofer/issues/238#issuecomment-110214518
|
||||
@@ -563,11 +542,6 @@ user_pref("network.predictor.enable-prefetch", false);
|
||||
// faster since some of the work was already started in advance. Focuses on fetching a resource
|
||||
// for the NEXT navigation.
|
||||
//user_pref("network.predictor.enable-hover-on-ssl", false); // DEFAULT
|
||||
//user_pref("network.predictor.preresolve-min-confidence", 10); // default=60; alt=20
|
||||
//user_pref("network.predictor.preconnect-min-confidence", 20); // default=90; alt=40
|
||||
//user_pref("network.predictor.prefetch-min-confidence", 20); // default 100; alt=60
|
||||
//user_pref("network.predictor.prefetch-force-valid-for", 3600); // default=10
|
||||
//user_pref("network.predictor.prefetch-rolling-load-count", 120); // default=10
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: SEARCH / URL BAR *
|
||||
@@ -577,6 +551,10 @@ user_pref("network.predictor.enable-prefetch", false);
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Preference_reference/browser.urlbar.trimURLs#values
|
||||
//user_pref("browser.urlbar.trimURLs", false);
|
||||
|
||||
// PREF: disable search terms [FF110+]
|
||||
// [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);
|
||||
|
||||
// PREF: enable seperate search engine for Private Windows
|
||||
// [SETTINGS] Preferences>Search>Default Search Engine>"Use this search engine in Private Windows"
|
||||
user_pref("browser.search.separatePrivateDefault.ui.enabled", true);
|
||||
@@ -607,7 +585,8 @@ user_pref("browser.search.suggest.enabled", false);
|
||||
//user_pref("browser.urlbar.quicksuggest.enabled", false); // controls whether the UI is shown
|
||||
user_pref("browser.urlbar.suggest.quicksuggest.sponsored", false);
|
||||
user_pref("browser.urlbar.suggest.quicksuggest.nonsponsored", false);
|
||||
//user_pref("browser.urlbar.groupLabels.enabled", false);
|
||||
// hide Firefox Suggest label in URL dropdown box
|
||||
//user_pref("browser.urlbar.groupLabels.enabled", false);
|
||||
|
||||
// PREF: URL bar domain guessing
|
||||
// Domain guessing intercepts DNS "hostname not found errors" and resends a
|
||||
@@ -619,9 +598,9 @@ user_pref("browser.urlbar.suggest.quicksuggest.nonsponsored", false);
|
||||
//user_pref("browser.fixup.alternate.enabled", false); // [DEFAULT FF104+]
|
||||
|
||||
// PREF: display "Not Secure" text on HTTP sites
|
||||
// No longer needed with HTTPS-Only
|
||||
//user_pref("security.insecure_connection_text.enabled", true);
|
||||
//user_pref("security.insecure_connection_text.pbmode.enabled", true);
|
||||
// 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);
|
||||
|
||||
// PREF: Disable location bar autofill
|
||||
// https://support.mozilla.org/en-US/kb/address-bar-autocomplete-firefox#w_url-autocomplete
|
||||
@@ -648,11 +627,14 @@ user_pref("network.IDN_show_punycode", true);
|
||||
// [NOTE] HTTPS-Only Mode needs to be disabled for HTTPS First to work.
|
||||
// [TEST] http://example.com [upgrade]
|
||||
// [TEST] http://httpforever.com/ [no upgrade]
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1706552
|
||||
// [2] https://web.dev/why-https-matters/
|
||||
// [3] https://www.cloudflare.com/learning/ssl/why-use-https/
|
||||
//user_pref("dom.security.https_first", true);
|
||||
//user_pref("dom.security.https_first_pbm", true); // default
|
||||
// [1] https://blog.mozilla.org/security/2021/08/10/firefox-91-introduces-https-by-default-in-private-browsing/
|
||||
// [2] https://brave.com/privacy-updates/22-https-by-default/
|
||||
// [3] https://github.com/brave/adblock-lists/blob/master/brave-lists/https-upgrade-exceptions-list.txt
|
||||
// [4] https://web.dev/why-https-matters/
|
||||
// [5] https://www.cloudflare.com/learning/ssl/why-use-https/
|
||||
|
||||
user_pref("dom.security.https_first", true);
|
||||
//user_pref("dom.security.https_first_pbm", true); // DEFAULT
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: HTTPS-ONLY MODE *
|
||||
@@ -671,11 +653,12 @@ user_pref("network.IDN_show_punycode", true);
|
||||
// [4] https://www.cloudflare.com/learning/ssl/why-use-https/
|
||||
|
||||
// PREF: enable HTTPS-only Mode
|
||||
user_pref("dom.security.https_only_mode", true);
|
||||
//user_pref("dom.security.https_only_mode_pbm", true); // Private Browsing only
|
||||
//user_pref("dom.security.https_only_mode", true); // Normal + Private Browsing
|
||||
|
||||
// PREF: Offer suggestion for HTTPS site when available
|
||||
// PREF: offer suggestion for HTTPS site when available
|
||||
// [1] https://nitter.winscloud.net/leli_gibts_scho/status/1371458534186057731
|
||||
user_pref("dom.security.https_only_mode_error_page_user_suggestions", true);
|
||||
//user_pref("dom.security.https_only_mode_error_page_user_suggestions", true);
|
||||
|
||||
// PREF: HTTP background requests in HTTPS-only Mode
|
||||
// When attempting to upgrade, if the server doesn't respond within 3 seconds[=default time],
|
||||
@@ -683,14 +666,14 @@ user_pref("dom.security.https_only_mode_error_page_user_suggestions", true);
|
||||
// This is done to avoid waiting for a timeout which takes 90 seconds.
|
||||
// Firefox only sends top level domain when falling back to http.
|
||||
// [WARNING] Disabling causes long timeouts when no path to HTTPS is present.
|
||||
// [NOTE] Use "Manage Exceptions" for sites known for no HTTPS.
|
||||
// [NOTE] Use "Manage Exceptions" for sites known for no HTTPS.
|
||||
// [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=1642387,1660945
|
||||
// [2] https://blog.mozilla.org/attack-and-defense/2021/03/10/insights-into-https-only-mode/
|
||||
//user_pref("dom.security.https_only_mode_send_http_background_request", true); // DEFAULT
|
||||
//user_pref("dom.security.https_only_fire_http_request_background_timer_ms", 1250); // default=3000
|
||||
//user_pref("dom.security.https_only_fire_http_request_background_timer_ms", 3000); // DEFAULT
|
||||
|
||||
// PREF: Enable HTTPS-Only mode for local resources
|
||||
//user_pref("dom.security.https_only_mode.upgrade_local", true);
|
||||
// PREF: disable HTTPS-Only mode for local resources
|
||||
//user_pref("dom.security.https_only_mode.upgrade_local", false); // DEFAULT
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: DNS-over-HTTPS *
|
||||
@@ -701,21 +684,36 @@ user_pref("dom.security.https_only_mode_error_page_user_suggestions", true);
|
||||
// [NOTE] You can set this to 0 if you are already using secure DNS for your entire network (e.g. OS-level, router-level).
|
||||
// [1] https://hacks.mozilla.org/2018/05/a-cartoon-intro-to-dns-over-https/
|
||||
// [2] https://www.internetsociety.org/blog/2018/12/dns-privacy-support-in-mozilla-firefox/
|
||||
// 0=off, 2=TRR preferred, 3=TRR only, 5=TRR disabled
|
||||
//user_pref("network.trr.mode", 2); // enable TRR (with System fallback)
|
||||
// 0=off, 2=TRR preferred (with System fallback), 3=TRR only (without System fallback), 5=TRR disabled
|
||||
//user_pref("network.trr.mode", 3); // enable TRR (without System fallback)
|
||||
|
||||
// PREF: DoH resolver
|
||||
// You will type between the "" for both prefs.
|
||||
// I recommend creating your own URI with NextDNS for both privacy and security.
|
||||
// https://nextdns.io
|
||||
// [1] https://github.com/uBlockOrigin/uBlock-issues/issues/1710
|
||||
//user_pref("network.trr.uri", "https://xxxx/dns-query");
|
||||
//user_pref("network.trr.custom_uri", "https://xxxx/dns-query");
|
||||
user_pref("network.dns.skipTRR-when-parental-control-enabled", false);
|
||||
//user_pref("network.trr.confirmationNS", "skip"); // skip undesired DOH test connection
|
||||
|
||||
// PREF: enable Oblivious DoH
|
||||
// PREF: EDNS Client Subnet DNS extension (ECS support and DNSSEC validation)
|
||||
// When set to false, TRR asks the resolver to enable EDNS Client Subnet (ECS).
|
||||
// [NOTE] Change back to true if you find that some websites don't resolve.
|
||||
// This is usually due to misconfiguration on the part of the domain owner.
|
||||
//user_pref("network.trr.disable-ECS", false);
|
||||
|
||||
// PREF: DNS Rebind Protection
|
||||
// Set to true to allow RFC 1918 private addresses in TRR responses
|
||||
//user_pref("network.trr.allow-rfc1918", false); // DEFAULT
|
||||
|
||||
// PREF: Assorted Options
|
||||
//user_pref("network.trr.confirmationNS", "skip"); // skip undesired DOH test connection
|
||||
//user_pref("network.dns.skipTRR-when-parental-control-enabled", false); // bypass parental controls when using DoH
|
||||
//user_pref("network.trr.skip-AAAA-when-not-supported", true); DEFAULT; If Firefox detects that your system does not have IPv6 connectivity, it will not request IPv6 addresses from the DoH server
|
||||
//user_pref("network.trr.clear-cache-on-pref-change", true); // DEFAULT; DNS+TRR cache will be cleared when a relevant TRR pref changes
|
||||
//user_pref("network.trr.wait-for-portal", false); // DEFAULT; set this to true to tell Firefox to wait for the captive portal detection before TRR is used
|
||||
|
||||
// PREF: DOH exlcusions
|
||||
//user_pref("network.trr.excluded-domains", ""); // DEFAULT; comma-separated list of domain names to be resolved using the native resolver instead of TRR. This pref can be used to make /etc/hosts works with DNS over HTTPS in Firefox.
|
||||
//user_pref("network.trr.builtin-excluded-domains", "localhost,local"); // DEFAULT; comma-separated list of domain names to be resolved using the native resolver instead of TRR
|
||||
|
||||
// PREF: enable Oblivious DoH setup (Cloudfare)
|
||||
// [1] https://blog.cloudflare.com/oblivious-dns/
|
||||
// [2] https://www.reddit.com/r/firefox/comments/xc9y4g/how_to_enable_oblivious_doh_odoh_for_enhanced_dns/
|
||||
//user_pref("network.trr.mode", 3);
|
||||
@@ -725,25 +723,18 @@ user_pref("network.dns.skipTRR-when-parental-control-enabled", false);
|
||||
//user_pref("network.trr.odoh.target_path", "dns-query");
|
||||
//user_pref("network.trr.odoh.proxy_uri", "https://odoh1.surfdomeinen.nl/proxy");
|
||||
|
||||
// PREF: DoH resolver list
|
||||
// [EXAMPLE] "[{ \"name\": \"Cloudflare\", \"url\": \"https://mozilla.cloudflare-dns.com/dns-query\" },{ \"name\": \"NextDNS\", \"url\": \"https://trr.dns.nextdns.io/\" }]"
|
||||
//user_pref("network.trr.resolvers", "[{ \"name\": \"<NAME1>\", \"url\": \"https://<URL1>\" }, { \"name\": \"<NAME2>\", \"url\": \"https://<URL2>\" }]");
|
||||
//user_pref("network.trr.resolvers", "[{ \"name\": \"<NextDNS Custom>\", \"url\": \"https://dns.nextdns.io/7ad2e5/FF_WINDOWS\" }]");
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: ESNI / ECH *
|
||||
******************************************************************************/
|
||||
|
||||
// PREF: enable Encrypted Client Hello (ECH)
|
||||
// [NOTE] HTTP already isolated with network partitioning
|
||||
// [1] https://blog.cloudflare.com/encrypted-client-hello/
|
||||
// [2] https://www.youtube.com/watch?v=tfyrVYqXQRE
|
||||
// [3] https://groups.google.com/a/chromium.org/g/blink-dev/c/KrPqrd-pO2M/m/Yoe0AG7JAgAJ
|
||||
//user_pref("network.dns.echconfig.enabled", true);
|
||||
//user_pref("network.dns.use_https_rr_as_altsvc", true); // DEFAULT
|
||||
|
||||
// PREF: disable HTTP Alternative Services [FF37+]
|
||||
// [WHY] Already isolated by network partitioning (FF85+)
|
||||
//user_pref("network.http.altsvc.enabled", false);
|
||||
//user_pref("network.http.altsvc.oe", false);
|
||||
//user_pref("network.dns.http3_echconfig.enabled", true);
|
||||
//user_pref("network.dns.use_https_rr_as_altsvc", true); // DEFAULT
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: PROXY / SOCKS / IPv6 *
|
||||
@@ -847,9 +838,9 @@ user_pref("signon.rememberSignons", false);
|
||||
// [1] https://www.ghacks.net/2020/05/18/firefox-77-wont-truncate-text-exceeding-max-length-to-address-password-pasting-issues/
|
||||
user_pref("editor.truncate_user_pastes", false);
|
||||
|
||||
// PREF: show Reveal Password icon
|
||||
//user_pref("layout.forms.reveal-password-button.enabled", true);
|
||||
//user_pref("layout.forms.reveal-password-context-menu.enabled", false); // DEFAULT
|
||||
// PREF: Reveal Password
|
||||
//user_pref("layout.forms.reveal-password-button.enabled", true); // show icon
|
||||
user_pref("layout.forms.reveal-password-context-menu.enabled", true); // right-click menu option
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: ADDRESS + CREDIT CARD MANAGER *
|
||||
@@ -888,7 +879,7 @@ user_pref("network.auth.subresource-http-auth-allow", 1);
|
||||
//user_pref("security.mixed_content.block_display_content", true);
|
||||
|
||||
// PREF: upgrade passive content to use HTTPS on secure pages
|
||||
//user_pref("security.mixed_content.upgrade_display_content", true);
|
||||
//user_pref("security.mixed_content.upgrade_display_content", true); // DEFAULT [FF 110]
|
||||
|
||||
// PREF: block insecure downloads from secure sites
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1660952
|
||||
@@ -977,15 +968,16 @@ user_pref("privacy.userContext.ui.enabled", true);
|
||||
******************************************************************************/
|
||||
|
||||
// PREF: disable WebRTC (Web Real-Time Communication)
|
||||
// Firefox uses mDNS hostname obfuscation on desktop (except Windows7/8) and the
|
||||
// private IP is NEVER exposed, except if required in TRUSTED scenarios; i.e. after
|
||||
// you grant device (microphone or camera) access
|
||||
// [SETUP-HARDEN] Test first. Windows7/8 users only: behind a proxy who never use WebRTC
|
||||
// Firefox desktop uses mDNS hostname obfuscation and the private IP is never exposed until
|
||||
// required in TRUSTED scenarios; i.e. after you grant device (microphone or camera) access
|
||||
// [TEST] https://browserleaks.com/webrtc
|
||||
// [1] https://groups.google.com/g/discuss-webrtc/c/6stQXi72BEU/m/2FwZd24UAQAJ
|
||||
// [2] https://datatracker.ietf.org/doc/html/draft-ietf-mmusic-mdns-ice-candidates#section-3.1.1
|
||||
//user_pref("media.peerconnection.enabled", false);
|
||||
|
||||
// PREF: enable WebRTC Global Mute Toggles
|
||||
//user_pref("privacy.webrtc.globalMuteToggles", true);
|
||||
|
||||
// PREF: force WebRTC inside the proxy [FF70+]
|
||||
user_pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true);
|
||||
|
||||
@@ -1015,10 +1007,11 @@ user_pref("media.peerconnection.ice.default_address_only", true);
|
||||
// PREF: disable all DRM content (EME: Encryption Media Extension)
|
||||
// EME is a JavaScript API for playing DRMed (not free) video content in HTML.
|
||||
// A DRM component called a Content Decryption Module (CDM) decrypts, decodes, and displays the video.
|
||||
// [SETUP-WEB] e.g. Netflix, Amazon Prime, Hulu, HBO, Disney+, Showtime, Starz, DirectTV
|
||||
// e.g. Netflix, Amazon Prime, Hulu, HBO, Disney+, Showtime, Starz, DirectTV
|
||||
// [SETTING] General>DRM Content>Play DRM-controlled content
|
||||
// [TEST] https://bitmovin.com/demos/drm
|
||||
// [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
|
||||
// [2] https://old.reddit.com/r/firefox/comments/10gvplf/comment/j55htc7
|
||||
//user_pref("media.eme.enabled", false);
|
||||
// Optionally, hide the setting which also disables the DRM prompt:
|
||||
//user_pref("browser.eme.ui.enabled", false);
|
||||
@@ -1042,76 +1035,111 @@ user_pref("media.peerconnection.ice.default_address_only", true);
|
||||
//user_pref("devtools.selfxss.count", 5);
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: GOOGLE SAFE BROWSING (GSB) *
|
||||
* SECTION: SAFE BROWSING (SB) *
|
||||
******************************************************************************/
|
||||
|
||||
// PREF: disable GSB (master switch)
|
||||
// Increased privacy away from Google, but less protection against threats.
|
||||
// [WARNING] Be sure to have alternate security measures if you disable Safe Browsing.
|
||||
// A full url is never sent to Google, only a part-hash of the prefix,
|
||||
// hidden with noise of other real part-hashes. Firefox takes measures such as
|
||||
// stripping out identifying parameters, and since SBv4 (FF57+), doesn't even use cookies.
|
||||
// (Turn on browser.safebrowsing.debug to monitor this activity)
|
||||
// [1] https://feeding.cloud.geek.nz/posts/how-safe-browsing-works-in-firefox/
|
||||
// [2] https://wiki.mozilla.org/Security/Safe_Browsing
|
||||
// [3] https://support.mozilla.org/kb/how-does-phishing-and-malware-protection-work
|
||||
// [4] https://educatedguesswork.org/posts/safe-browsing-privacy/
|
||||
|
||||
// PREF: disable Safe Browsing
|
||||
// [WARNING] Be sure to have alternate security measures if you disable SB! Adblockers do not count!
|
||||
// [SETTING] Privacy & Security>Security>... Block dangerous and deceptive content
|
||||
// [1] https://www.wikiwand.com/en/Google_Safe_Browsing#/Privacy
|
||||
// [2] https://ashkansoltani.org/2012/02/25/cookies-from-nowhere
|
||||
// [3] https://blog.cryptographyengineering.com/2019/10/13/dear-apple-safe-browsing-might-not-be-that-safe/
|
||||
// [ALTERNATIVE] Enable local checks only: https://github.com/yokoffing/Betterfox/issues/87
|
||||
// [1] https://support.mozilla.org/en-US/kb/how-does-phishing-and-malware-protection-work#w_what-information-is-sent-to-mozilla-or-its-partners-when-phishing-and-malware-protection-is-enabled
|
||||
// [2] https://wiki.mozilla.org/Security/Safe_Browsing
|
||||
// [3] https://developers.google.com/safe-browsing/v4
|
||||
// [4] https://github.com/privacyguides/privacyguides.org/discussions/423#discussioncomment-1752006
|
||||
// [5] https://github.com/privacyguides/privacyguides.org/discussions/423#discussioncomment-1767546
|
||||
user_pref("browser.safebrowsing.malware.enabled", false);
|
||||
user_pref("browser.safebrowsing.phishing.enabled", false);
|
||||
// [6] https://wiki.mozilla.org/Security/Safe_Browsing
|
||||
// [7] https://ashkansoltani.org/2012/02/25/cookies-from-nowhere (outdated)
|
||||
// [8] https://blog.cryptographyengineering.com/2019/10/13/dear-apple-safe-browsing-might-not-be-that-safe/ (outdated)
|
||||
// [9] https://the8-bit.com/apple-proxies-google-safe-browsing-privacy/
|
||||
// [10] https://github.com/brave/brave-browser/wiki/Deviations-from-Chromium-(features-we-disable-or-remove)#services-we-proxy-through-brave-servers
|
||||
//user_pref("browser.safebrowsing.malware.enabled", false); // all checks happen locally
|
||||
//user_pref("browser.safebrowsing.phishing.enabled", false); // all checks happen locally
|
||||
//user_pref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||
//user_pref("browser.safebrowsing.provider.google4.gethashURL", "");
|
||||
//user_pref("browser.safebrowsing.provider.google4.updateURL", "");
|
||||
//user_pref("browser.safebrowsing.provider.google.gethashURL", "");
|
||||
//user_pref("browser.safebrowsing.provider.google.updateURL", "");
|
||||
//user_pref("browser.safebrowsing.downloads.remote.url", "");
|
||||
//user_pref("browser.safebrowsing.provider.google4.dataSharingURL", "");
|
||||
|
||||
// PREF: disable GSB checking downloads (master switch)
|
||||
// This is the master switch for the safebrowsing.downloads prefs
|
||||
// PREF: disable SB checks for downloads
|
||||
// This is the master switch for the safebrowsing.downloads prefs (both local lookups + remote)
|
||||
// [NOTE] Still enable this for checks to happen locally
|
||||
// [SETTING] Privacy & Security>Security>... "Block dangerous downloads"
|
||||
user_pref("browser.safebrowsing.downloads.enabled", false);
|
||||
//user_pref("browser.safebrowsing.downloads.enabled", false); // all checks happen locally
|
||||
|
||||
// PREF: disable GSB checks for downloads (remote)
|
||||
// PREF: disable SB checks for downloads (remote)
|
||||
// To verify the safety of certain executable files, Firefox may submit some information about the
|
||||
// file, including the name, origin, size and a cryptographic hash of the contents, to the Google
|
||||
// Safe Browsing service which helps Firefox determine whether or not the file should be blocked.
|
||||
//user_pref("browser.safebrowsing.downloads.remote.enabled", false); // DEFAULT
|
||||
// [NOTE] If you do not understand the consequences, override this.
|
||||
user_pref("browser.safebrowsing.downloads.remote.enabled", false);
|
||||
//user_pref("browser.safebrowsing.downloads.remote.url", "");
|
||||
// disable SB checks for unwanted 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_uncommon", false);
|
||||
//user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false);
|
||||
//user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
|
||||
|
||||
// PREF: disable 'ignore this warning' on GSB warnings
|
||||
// PREF: allow user to "ignore this warning" on SB warnings
|
||||
// If clicked, it bypasses the block for that session. This is a means for admins to enforce SB.
|
||||
// Report false positives to [2]
|
||||
// [TEST] see https://github.com/arkenfox/user.js/wiki/Appendix-A-Test-Sites#-mozilla
|
||||
// [1] https://bugzilla.mozilla.org/1226490
|
||||
user_pref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||
// [2] https://safebrowsing.google.com/safebrowsing/report_general/
|
||||
//user_pref("browser.safebrowsing.allowOverride", true); // DEFAULT
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: MOZILLA *
|
||||
******************************************************************************/
|
||||
|
||||
// PREF: prevent accessibility services from accessing your browser [RESTART]
|
||||
// Accessibility Service may negatively impact Firefox browsing performance
|
||||
// Disable it if you’re not using any type of physical impairment assistive software
|
||||
// [1] https://support.mozilla.org/kb/accessibility-services
|
||||
// [2] https://www.ghacks.net/2021/08/25/firefox-tip-turn-off-accessibility-services-to-improve-performance/
|
||||
// [3] https://www.troddit.com/r/firefox/comments/p8g5zd/why_does_disabling_accessibility_services_improve
|
||||
// [4] https://winaero.com/firefox-has-accessibility-service-memory-leak-you-should-disable-it/
|
||||
// [5] https://www.ghacks.net/2022/12/26/firefoxs-accessibility-performance-is-getting-a-huge-boost/
|
||||
user_pref("accessibility.force_disabled", 1);
|
||||
|
||||
// PREF: disable the Accessibility panel
|
||||
//user_pref("devtools.accessibility.enabled", false);
|
||||
|
||||
// PREF: disable Firefox accounts
|
||||
// [ALTERNATIVE] Use xBrowserSync
|
||||
// [ALTERNATIVE] Use xBrowserSync [1]
|
||||
// [1] https://addons.mozilla.org/en-US/firefox/addon/xbs
|
||||
// [2] https://github.com/arkenfox/user.js/issues/1175
|
||||
user_pref("identity.fxaccounts.enabled", false);
|
||||
|
||||
// PREF: disable Firefox View [FF106+]
|
||||
// [1] https://support.mozilla.org/en-US/kb/how-set-tab-pickup-firefox-view#w_what-is-firefox-view
|
||||
user_pref("browser.tabs.firefox-view", false);
|
||||
|
||||
// PREF: disable Push API
|
||||
// PREF: disable Push Notifications API [FF44+]
|
||||
// Push is an API that allows websites to send you (subscribed) messages even when the site
|
||||
// isn't loaded, by pushing messages to your userAgentID through Mozilla's Push Server.
|
||||
// You shouldn't need to disable this.
|
||||
// [WHY] Push requires subscription
|
||||
// [NOTE] To remove all subscriptions, reset "dom.push.userAgentID"
|
||||
// [1] https://support.mozilla.org/en-US/kb/push-notifications-firefox
|
||||
// [2] https://developer.mozilla.org/en-US/docs/Web/API/Push_API
|
||||
// [3] https://www.reddit.com/r/firefox/comments/fbyzd4/the_most_private_browser_isnot_firefox/
|
||||
user_pref("dom.push.enabled", false);
|
||||
//user_pref("dom.push.userAgentID", "");
|
||||
//user_pref("dom.push.enabled", false);
|
||||
//user_pref("dom.push.userAgentID", "");
|
||||
|
||||
// PREF: Set a default permission for Notifications
|
||||
// PREF: Set a default permission for Web Notifications
|
||||
// To add site exceptions: Page Info>Permissions>Receive Notifications.
|
||||
// To manage site exceptions: Options>Privacy & Security>Permissions>Notifications>Settings.
|
||||
// 0=always ask (default), 1=allow, 2=block
|
||||
user_pref("permissions.default.desktop-notification", 2);
|
||||
|
||||
|
||||
// PREF: disable annoying location requests from websites
|
||||
user_pref("permissions.default.geo", 2);
|
||||
// PREF: Use Mozilla geolocation service instead of Google when geolocation is enabled
|
||||
@@ -1127,7 +1155,7 @@ user_pref("geo.provider.use_geoclue", false); // [FF102+] [LINUX]
|
||||
|
||||
// PREF: disable region updates
|
||||
// [1] https://firefox-source-docs.mozilla.org/toolkit/modules/toolkit_modules/Region.html
|
||||
user_pref("browser.region.update.enabled", false);
|
||||
//user_pref("browser.region.update.enabled", false);
|
||||
//user_pref("browser.region.network.url", "");
|
||||
|
||||
// PREF: Enforce Firefox blocklist for extensions + No hiding tabs
|
||||
@@ -1141,20 +1169,34 @@ user_pref("browser.region.update.enabled", false);
|
||||
// [SETTING] General>Firefox Updates>Check for updates but let you choose to install them
|
||||
//user_pref("app.update.auto", false);
|
||||
|
||||
// PREF: disable automatic extension updates
|
||||
//user_pref("extensions.update.enabled", false);
|
||||
|
||||
// PREF: disable search engine updates (e.g. OpenSearch)
|
||||
// [NOTE] This does not affect Mozilla's built-in or Web Extension search engines
|
||||
//user_pref("browser.search.update", false);
|
||||
|
||||
// PREF: Disable automatic extension updates [move to Pesky]
|
||||
//user_pref("extensions.update.enabled", false);
|
||||
|
||||
// PREF: remove special permissions for certain mozilla domains
|
||||
// [1] resource://app/defaults/permissions
|
||||
user_pref("permissions.manager.defaultsUrl", "");
|
||||
// default = resource://app/defaults/permissions
|
||||
//user_pref("permissions.manager.defaultsUrl", "");
|
||||
|
||||
// PREF: remove webchannel whitelist
|
||||
user_pref("webchannel.allowObject.urlWhitelist", "");
|
||||
|
||||
// PREF: disable mozAddonManager Web API [FF57+]
|
||||
// [NOTE] To allow extensions to work on AMO, you also need 2662
|
||||
// [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=1384330,1406795,1415644,1453988
|
||||
//user_pref("privacy.resistFingerprinting.block_mozAddonManager", true); // [HIDDEN]
|
||||
|
||||
// PREF: remove "addons.mozilla.org" from set of domains that extensions cannot access
|
||||
// [NOTE] May only work with privacy.resistfingerprinting enabled? and/or DEV/NIGHTLY-only?
|
||||
// [1] https://www.reddit.com/r/firefox/comments/n1lpaf/make_addons_work_on_mozilla_sites/gwdy235/?context=3
|
||||
//user_pref("extensions.webextensions.restrictedDomains", "accounts-static.cdn.mozilla.net,accounts.firefox.com,addons.cdn.mozilla.net,api.accounts.firefox.com,content.cdn.mozilla.net,discovery.addons.mozilla.org,install.mozilla.org,oauth.accounts.firefox.com,profile.accounts.firefox.com,support.mozilla.org,sync.services.mozilla.com");
|
||||
|
||||
// PREF: do not require signing for extensions [ESR/DEV/NIGHTLY ONLY]
|
||||
// [1] https://support.mozilla.org/en-US/kb/add-on-signing-in-firefox#w_what-are-my-options-if-i-want-to-use-an-unsigned-add-on-advanced-users
|
||||
//user_pref("xpinstall.signatures.required", false);
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: TELEMETRY *
|
||||
******************************************************************************/
|
||||
@@ -1170,6 +1212,7 @@ user_pref("toolkit.telemetry.shutdownPingSender.enabled", false);
|
||||
user_pref("toolkit.telemetry.updatePing.enabled", false);
|
||||
user_pref("toolkit.telemetry.bhrPing.enabled", false);
|
||||
user_pref("toolkit.telemetry.firstShutdownPing.enabled", false);
|
||||
user_pref("toolkit.telemetry.dap_enabled", false); // DEFAULT [FF108]
|
||||
|
||||
// PREF: Corroborator
|
||||
//user_pref("corroborator.enabled", false);
|
||||
|
||||
+8
-17
@@ -1,41 +1,32 @@
|
||||
//
|
||||
/* Do not COPY+PASTE this file. If you do, only COPY+PASTE the user_pref itself.
|
||||
*
|
||||
* If you make changes to your about:config while the program is running, the
|
||||
* changes will be overwritten when the application restarts.
|
||||
*
|
||||
* To make a change to preferences, you will have to edit the user.js file.
|
||||
*/
|
||||
|
||||
/****************************************************************************************
|
||||
* Smoothfox *
|
||||
* "Faber est suae quisque fortunae" *
|
||||
* priority: better scrolling *
|
||||
* version: November 2022 *
|
||||
* version: January 2023 *
|
||||
* url: https://github.com/yokoffing/Betterfox *
|
||||
***************************************************************************************/
|
||||
|
||||
/****************************************************************************************
|
||||
* OPTION 1: INSTANT SCROLLING (SIMPLE ADJUSTMENT) *
|
||||
****************************************************************************************/
|
||||
// recommended for 60hz displays
|
||||
// recommended for 60hz+ displays
|
||||
user_pref("general.smoothScroll", true); // DEFAULT
|
||||
user_pref("mousewheel.default.delta_multiplier_y", 275); // 250-500
|
||||
user_pref("mousewheel.default.delta_multiplier_y", 275); // 250-400
|
||||
|
||||
/****************************************************************************************
|
||||
* OPTION 2: SMOOTH SCROLLING *
|
||||
****************************************************************************************/
|
||||
// recommended for 90hz+ displays
|
||||
user_pref("general.smoothScroll", true); // DEFAULT
|
||||
user_pref("mousewheel.default.delta_multiplier_y", 265); // 250-500
|
||||
user_pref("mousewheel.default.delta_multiplier_y", 300); // 250-400
|
||||
user_pref("general.smoothScroll.msdPhysics.enabled", true);
|
||||
|
||||
/****************************************************************************************
|
||||
* OPTION 3: NATURAL SMOOTH SCROLLING [MODIFIED] *
|
||||
* OPTION 3: NATURAL SMOOTH SCROLLING V3 [MODIFIED] *
|
||||
****************************************************************************************/
|
||||
// from https://github.com/AveYo/fox/blob/main/Natural%20Smooth%20Scrolling%20for%20user.js
|
||||
// largely matches Chrome flags: Windows Scrolling Personality and Smooth Scrolling
|
||||
// recommended for 120hz+ displays
|
||||
// largely matches Chrome flags: Windows Scrolling Personality and Smooth Scrolling
|
||||
// from https://github.com/AveYo/fox/blob/cf56d1194f4e5958169f9cf335cd175daa48d349/Natural%20Smooth%20Scrolling%20for%20user.js
|
||||
user_pref("general.smoothScroll", true); // DEFAULT
|
||||
user_pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12);
|
||||
user_pref("general.smoothScroll.msdPhysics.enabled", true);
|
||||
@@ -46,5 +37,5 @@ user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", 2.0);
|
||||
user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250);
|
||||
user_pref("general.smoothScroll.currentVelocityWeighting", 1.0);
|
||||
user_pref("general.smoothScroll.stopDecelerationWeighting", 1.0);
|
||||
user_pref("mousewheel.default.delta_multiplier_y", 280);
|
||||
user_pref("mousewheel.default.delta_multiplier_y", 300); // 250-400
|
||||
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
*/
|
||||
|
||||
/****************************************************************************
|
||||
* BetterFox - LibreWolf overrides (beta) *
|
||||
* Betterfox - LibreWolf overrides (beta) *
|
||||
* Quis custodiet ipsos custodes *
|
||||
* version: November 2022 *
|
||||
* url: https://github.com/yokoffing/Better-Fox *
|
||||
* license: https://github.com/yokoffing/Better-Fox/blob/master/LICENSE *
|
||||
* README: https://github.com/yokoffing/Better-Fox/blob/master/README.md *
|
||||
* url: https://github.com/yokoffing/Betterfox *
|
||||
* license: https://github.com/yokoffing/Betterfox/blob/master/LICENSE *
|
||||
* README: https://github.com/yokoffing/Betterfox/blob/master/README.md *
|
||||
****************************************************************************/
|
||||
|
||||
// Where do I find my librewolf.overrides.cfg? https://librewolf.net/docs/settings/#where-do-i-find-my-librewolfoverridescfg
|
||||
|
||||
+92
-54
@@ -16,24 +16,56 @@
|
||||
/** Enter your personal prefs below this line ***/
|
||||
|
||||
/** SETUP ON FIRST INSTALLATION ***/
|
||||
user_pref("network.trr.uri", "https://dns.nextdns.io/******"); // DoH
|
||||
// Select one:
|
||||
user_pref("network.trr.uri", "https://dns.nextdns.io/******/Firefox"); // DoH - NextDNS
|
||||
user_pref("https://dns.controld.com/******"); // DoH - ControlD
|
||||
|
||||
/** FASTFOX ***/
|
||||
user_pref("browser.sessionstore.restore_pinned_tabs_on_demand", true);
|
||||
user_pref("browser.sessionstore.interval", 150000); // 15 min.; set minimum interval between session save operations
|
||||
user_pref("gfx.webrender.compositor.force-enabled", true); // enforce
|
||||
user_pref("layers.gpu-process.force-enabled", true); // enforce
|
||||
user_pref("media.hardware-video-decoding.force-enabled", true); // enforce
|
||||
user_pref("media.av1.enabled", false); // disable AV1 to force video hardware decoding
|
||||
user_pref("network.http.max-connections", 1800); // default=900
|
||||
user_pref("network.http.max-persistent-connections-per-server", 9); // default=6; download connections; anything above 10 is excessive
|
||||
user_pref("network.http.pacing.requests.min-parallelism", 18); // default=6
|
||||
user_pref("network.dnsCacheEntries", 20000); // maximum # of DNS entries
|
||||
user_pref("network.dnsCacheExpiration", 86400); // keep DNS entries for 24 hours
|
||||
user_pref("network.dnsCacheExpirationGracePeriod", 240); // 4 minutes
|
||||
user_pref("network.http.speculative-parallel-limit", 18); // default=6
|
||||
//user_pref("network.dns.disablePrefetch", false);
|
||||
//user_pref("network.dns.disablePrefetchFromHTTPS", false);
|
||||
//user_pref("network.prefetch-next", true);
|
||||
user_pref("network.predictor.enabled", true);
|
||||
user_pref("network.predictor.enable-prefetch", true);
|
||||
user_pref("network.predictor.enable-hover-on-ssl", true);
|
||||
user_pref("network.predictor.preresolve-min-confidence", 10);
|
||||
user_pref("network.predictor.preconnect-min-confidence", 20);
|
||||
user_pref("network.predictor.prefetch-min-confidence", 30);
|
||||
user_pref("network.predictor.prefetch-force-valid-for", 3600);
|
||||
user_pref("network.predictor.prefetch-rolling-load-count", 120);
|
||||
user_pref("network.predictor.max-resources-per-entry", 250);
|
||||
user_pref("network.predictor.max-uri-length", 1000);
|
||||
|
||||
/** SECUREFOX ***/
|
||||
user_pref("browser.urlbar.showSearchSuggestionsFirst", false); // unselect "Show search suggestions ahead of browsing history in address bar results" for clean UI
|
||||
user_pref("browser.urlbar.groupLabels.enabled", false); // hide Firefox Suggest label in URL dropdown box
|
||||
//user_pref("signon.rememberSignons", false); // Privacy & Security>Logins and Passwords>Ask to save logins and passwords for websites
|
||||
user_pref("signon.management.page.breach-alerts.enabled", false); // extra hardening
|
||||
user_pref("signon.generation.enabled", false); // unselect "Suggest and generate strong passwords" for clean UI
|
||||
user_pref("privacy.sanitize.sanitizeOnShutdown", true); // clear browsing data on shutdown
|
||||
user_pref("privacy.clearOnShutdown.offlineApps", true); // disable if login issue after restart
|
||||
user_pref("browser.safebrowsing.provider.google4.gethashURL", ""); // extra hardening
|
||||
user_pref("browser.safebrowsing.provider.google4.updateURL", ""); // extra hardening
|
||||
user_pref("browser.safebrowsing.provider.google.gethashURL", ""); // extra hardening
|
||||
user_pref("browser.safebrowsing.provider.google.updateURL", ""); // extra hardening
|
||||
user_pref("browser.safebrowsing.downloads.remote.url", ""); // extra hardening
|
||||
user_pref("browser.safebrowsing.provider.google4.dataSharingURL", ""); // extra hardening
|
||||
user_pref("privacy.sanitize.sanitizeOnShutdown", true); // clear browsing data on shutdown
|
||||
user_pref("privacy.clearOnShutdown.offlineApps", true); // Site Data
|
||||
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
|
||||
user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false); // clean up UI; not needed in user.js if remote downloads are disabled
|
||||
user_pref("browser.safebrowsing.allowOverride", false); // do not allow user to override SB
|
||||
user_pref("dom.push.enabled", false); // disable Push API; breaks FF Sync
|
||||
user_pref("browser.search.update", false); // do not update opensearch engines
|
||||
user_pref("network.trr.mode", 3); // enable TRR (without System fallback)
|
||||
user_pref("network.trr.confirmationNS", "skip"); // skip TRR confirmation request
|
||||
user_pref("network.notify.checkForProxies", false); // skip proxy request check
|
||||
user_pref("network.trr.confirmationNS", "skip"); // skip TRR confirmation request
|
||||
user_pref("network.trr.disable-ECS", false); // TRR asks the resolver to enable EDNS Client Subnet (ECS support); set to true if some websites don't resolve
|
||||
|
||||
/** PESKYFOX ***/
|
||||
user_pref("devtools.accessibility.enabled", false); // removes annoying "Inspect Accessibility Properties" on right-click
|
||||
@@ -50,66 +82,72 @@ user_pref("browser.urlbar.suggest.bookmark", false); // hide URL bar dropdown su
|
||||
user_pref("browser.urlbar.suggest.history", false); // hide URL bar dropdown suggestions
|
||||
user_pref("browser.urlbar.suggest.openpage", false); // hide URL bar dropdown suggestions
|
||||
//user_pref("browser.urlbar.suggest.searches", false); // hide URL bar dropdown suggestions (needed?)
|
||||
user_pref("browser.urlbar.maxRichResults", 1); // minimum suggestion needed for URL bar autofill
|
||||
//user_pref("browser.urlbar.maxRichResults", 1); // minimum suggestion needed for URL bar autofill
|
||||
user_pref("browser.bookmarks.max_backups", 0); // minimize disk use; manually back-up
|
||||
user_pref("view_source.wrap_long_lines", true); // wrap source lines
|
||||
user_pref("devtools.debugger.ui.editor-wrapping", true); // wrap lines in devtools
|
||||
user_pref("browser.zoom.full", false); // text-only zoom, not all elements on page
|
||||
user_pref("pdfjs.sidebarViewOnLoad", 2); // show Table of Contents in sidebar for PDFs (if available)
|
||||
user_pref("pdfjs.sidebarViewOnLoad", 2); // [HIDDEN] force showing of Table of Contents in sidebar for PDFs (if available)
|
||||
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("browser.tabs.loadInBackground", false); // CTRL+SHIFT+CLICK for background tabs; Settings>General>Tabs>"When you open a link, image or media in a new tab, switch to it immediately"
|
||||
user_pref("media.videocontrols.picture-in-picture.improved-video-controls.enabled", true);
|
||||
user_pref("media.videocontrols.picture-in-picture.display-text-tracks.size", "small");
|
||||
user_pref("image.jxl.enabled", true);
|
||||
//user_pref("browser.tabs.loadInBackground", false); // CTRL+SHIFT+CLICK for background tabs; Settings>General>Tabs>"When you open a link, image or media in a new tab, switch to it immediately"
|
||||
user_pref("media.videocontrols.picture-in-picture.improved-video-controls.enabled", true); // PiP
|
||||
user_pref("media.videocontrols.picture-in-picture.display-text-tracks.size", "small"); // PiP
|
||||
user_pref("reader.parse-on-load.enabled", false); // disable reader mode
|
||||
//user_pref("reader.color_scheme", "auto"); // match system theme for when reader is enabled
|
||||
//user_pref("browser.urlbar.openintab", true); // stay on current site and open new tab when typing in URL bar
|
||||
|
||||
/** FASTFOX ***/
|
||||
user_pref("browser.sessionstore.restore_pinned_tabs_on_demand", true);
|
||||
user_pref("browser.sessionstore.interval", 30000); // set minimum interval between session save operations
|
||||
// high-end machine:
|
||||
user_pref("gfx.webrender.compositor.force-enabled", true); // reinforce
|
||||
user_pref("image.mem.decode_bytes_at_a_time", 262144);
|
||||
user_pref("layers.gpu-process.force-enabled", true); // reinforce
|
||||
user_pref("media.memory_cache_max_size", 1048576);
|
||||
user_pref("media.memory_caches_combined_limit_kb", 3145728);
|
||||
user_pref("media.memory_caches_combined_limit_pc_sysmem", 40);
|
||||
user_pref("media.hardware-video-decoding.force-enabled", true); // reinforce
|
||||
user_pref("network.http.http3.enable", false); // disables QUIC
|
||||
user_pref("browser.cache.memory.capacity", 5242880);
|
||||
user_pref("browser.cache.memory.max_entry_size", 327680);
|
||||
|
||||
/** DELETE IF NOT NIGHTLY ***/
|
||||
user_pref("javascript.options.experimental.import_assertions", true);
|
||||
user_pref("javascript.options.experimental.shadow_realms", true);
|
||||
user_pref("javascript.options.wasm_gc", true);
|
||||
user_pref("javascript.options.wasm_function_references", true);
|
||||
user_pref("cookiebanners.service.mode", 2);
|
||||
user_pref("cookiebanners.service.mode.privateBrowsing", 1);
|
||||
user_pref("privacy.globalprivacycontrol.enabled", true);
|
||||
user_pref("privacy.globalprivacycontrol.functionality.enabled", true);
|
||||
user_pref("privacy.userContext.enabled", false);
|
||||
user_pref("browser.urlbar.suggest.quickactions", false);
|
||||
user_pref("extensions.unifiedExtensions.enabled", false);
|
||||
//user_pref("layout.css.scroll-driven-animations.enabled", true); // CSS scroll-linked animations
|
||||
//user_pref("dom.security.sanitizer.enabled", true); // HTML Sanitizer API
|
||||
//user_pref("privacy.clearsitedata.cache.enabled", true); // Clear-Site-Data: "cache" header
|
||||
user_pref("dom.indexedDB.preprocessing", true); // indexedDB Preprocessing
|
||||
//user_pref("javascript.options.experimental.shadow_realms", true); // Shadowrealms
|
||||
//user_pref("javascript.options.wasm_gc", true); // Wasm GC
|
||||
//user_pref("javascript.options.wasm_function_references", true); // Wasm Function references
|
||||
//user_pref("javascript.options.experimental.import_assertions", true); // import assertions
|
||||
//user_pref("javascript.options.experimental.array_grouping", true); // Array.fromAsync JS API
|
||||
//user_pref("image.jxl.enabled", true); // JPEG XL
|
||||
user_pref("image.avif.sequence.enabled", true); // Animated AVIF
|
||||
//user_pref("extensions.translations.disabled", false); // Language Translation; still needs Firefox Translations add-on
|
||||
user_pref("cookiebanners.service.mode", 2); // block cookie banners natively
|
||||
user_pref("cookiebanners.service.mode.privateBrowsing", 2); // block cookie banners natively in PB mode
|
||||
user_pref("privacy.globalprivacycontrol.enabled", true); // enable GPC
|
||||
user_pref("privacy.globalprivacycontrol.functionality.enabled", true); // enable GPC
|
||||
user_pref("privacy.userContext.enabled", false); // disable Containers
|
||||
user_pref("browser.crashReports.unsubmittedCheck.enabled", false); // true by default on NIGHTLY
|
||||
//user_pref("browser.urlbar.suggest.quickactions", false); // Quick Actions in URL bar
|
||||
//user_pref("xpinstall.signatures.required", false); // [ESR/DEV/NIGHTLY]
|
||||
user_pref("extensions.webextensions.restrictedDomains", ""); // remove Mozilla restricted domains [DEV/NIGHTLY]
|
||||
// EncryptedClientHello
|
||||
user_pref("network.dns.echconfig.enabled", false); // disable ECH (waiting on support); ControlD will require a root CA installation to work
|
||||
//user_pref("network.dns.http3_echconfig.enabled", true); // disable ECH (waiting on support); ControlD will require a root CA installation to work
|
||||
|
||||
/** DELETE IF NOT WINDOWS ***/
|
||||
user_pref("pdfjs.defaultZoomValue", "page-fit"); // DESKTOP; alt=125; PDF zoom level
|
||||
user_pref("gfx.webrender.quality.force-subpixel-aa-where-possible", true); // font improvement
|
||||
/** DELETE IF NOT WINDOWS DESKTOP ***/
|
||||
user_pref("network.trr.mode", 3); // enable TRR (without System fallback)
|
||||
user_pref("pdfjs.defaultZoomValue", "125"); // DESKTOP; alt=page-width; PDF zoom level
|
||||
//user_pref("dom.webgpu.enabled", true); // enable WebGPU
|
||||
//user_pref("gfx.webgpu.force-enabled", true); // enable WebGPU
|
||||
user_pref("dom.ipc.processCount", 12); // Shared Web Content; 12-core CPU
|
||||
user_pref("dom.ipc.processCount.webIsolated", 12); // per-site; Isolated Web Content; 12-core CPU
|
||||
user_pref("gfx.webrender.quality.force-subpixel-aa-where-possible", true); // font improvement
|
||||
user_pref("gfx.font_rendering.cleartype_params.rendering_mode", 5);
|
||||
user_pref("gfx.font_rendering.cleartype_params.cleartype_level", 100);
|
||||
user_pref("gfx.font_rendering.cleartype_params.force_gdi_classic_for_families", "");
|
||||
user_pref("gfx.font_rendering.cleartype_params.force_gdi_classic_max_size", 6);
|
||||
user_pref("gfx.font_rendering.directwrite.use_gdi_table_loading", false);
|
||||
//user_pref("font.name.monospace.x-western", "Cascadia Code"); // preferred font [WINDOWS]
|
||||
//user_pref("font.name.monospace.x-western", "Fira Code"); // preferred font [WINDOWS]
|
||||
//user_pref("layout.css.font-visibility.trackingprotection", 3); // unbreaks using custom font on pages in normal windows
|
||||
// user_pref("gfx.font_rendering.cleartype_params.gamma", 898); // 1000-2200; https://www.reddit.com/r/firefox/comments/10ed7o2/comment/j4qar9y/
|
||||
user_pref("image.mem.decode_bytes_at_a_time", 262144); // alt=512000
|
||||
user_pref("browser.cache.memory.capacity", 2097152); // fixed maximum 2 GB in memory cache
|
||||
user_pref("browser.cache.memory.max_entry_size", 327680); // maximum size of in memory cached objects
|
||||
user_pref("media.memory_caches_combined_limit_pc_sysmem", 40);
|
||||
user_pref("media.memory_caches_combined_limit_kb", 3145728);
|
||||
//user_pref("font.name.serif.x-western", "Roboto Slab"); // serif font
|
||||
//user_pref("font.name.sans-serif.x-western", "Roboto"); // sans-serif font
|
||||
//user_pref("font.name.monospace.x-western", "Fira Code"); // monospace font
|
||||
|
||||
/** DELETE IF NOT macOS ***/
|
||||
user_pref("pdfjs.defaultZoomValue", "page-width"); // LAPTOP; PDF zoom level
|
||||
//user_pref("font.name.monospace.x-western", "SF Mono"); // preferred font [macOS]
|
||||
//user_pref("layout.css.font-visibility.trackingprotection", 3); // breaks using custom font on pages
|
||||
/** DELETE IF NOT macOS LAPTOP ***/
|
||||
user_pref("network.trr.mode", 2); // enable TRR (with System fallback)
|
||||
user_pref("pdfjs.defaultZoomValue", "page-width"); // LAPTOP; PDF zoom level
|
||||
user_pref("app.update.auto", false); // disable auto-installing Firefox updates [NON-WINDOWS]
|
||||
//user_pref("font.name.monospace.x-western", "SF Mono"); // monospace font
|
||||
|
||||
@@ -10,10 +10,49 @@
|
||||
/****************************************************************************
|
||||
* Betterfox *
|
||||
* "Ad meliora" *
|
||||
* version: 107a1 *
|
||||
* version: 110 *
|
||||
* url: https://github.com/yokoffing/Betterfox *
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: FASTFOX *
|
||||
****************************************************************************/
|
||||
user_pref("nglayout.initialpaint.delay", 0);
|
||||
user_pref("nglayout.initialpaint.delay_in_oopif", 0);
|
||||
user_pref("content.notify.interval", 100000);
|
||||
user_pref("browser.startup.preXulSkeletonUI", false);
|
||||
|
||||
/** EXPERIMENTAL ***/
|
||||
user_pref("layout.css.grid-template-masonry-value.enabled", true);
|
||||
user_pref("layout.css.animation-composition.enabled", true);
|
||||
user_pref("dom.enable_web_task_scheduling", true);
|
||||
|
||||
/** GFX ***/
|
||||
user_pref("gfx.webrender.all", true);
|
||||
user_pref("gfx.webrender.precache-shaders", true);
|
||||
user_pref("gfx.webrender.compositor", true);
|
||||
user_pref("layers.gpu-process.enabled", true);
|
||||
user_pref("media.hardware-video-decoding.enabled", true);
|
||||
user_pref("gfx.canvas.accelerated", true);
|
||||
user_pref("gfx.canvas.accelerated.cache-items", 32768);
|
||||
user_pref("gfx.canvas.accelerated.cache-size", 4096);
|
||||
user_pref("gfx.content.skia-font-cache-size", 80);
|
||||
user_pref("image.cache.size", 10485760);
|
||||
user_pref("image.mem.decode_bytes_at_a_time", 131072);
|
||||
user_pref("image.mem.shared.unmap.min_expiration_ms", 120000);
|
||||
user_pref("media.memory_cache_max_size", 1048576);
|
||||
user_pref("media.memory_caches_combined_limit_kb", 2560000);
|
||||
user_pref("media.cache_readahead_limit", 9000);
|
||||
user_pref("media.cache_resume_threshold", 6000);
|
||||
|
||||
/** BROWSER CACHE ***/
|
||||
user_pref("browser.cache.memory.max_entry_size", 153600);
|
||||
|
||||
/** NETWORK ***/
|
||||
user_pref("network.buffer.cache.size", 262144);
|
||||
user_pref("network.buffer.cache.count", 128);
|
||||
user_pref("network.ssl_tokens_cache_capacity", 32768);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: SECUREFOX *
|
||||
****************************************************************************/
|
||||
@@ -22,9 +61,7 @@ user_pref("browser.contentblocking.category", "strict");
|
||||
user_pref("privacy.trackingprotection.emailtracking.enabled", true);
|
||||
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("privacy.partition.always_partition_third_party_non_cookie_storage", true);
|
||||
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false);
|
||||
user_pref("beacon.enabled", false);
|
||||
user_pref("privacy.query_stripping.strip_list", "__hsfp __hssc __hstc __s _hsenc _openstat dclid fbclid gbraid gclid hsCtaTracking igshid mc_eid ml_subscriber ml_subscriber_hash msclkid oft_c oft_ck oft_d oft_id oft_ids oft_k oft_lk oft_sk oly_anon_id oly_enc_id rb_clickid s_cid twclid vero_conv vero_id wbraid wickedid yclid");
|
||||
user_pref("browser.uitour.enabled", false);
|
||||
|
||||
/** OCSP & CERTS / HPKP ***/
|
||||
@@ -38,20 +75,10 @@ user_pref("security.ssl.treat_unsafe_negotiation_as_broken", true);
|
||||
user_pref("browser.xul.error_pages.expert_bad_cert", true);
|
||||
user_pref("security.tls.enable_0rtt_data", false);
|
||||
|
||||
/** FONTS ***/
|
||||
user_pref("layout.css.font-visibility.private", 1);
|
||||
user_pref("layout.css.font-visibility.trackingprotection", 1);
|
||||
|
||||
/** RFP ***/
|
||||
user_pref("browser.startup.blankWindow", false);
|
||||
user_pref("browser.display.use_system_colors", false);
|
||||
|
||||
/** DISK AVOIDANCE ***/
|
||||
user_pref("browser.cache.disk.enable", false);
|
||||
user_pref("browser.privatebrowsing.forceMediaMemoryCache", true);
|
||||
user_pref("browser.sessionstore.privacy_level", 2);
|
||||
user_pref("browser.helperApps.deleteTempFileOnExit", true);
|
||||
user_pref("browser.pagethumbnails.capturing_disabled", true);
|
||||
|
||||
/** SHUTDOWN & SANITIZING ***/
|
||||
user_pref("privacy.history.custom", true);
|
||||
@@ -71,14 +98,12 @@ user_pref("browser.urlbar.update2.engineAliasRefresh", true);
|
||||
user_pref("browser.search.suggest.enabled", false);
|
||||
user_pref("browser.urlbar.suggest.quicksuggest.sponsored", false);
|
||||
user_pref("browser.urlbar.suggest.quicksuggest.nonsponsored", 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-ONLY MODE ***/
|
||||
user_pref("dom.security.https_only_mode", true);
|
||||
user_pref("dom.security.https_only_mode_error_page_user_suggestions", true);
|
||||
|
||||
/** DNS-over-HTTPS (DOH) ***/
|
||||
user_pref("network.dns.skipTRR-when-parental-control-enabled", false);
|
||||
/** HTTPS-FIRST MODE ***/
|
||||
user_pref("dom.security.https_first", true);
|
||||
|
||||
/** PROXY / SOCKS / IPv6 ***/
|
||||
user_pref("network.proxy.socks_remote_dns", true);
|
||||
@@ -91,6 +116,7 @@ user_pref("signon.privateBrowsingCapture.enabled", false);
|
||||
user_pref("signon.autofillForms", false);
|
||||
user_pref("signon.rememberSignons", false);
|
||||
user_pref("editor.truncate_user_pastes", false);
|
||||
user_pref("layout.forms.reveal-password-context-menu.enabled", true);
|
||||
|
||||
/** ADDRESS + CREDIT CARD MANAGER ***/
|
||||
user_pref("extensions.formautofill.addresses.enabled", false);
|
||||
@@ -114,18 +140,13 @@ user_pref("privacy.userContext.ui.enabled", true);
|
||||
user_pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true);
|
||||
user_pref("media.peerconnection.ice.default_address_only", true);
|
||||
|
||||
/** GOOGLE SAFE BROWSING ***/
|
||||
user_pref("browser.safebrowsing.malware.enabled", false);
|
||||
user_pref("browser.safebrowsing.phishing.enabled", false);
|
||||
user_pref("browser.safebrowsing.downloads.enabled", false);
|
||||
user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false);
|
||||
user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
|
||||
user_pref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||
/** SAFE BROWSING ***/
|
||||
user_pref("browser.safebrowsing.downloads.remote.enabled", false);
|
||||
|
||||
/** MOZILLA ***/
|
||||
user_pref("accessibility.force_disabled", 1);
|
||||
user_pref("identity.fxaccounts.enabled", false);
|
||||
user_pref("browser.tabs.firefox-view", false);
|
||||
user_pref("dom.push.enabled", false);
|
||||
user_pref("permissions.default.desktop-notification", 2);
|
||||
user_pref("permissions.default.geo", 2);
|
||||
user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
|
||||
@@ -133,7 +154,6 @@ user_pref("geo.provider.ms-windows-location", false); // WINDOWS
|
||||
user_pref("geo.provider.use_corelocation", false); // MAC
|
||||
user_pref("geo.provider.use_gpsd", false); // LINUX
|
||||
user_pref("geo.provider.use_geoclue", false); // LINUX
|
||||
user_pref("browser.region.update.enabled", false);
|
||||
user_pref("permissions.manager.defaultsUrl", "");
|
||||
user_pref("webchannel.allowObject.urlWhitelist", "");
|
||||
|
||||
@@ -173,7 +193,6 @@ user_pref("browser.newtabpage.activity-stream.telemetry", false);
|
||||
user_pref("layout.css.prefers-color-scheme.content-override", 2);
|
||||
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
|
||||
user_pref("app.update.suppressPrompts", true);
|
||||
user_pref("accessibility.force_disabled", 1);
|
||||
user_pref("browser.compactmode.show", true);
|
||||
user_pref("browser.privatebrowsing.vpnpromourl", "");
|
||||
user_pref("extensions.getAddons.showPane", false);
|
||||
@@ -221,55 +240,13 @@ user_pref("browser.link.open_newwindow.restriction", 0);
|
||||
user_pref("dom.disable_window_move_resize", true);
|
||||
user_pref("browser.tabs.loadBookmarksInTabs", true);
|
||||
user_pref("browser.bookmarks.openInTabClosesMenu", false);
|
||||
user_pref("clipboard.plainTextOnly", true);
|
||||
user_pref("dom.popup_allowed_events", "click dblclick");
|
||||
user_pref("dom.popup_allowed_events", "change click dblclick auxclick mousedown mouseup pointerdown pointerup notificationclick reset submit touchend contextmenu"); // reset pref; remove in v.111
|
||||
user_pref("layout.css.has-selector.enabled", true);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: FASTFOX *
|
||||
****************************************************************************/
|
||||
user_pref("nglayout.initialpaint.delay", 0);
|
||||
user_pref("nglayout.initialpaint.delay_in_oopif", 0);
|
||||
user_pref("browser.startup.preXulSkeletonUI", false);
|
||||
|
||||
/** EXPERIMENTAL ***/
|
||||
user_pref("layout.css.grid-template-masonry-value.enabled", true);
|
||||
user_pref("dom.enable_web_task_scheduling", true);
|
||||
user_pref("layout.css.animation-composition.enabled", true);
|
||||
|
||||
/** NETWORK ***/
|
||||
user_pref("network.ssl_tokens_cache_capacity", 32768);
|
||||
user_pref("network.dnsCacheEntries", 20000);
|
||||
user_pref("network.dnsCacheExpiration", 3600);
|
||||
user_pref("network.dnsCacheExpirationGracePeriod", 240);
|
||||
user_pref("network.buffer.cache.size", 262144);
|
||||
user_pref("network.buffer.cache.count", 128);
|
||||
|
||||
/** GFX ***/
|
||||
user_pref("gfx.webrender.all", true);
|
||||
user_pref("gfx.webrender.precache-shaders", true);
|
||||
user_pref("gfx.webrender.compositor", true);
|
||||
user_pref("gfx.canvas.accelerated", true);
|
||||
user_pref("gfx.canvas.accelerated.cache-items", 32768);
|
||||
user_pref("gfx.canvas.accelerated.cache-size", 4096);
|
||||
user_pref("gfx.content.skia-font-cache-size", 80);
|
||||
user_pref("image.cache.size", 10485760);
|
||||
user_pref("image.mem.decode_bytes_at_a_time", 131072);
|
||||
user_pref("image.mem.shared.unmap.min_expiration_ms", 120000);
|
||||
user_pref("layers.gpu-process.enabled", true);
|
||||
user_pref("media.memory_cache_max_size", 1048576);
|
||||
user_pref("media.memory_caches_combined_limit_kb", 2560000);
|
||||
user_pref("media.cache_size", 2048000);
|
||||
user_pref("media.cache_readahead_limit", 9000);
|
||||
user_pref("media.cache_resume_threshold", 6000);
|
||||
|
||||
/** CACHE ***/
|
||||
user_pref("browser.cache.memory.max_entry_size", 153600);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: SMOOTHFOX *
|
||||
****************************************************************************/
|
||||
// see https://github.com/yokoffing/Betterfox/blob/master/Smoothfox.js
|
||||
// visit https://github.com/yokoffing/Betterfox/blob/master/Smoothfox.js
|
||||
// Enter your scrolling prefs below this line:
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user