mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-12 15:40:48 +05:30
Compare commits
42 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 98c118481f | |||
| 1741667a66 | |||
| d1211e5b5c | |||
| ac7b5b0fba | |||
| 014fe99cf2 | |||
| 6c03671285 | |||
| 01e50884d0 | |||
| e099257937 | |||
| 85d41a05b6 | |||
| 4527a9cf19 | |||
| 56f56f7d1b | |||
| 7db312b830 | |||
| 0a49cceca4 | |||
| 419096e029 | |||
| 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 |
@@ -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
|
||||
|
||||
---
|
||||
|
||||
|
||||
+115
-88
@@ -3,10 +3,19 @@
|
||||
* Fastfox *
|
||||
* "Non ducor duco" *
|
||||
* priority: speedy browsing *
|
||||
* version: 108 *
|
||||
* version: 111 *
|
||||
* 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, in milliseconds
|
||||
// Reduce the 5ms Firefox waits to render the page
|
||||
@@ -15,25 +24,45 @@
|
||||
user_pref("nglayout.initialpaint.delay", 0); // default=5; used to be 250
|
||||
user_pref("nglayout.initialpaint.delay_in_oopif", 0); // default=5
|
||||
|
||||
// PREF: notification interval (in microseconds)
|
||||
// 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.
|
||||
// Lowering the interval will decrease the perceived page load time
|
||||
// but increase the total loading time.
|
||||
// The notification interval has a dramatic effect on how long it takes to
|
||||
// initially display content for slow connections. The default value
|
||||
// provides good incremental display of content without causing an increase
|
||||
// in page load time. If this value is set below 1/10 of a second it starts
|
||||
// The default value provides good incremental display of content
|
||||
// without causing an increase in page load time.
|
||||
// [NOTE] Lowering the interval will increase responsiveness
|
||||
// but also increase the total load time.
|
||||
// [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
|
||||
user_pref("content.notify.interval", 360000); // (.36s), default=120000 (.12s)
|
||||
//user_pref("content.notify.ontimer", true); // DEFAULT
|
||||
// [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); // (.10s); alt=500000 (.50s)
|
||||
|
||||
// PREF: frequency switch threshold [HIDDEN]
|
||||
// Raising the value will make the application more responsive at the expense of page load time.
|
||||
// [1] http://kb.mozillazine.org/Content.switch.threshold
|
||||
// [2] https://old.reddit.com/r/firefox/comments/11m2yuh/comment/jbjxp8s/?context=3
|
||||
//user_pref("content.interrupt.parsing", true); // [HIDDEN]
|
||||
//user_pref("content.switch.threshold", 1000000); // alt=1500000; default=750000; [HIDDEN]
|
||||
|
||||
// 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]
|
||||
// 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)
|
||||
@@ -42,61 +71,48 @@ user_pref("content.notify.interval", 360000); // (.36s), default=120000 (.12s)
|
||||
//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: 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 *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: WebGPU [HIGHLY EXPERIMENTAL!] [NIGHTLY]
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1746245
|
||||
// [2] https://github.com/gpuweb/gpuweb/wiki/Implementation-Status
|
||||
// [3] https://hacks.mozilla.org/2020/04/experimental-webgpu-in-firefox/
|
||||
// [4] https://developer.chrome.com/docs/web-platform/webgpu/
|
||||
//user_pref("dom.webgpu.enabled", true);
|
||||
//user_pref("gfx.webgpu.force-enabled", true);
|
||||
|
||||
// PREF: about:home startup cache [NIGHTLY]
|
||||
// A cache for the initial about:home document that is loaded by default at startup
|
||||
// The purpose of the cache is to improve startup performance
|
||||
//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 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: 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
|
||||
@@ -108,14 +124,31 @@ user_pref("layout.css.animation-composition.enabled", true);
|
||||
//user_pref("javascript.options.wasm_gc", true);
|
||||
//user_pref("javascript.options.wasm_function_references", true);
|
||||
|
||||
// PREF: import assertions [NIGHTLY]
|
||||
//user_pref("javascript.options.experimental.import_assertions", true);
|
||||
|
||||
// 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: not yet categorized / need documentation [NIGHTLY]
|
||||
//user_pref("javascript.options.experimental.iterator_helpers", true);
|
||||
//user_pref("javascript.options.experimental.weakrefs.expose_cleanupSome", true);
|
||||
// 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: 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: 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 *
|
||||
@@ -138,11 +171,11 @@ user_pref("layout.css.animation-composition.enabled", true);
|
||||
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); // reinforce
|
||||
//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); // reinforce
|
||||
//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/
|
||||
@@ -151,9 +184,11 @@ user_pref("media.hardware-video-decoding.enabled", true);
|
||||
//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,20 +204,12 @@ user_pref("media.memory_caches_combined_limit_kb", 2560000); // preferred=314572
|
||||
//user_pref("media.memory_caches_combined_limit_pc_sysmem", 20); // default=5
|
||||
|
||||
// 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_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: disable QUIC for faster upload speeds
|
||||
// Firefox currently has a bug with impacting upload speeds with HTTP3
|
||||
// [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
|
||||
@@ -195,17 +222,20 @@ user_pref("media.cache_resume_threshold", 6000); // default=30; when a network c
|
||||
|
||||
// PREF: disk cache
|
||||
// [EXTENSION] https://addons.mozilla.org/en-US/firefox/addon/cache-longer/
|
||||
//user_pref("browser.cache.disk.enable", true); // overrides Securefox
|
||||
//user_pref("browser.cache.disk.max_entry_size", 51200); // DEFAULT
|
||||
// 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", 1048576); // 1 GB disk cache; 8192000 = 8 GB
|
||||
//user_pref("browser.cache.disk.smart_size.enabled", false); // disable adaptive cache size on disk
|
||||
//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)
|
||||
//user_pref("browser.cache.disk.max_entry_size", 51200); // DEFAULT
|
||||
//user_pref("browser.cache.disk.metadata_memory_limit", 1024); // increase the memory capacity in Firefox, in order to load more pages, faster
|
||||
//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; sweep intervals, the half life used to re-compute cache entries frequency (in hours)
|
||||
|
||||
// PREF: increase memory cache size
|
||||
// [1] https://www.makeuseof.com/tag/how-much-data-does-youtube-use/
|
||||
//user_pref("browser.cache.memory.capacity", -1); // enforce 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 ; -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 *
|
||||
@@ -220,29 +250,26 @@ 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
|
||||
// [3] https://old.reddit.com/r/firefox/comments/11m2yuh/how_do_i_make_firefox_use_more_of_my_900_megabit/jbfmru6/
|
||||
user_pref("network.http.max-connections", 1800); // default=900
|
||||
user_pref("network.http.max-persistent-connections-per-server", 10); // 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
|
||||
user_pref("network.dnsCacheEntries", 20000);
|
||||
user_pref("network.dnsCacheExpiration", 3600); // keep entries for 1 hour
|
||||
user_pref("network.dnsCacheExpirationGracePeriod", 240);
|
||||
// [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; faster SSL (fast reconnects)
|
||||
user_pref("network.ssl_tokens_cache_capacity", 32768); // default=2048; more TLS token caching (fast reconnects)
|
||||
|
||||
// These do not help speed:
|
||||
// PREF: DoH requests
|
||||
//user_pref("network.trr.request_timeout_ms", 800); // default=1500
|
||||
//user_pref("network.trr.retry-timeout-ms", 125); // DEFAULT
|
||||
//user_pref("network.trr.request_timeout_mode_trronly_ms", 15000); // default=30000
|
||||
// PREF: close a connection if tls handshake does not finish in given number of seconds
|
||||
//user_pref("network.http.tls-handshake-timeout", 20); // default=30
|
||||
// PREF: timeout connections if an initial response is not received in number of seconds
|
||||
//user_pref("network.http.response.timeout", 200); // default=300
|
||||
// PREF: temporary fix for upload speed 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 *
|
||||
@@ -268,9 +295,9 @@ user_pref("network.ssl_tokens_cache_capacity", 32768); // default=2048; faster S
|
||||
//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", 10); // default=60; alt=40
|
||||
//user_pref("network.predictor.preconnect-min-confidence", 20); // default=90; alt=70
|
||||
//user_pref("network.predictor.prefetch-min-confidence", 30); // default=100; alt=80
|
||||
//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
|
||||
|
||||
+45
-63
@@ -3,7 +3,7 @@
|
||||
* Peskyfox *
|
||||
* "Aquila non capit muscas" *
|
||||
* priority: remove annoyances *
|
||||
* version: 108 *
|
||||
* version: 112 *
|
||||
* url: https://github.com/yokoffing/Betterfox *
|
||||
***************************************************************************/
|
||||
|
||||
@@ -11,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
|
||||
@@ -29,34 +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: 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: 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);
|
||||
|
||||
@@ -67,6 +34,10 @@ user_pref("browser.privatebrowsing.vpnpromourl", "");
|
||||
user_pref("extensions.getAddons.showPane", false); // HIDDEN
|
||||
user_pref("extensions.htmlaboutaddons.recommendations.enabled", false);
|
||||
|
||||
// PREF: disable Firefox from asking to set as the default browser
|
||||
// [1] https://github.com/yokoffing/Betterfox/issues/166
|
||||
user_pref("browser.shell.checkDefaultBrowser", false);
|
||||
|
||||
// PREF: disable Extension Recommendations (CFR: "Contextual Feature Recommender")
|
||||
// [1] https://support.mozilla.org/en-US/kb/extension-recommendations
|
||||
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
|
||||
@@ -81,19 +52,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);
|
||||
@@ -103,7 +61,7 @@ user_pref("browser.tabs.tabmanager.enabled", false);
|
||||
// PREF: disable fullscreen delay and notice
|
||||
user_pref("full-screen-api.transition-duration.enter", "0 0");
|
||||
user_pref("full-screen-api.transition-duration.leave", "0 0");
|
||||
user_pref("full-screen-api.warning.delay", 0);
|
||||
user_pref("full-screen-api.warning.delay", -1);
|
||||
user_pref("full-screen-api.warning.timeout", 0);
|
||||
|
||||
// PREF: disable welcome notices
|
||||
@@ -120,17 +78,23 @@ 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]
|
||||
@@ -149,10 +113,10 @@ user_pref("browser.privatebrowsing.enable-new-indicator", false);
|
||||
|
||||
// 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
|
||||
// [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);
|
||||
//user_pref("cookiebanners.service.enableGlobalRules", enable);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: FONT APPEARANCE *
|
||||
@@ -163,7 +127,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 +136,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]
|
||||
@@ -302,7 +267,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);
|
||||
@@ -314,9 +279,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);
|
||||
@@ -380,7 +342,7 @@ user_pref("browser.download.open_pdf_attachments_inline", true);
|
||||
// 0 = force all new windows opened by JavaScript into tabs
|
||||
// [NOTE] Most advertising popups also open in new windows with values set
|
||||
// [1] https://kb.mozillazine.org/About:config_entries
|
||||
user_pref("browser.link.open_newwindow.restriction", 0);
|
||||
//user_pref("browser.link.open_newwindow.restriction", 0);
|
||||
|
||||
// PREF: override <browser.link.open_newwindow> for external links
|
||||
// Set if a different destination for external links is needed
|
||||
@@ -418,7 +380,7 @@ user_pref("browser.tabs.loadBookmarksInTabs", true);
|
||||
user_pref("browser.bookmarks.openInTabClosesMenu", false);
|
||||
|
||||
// PREF: Prevent scripts from moving and resizing open windows
|
||||
user_pref("dom.disable_window_move_resize", true);
|
||||
//user_pref("dom.disable_window_move_resize", true);
|
||||
|
||||
// PREF: insert new tabs after groups like it
|
||||
// true(default) = open new tabs to the right of the parent tab
|
||||
@@ -445,7 +407,7 @@ user_pref("dom.disable_window_move_resize", true);
|
||||
// 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
|
||||
|
||||
@@ -515,7 +477,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
|
||||
@@ -534,3 +496,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,72 +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 essentials. 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-by-Default](https://blog.mozilla.org/security/2021/08/10/firefox-91-introduces-https-by-default-in-private-browsing/). [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/en/guides/prologue/threatmodel/) 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). :warning: If you have no other form of protection, then please enable GSB!
|
||||
* Firefox **Accessibility Service** is disabled to improve resource utilization and security. This will impact external application autofill capability (the ability to use a keyboard shortcut to fill in forms including logins) and screen readers. If you use assistive software, override this.
|
||||
* 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 enable Firefox's password management.
|
||||
* **Embedded tweets, instagram, reddit posts, and tiktoks** 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).
|
||||
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.
|
||||
* 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.
|
||||
* [Fingerprinting](https://smartframe.io/blog/browser-fingerprinting-everything-you-need-to-know/) is a high [threat model](https://thenewoil.org/threatmodel.html) issue and is only addressed reasonably by TOR.<sup>[1](https://youtu.be/5NrbdO4yWek?t=4334)</sup> If your threat level calls for _anonymity_ and not just reasonable _privacy_, then please use the [TOR browser](https://www.torproject.org).
|
||||
* **Location requests** are rejected and **site notifications** are disabled.
|
||||
|
||||
## Mentions
|
||||
### Suggestions
|
||||
* 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:
|
||||
1) Go to *Settings → Privacy & Security → Cookies and Site Data → Manage Exceptions*
|
||||
2) Check *Delete cookies and site data when Firefox is closed*.
|
||||
* 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.
|
||||
* 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)
|
||||
[5](https://www.troddit.com/r/firefox/comments/z5auzi/firefox_not_properly_usingrecognizing_gpu_poor/iy0kru3)
|
||||
[6](https://www.troddit.com/r/firefox/comments/z5auzi/firefox_not_properly_usingrecognizing_gpu_poor/iy36hyz)
|
||||
## 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://old.reddit.com/r/firefox/comments/z5auzi/firefox_not_properly_usingrecognizing_gpu_poor/iy0kru3)
|
||||
[4](https://old.reddit.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)
|
||||
[9](https://old.reddit.com/r/firefox/comments/115va7d/list_of_aboutconfiguserjs_privacy_tweaks/j9700bc/?context=2)
|
||||
[10](https://old.reddit.com/r/browsers/comments/11q6je7/is_block_or_snoof_browser_fingerprint_better/jc2mhcx/?context=2)
|
||||
|
||||
#### Browser Integration
|
||||
* [Pulse Browser](https://github.com/pulse-browser/browser#%EF%B8%8F-credits) (Dec 2021) | [files](https://github.com/pulse-browser/browser/tree/alpha/src/browser/app/profile)
|
||||
* [Ghostery Dawn](https://github.com/ghostery/user-agent-desktop#community) (Feb 2021) | [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/)<sup>[1](https://web.archive.org/web/20210921114333/https://www.ghostery.com/ghostery-dawn-product-update/)</sup>
|
||||
### 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 Private Browser](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 Private Browser](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
|
||||
### YouTube
|
||||
* [Firefox is NOT private. Here's how to fix it.](https://youtu.be/Fr8UFJzpNls) (Mar 2023)
|
||||
* [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)
|
||||
|
||||
### Articles
|
||||
* [2023 Browser Showdown: Comparing Chrome, Brave, Firefox, Vivaldi, and Opera – Is it Worth the Switch?](https://www.appdate.lk/technology/2023-browser-showdown/)
|
||||
|
||||
### 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
|
||||
* [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)
|
||||
### Contributions
|
||||
* [Ghostery Private Browser](https://github.com/ghostery/user-agent-desktop/issues?q=is%3Apr+is%3Aissue+author%3Ayokoffing+)
|
||||
* [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.
|
||||
|
||||
|
||||
## 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:
|
||||
|
||||
<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)
|
||||
* 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://builtin.com/software-engineering-perspectives/open-web).
|
||||
* 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`.
|
||||
|
||||
<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>
|
||||
|
||||
+181
-109
@@ -3,7 +3,7 @@
|
||||
* Securefox *
|
||||
* "Natura non constristatur" *
|
||||
* priority: provide sensible security and privacy *
|
||||
* version: 108 *
|
||||
* version: 112 *
|
||||
* url: https://github.com/yokoffing/Betterfox *
|
||||
****************************************************************************/
|
||||
|
||||
@@ -26,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
|
||||
@@ -34,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/
|
||||
@@ -55,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
|
||||
@@ -96,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
|
||||
@@ -120,23 +129,13 @@ user_pref("privacy.partition.always_partition_third_party_non_cookie_storage.exe
|
||||
// [2] https://web.dev/samesite-cookies-explained/
|
||||
//user_pref("network.cookie.sameSite.laxByDefault", true);
|
||||
//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);
|
||||
//user_pref("network.cookie.sameSite.schemeful", 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/
|
||||
// [1] https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon
|
||||
// [2] https://github.com/arkenfox/user.js/issues/1586
|
||||
@@ -147,20 +146,26 @@ user_pref("privacy.partition.always_partition_third_party_non_cookie_storage.exe
|
||||
// [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]
|
||||
// [TEST] https://global-privacy-control.glitch.me/
|
||||
// [1] https://globalprivacycontrol.org/press-release/20201007.html
|
||||
// [2] https://github.com/arkenfox/user.js/issues/1542#issuecomment-1279823954
|
||||
// [3] https://blog.mozilla.org/netpolicy/2021/10/28/implementing-global-privacy-control/
|
||||
// [4] https://help.duckduckgo.com/duckduckgo-help-pages/privacy/gpc/
|
||||
// [5] https://brave.com/web-standards-at-brave/4-global-privacy-control/
|
||||
// [6] https://www.eff.org/gpc-privacy-badger
|
||||
// [7] https://www.eff.org/issues/do-not-track
|
||||
user_pref("privacy.globalprivacycontrol.enabled", true);
|
||||
user_pref("privacy.globalprivacycontrol.functionality.enabled", true);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: OSCP & CERTS / HPKP (HTTP Public Key Pinning) *
|
||||
@@ -214,9 +219,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);
|
||||
|
||||
@@ -307,7 +313,7 @@ user_pref("security.tls.enable_0rtt_data", false); // disable 0 RTT to improve t
|
||||
// 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]
|
||||
@@ -315,7 +321,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]
|
||||
@@ -329,9 +335,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);
|
||||
|
||||
@@ -355,7 +358,8 @@ user_pref("browser.sessionstore.privacy_level", 2);
|
||||
//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
|
||||
@@ -478,7 +482,7 @@ user_pref("browser.places.speculativeConnect.enabled", false);
|
||||
// [3] https://www.keycdn.com/blog/resource-hints#2-dns-prefetching
|
||||
// [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); // enforce DEFAULT
|
||||
//user_pref("network.dns.disablePrefetchFromHTTPS", true); // DEFAULT
|
||||
|
||||
// PREF: Preload <link rel=preload>
|
||||
// This tells the browser that the resource should be loaded as part of the current navigation
|
||||
@@ -552,6 +556,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);
|
||||
@@ -582,6 +590,7 @@ 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);
|
||||
// hide Firefox Suggest label in URL dropdown box
|
||||
//user_pref("browser.urlbar.groupLabels.enabled", false);
|
||||
|
||||
// PREF: URL bar domain guessing
|
||||
@@ -594,9 +603,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
|
||||
@@ -623,10 +632,13 @@ 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=1704453
|
||||
// [2] https://web.dev/why-https-matters/
|
||||
// [3] https://www.cloudflare.com/learning/ssl/why-use-https/
|
||||
//user_pref("dom.security.https_first", true);
|
||||
// [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
|
||||
|
||||
/******************************************************************************
|
||||
@@ -646,11 +658,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],
|
||||
@@ -662,10 +675,10 @@ user_pref("dom.security.https_only_mode_error_page_user_suggestions", true);
|
||||
// [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", 2000); // 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 *
|
||||
@@ -676,21 +689,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);
|
||||
@@ -700,26 +728,19 @@ 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.http3_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);
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: PROXY / SOCKS / IPv6 *
|
||||
******************************************************************************/
|
||||
@@ -822,9 +843,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; DEFAULT FF112
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: ADDRESS + CREDIT CARD MANAGER *
|
||||
@@ -952,15 +973,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);
|
||||
|
||||
@@ -990,10 +1012,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);
|
||||
@@ -1017,73 +1040,106 @@ 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 GSB!
|
||||
// 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
|
||||
// [ALTERNATIVE] Enable local checks only: https://github.com/yokoffing/Betterfox/issues/87
|
||||
// [1] https://github.com/privacyguides/privacyguides.org/discussions/423#discussioncomment-1752006
|
||||
// [2] https://github.com/privacyguides/privacyguides.org/discussions/423#discussioncomment-1767546
|
||||
// [3] https://ashkansoltani.org/2012/02/25/cookies-from-nowhere
|
||||
// [4] https://blog.cryptographyengineering.com/2019/10/13/dear-apple-safe-browsing-might-not-be-that-safe/
|
||||
// [5] https://the8-bit.com/apple-proxies-google-safe-browsing-privacy/
|
||||
// [6] 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);
|
||||
user_pref("browser.safebrowsing.phishing.enabled", false);
|
||||
// [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
|
||||
// [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.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
|
||||
@@ -1118,20 +1174,34 @@ user_pref("geo.provider.use_geoclue", false); // [FF102+] [LINUX]
|
||||
// [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 *
|
||||
******************************************************************************/
|
||||
@@ -1195,6 +1265,8 @@ user_pref("network.captive-portal-service.enabled", false);
|
||||
user_pref("network.connectivity-service.enabled", false);
|
||||
|
||||
// PREF: software that continually reports what default browser you are using
|
||||
// [WARNING] Breaks "Make Default..." button in Preferences to set Firefox as the default browser [1].
|
||||
// [1] https://github.com/yokoffing/Betterfox/issues/166
|
||||
user_pref("default-browser-agent.enabled", false);
|
||||
|
||||
// PREF: "report extensions for abuse"
|
||||
|
||||
+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
|
||||
|
||||
+77
-62
@@ -16,27 +16,54 @@
|
||||
/** 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", 50000); // 5 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.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.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
|
||||
// HTTPS-First instead of HTTPS-only
|
||||
user_pref("dom.security.https_only_mode", false); // disable in user.js
|
||||
user_pref("dom.security.https_first", true); // HTTPS-First instead of HTTPS-only
|
||||
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
|
||||
@@ -53,7 +80,7 @@ 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
|
||||
@@ -62,72 +89,60 @@ user_pref("pdfjs.sidebarViewOnLoad", 2); // [HIDDEN] force showing of Table of C
|
||||
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("extensions.unifiedExtensions.enabled", false); // disable MV3 unified extensions button [FF 109+]
|
||||
//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.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
|
||||
user_pref("gfx.webrender.compositor.force-enabled", true); // reinforce
|
||||
user_pref("layers.gpu-process.force-enabled", true); // reinforce
|
||||
user_pref("media.hardware-video-decoding.force-enabled", true); // reinforce
|
||||
user_pref("network.http.http3.enable", false); // disable QUIC for faster upload speeds
|
||||
user_pref("media.av1.enabled", false); // disable AV1 to force video hardware decoding
|
||||
user_pref("network.http.speculative-parallel-limit", 18);
|
||||
//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);
|
||||
|
||||
/** 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("javascript.options.experimental.array_grouping", true);
|
||||
//user_pref("javascript.options.experimental.enable_change_array_by_copy", 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("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.userContext.enabled", false); // disable Containers functionality
|
||||
user_pref("browser.crashReports.unsubmittedCheck.enabled", false); // true by default on NIGHTLY
|
||||
user_pref("browser.urlbar.suggest.quickactions", false);
|
||||
//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("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", 5242880);
|
||||
user_pref("browser.cache.memory.max_entry_size", 327680);
|
||||
user_pref("media.memory_caches_combined_limit_pc_sysmem", 40);
|
||||
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 ***/
|
||||
/** 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,51 @@
|
||||
/****************************************************************************
|
||||
* Betterfox *
|
||||
* "Ad meliora" *
|
||||
* version: 108 *
|
||||
* version: 112 *
|
||||
* 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.http.max-connections", 1800);
|
||||
user_pref("network.http.max-persistent-connections-per-server", 10);
|
||||
user_pref("network.ssl_tokens_cache_capacity", 32768);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: SECUREFOX *
|
||||
****************************************************************************/
|
||||
@@ -22,9 +63,10 @@ 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("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);
|
||||
user_pref("privacy.globalprivacycontrol.enabled", true);
|
||||
user_pref("privacy.globalprivacycontrol.functionality.enabled", true);
|
||||
|
||||
/** OCSP & CERTS / HPKP ***/
|
||||
user_pref("security.OCSP.enabled", 0);
|
||||
@@ -37,15 +79,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);
|
||||
|
||||
/** 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.pagethumbnails.capturing_disabled", true);
|
||||
|
||||
/** SHUTDOWN & SANITIZING ***/
|
||||
user_pref("privacy.history.custom", true);
|
||||
@@ -53,7 +90,6 @@ user_pref("privacy.history.custom", true);
|
||||
/** SPECULATIVE CONNECTIONS ***/
|
||||
user_pref("network.http.speculative-parallel-limit", 0);
|
||||
user_pref("network.dns.disablePrefetch", true);
|
||||
user_pref("network.dns.disablePrefetchFromHTTPS", true);
|
||||
user_pref("browser.urlbar.speculativeConnect.enabled", false);
|
||||
user_pref("browser.places.speculativeConnect.enabled", false);
|
||||
user_pref("network.prefetch-next", false);
|
||||
@@ -66,14 +102,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);
|
||||
@@ -109,18 +143,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%");
|
||||
@@ -167,7 +196,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);
|
||||
@@ -185,7 +213,7 @@ user_pref("browser.privatebrowsing.enable-new-indicator", false);
|
||||
/** FULLSCREEN ***/
|
||||
user_pref("full-screen-api.transition-duration.enter", "0 0");
|
||||
user_pref("full-screen-api.transition-duration.leave", "0 0");
|
||||
user_pref("full-screen-api.warning.delay", 0);
|
||||
user_pref("full-screen-api.warning.delay", -1);
|
||||
user_pref("full-screen-api.warning.timeout", 0);
|
||||
|
||||
/** URL BAR ***/
|
||||
@@ -211,61 +239,14 @@ user_pref("browser.download.always_ask_before_handling_new_types", true);
|
||||
user_pref("browser.download.open_pdf_attachments_inline", true);
|
||||
|
||||
/** TAB BEHAVIOR ***/
|
||||
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("layout.css.has-selector.enabled", true);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: FASTFOX *
|
||||
****************************************************************************/
|
||||
user_pref("nglayout.initialpaint.delay", 0);
|
||||
user_pref("nglayout.initialpaint.delay_in_oopif", 0);
|
||||
user_pref("content.notify.interval", 360000);
|
||||
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);
|
||||
|
||||
/** 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.capacity", -1);
|
||||
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.dnsCacheEntries", 20000);
|
||||
user_pref("network.dnsCacheExpiration", 3600);
|
||||
user_pref("network.dnsCacheExpirationGracePeriod", 240);
|
||||
user_pref("network.ssl_tokens_cache_capacity", 32768);
|
||||
|
||||
/****************************************************************************
|
||||
* 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