Skip to content

Commit

Permalink
overrides 110 (#144)
Browse files Browse the repository at this point in the history
* WebGPU

* add font gamma

* comment out gamma

* change browser.sessionstore.interval

* change TRR mode for macbook

* Translation [testing]

* remove unused translations options

* network.trr.disable-ECS

* Animated AVIF

* comment out WebGPU (sandboxed?)

* comment out JPEG XL

* wording

* remove HTTPS-only/first

* signon.rememberSignons

* comment out some nightly prefs

* Update user-overrides.js

* enable browser.tabs.loadInBackground

* add minor notes
  • Loading branch information
yokoffing authored Feb 21, 2023
1 parent 5228abe commit 02abccc
Showing 1 changed file with 28 additions and 23 deletions.
51 changes: 28 additions & 23 deletions user-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
/** SETUP ON FIRST INSTALLATION ***/
// Select one:
user_pref("network.trr.uri", "https://dns.nextdns.io/******/Firefox"); // DoH - NextDNS
user_pref("https://dns.controld.com/**********/firefox"); // DoH - ControlD
user_pref("https://dns.controld.com/******"); // DoH - ControlD

/** 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("browser.sessionstore.interval", 150000); // 15 min.; set minimum interval between session save operations
user_pref("gfx.webrender.compositor.force-enabled", true); // enforce
user_pref("layers.gpu-process.force-enabled", true); // enforce
user_pref("media.hardware-video-decoding.force-enabled", true); // enforce
user_pref("network.http.http3.enable", true); // disable QUIC for faster upload speeds RESET PREF
user_pref("media.av1.enabled", false); // disable AV1 to force video hardware decoding
user_pref("network.http.max-connections", 1800); // default=900
user_pref("network.http.max-persistent-connections-per-server", 9); // default=6; download connections; anything above 10 is excessive
Expand All @@ -43,7 +42,7 @@ 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", 40);
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);
Expand All @@ -52,23 +51,21 @@ user_pref("network.predictor.enable-hover-on-ssl", true);
/** 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); // Site Data
user_pref("browser.safebrowsing.downloads.enabled", false); // allow SB to scan your downloads to identify suspicious files; local checks only
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
Expand All @@ -94,11 +91,9 @@ 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("browser.tabs.loadInBackground", false); // CTRL+SHIFT+CLICK for background tabs; Settings>General>Tabs>"When you open a link, image or media in a new tab, switch to it immediately"
user_pref("media.videocontrols.picture-in-picture.improved-video-controls.enabled", true); // PiP
user_pref("media.videocontrols.picture-in-picture.display-text-tracks.size", "small"); // PiP
user_pref("image.jxl.enabled", true); // JPEG XL
user_pref("extensions.unifiedExtensions.enabled", false); // disable MV3 unified extensions button [FF 109+]
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
Expand All @@ -107,24 +102,32 @@ user_pref("reader.parse-on-load.enabled", false); // disable reader mode
//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("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
user_pref("cookiebanners.service.mode.privateBrowsing", 2); // block cookie banners natively in PB mode
user_pref("privacy.globalprivacycontrol.enabled", true); // enable GPC
user_pref("privacy.globalprivacycontrol.functionality.enabled", true); // enable GPC
user_pref("privacy.userContext.enabled", false); // disable Containers
user_pref("browser.crashReports.unsubmittedCheck.enabled", false); // true by default on NIGHTLY
user_pref("network.dns.echconfig.enabled", false); // true by default on NIGHTLY
//user_pref("browser.urlbar.suggest.quickactions", false); // Quick Actions in URL bar
//user_pref("xpinstall.signatures.required", false); // [ESR/DEV/NIGHTLY]
// 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 ***/
/** 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
Expand All @@ -133,6 +136,7 @@ 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", 2097152); // fixed maximum 2 GB in memory cache
user_pref("browser.cache.memory.max_entry_size", 327680); // maximum size of in memory cached objects
Expand All @@ -142,7 +146,8 @@ user_pref("media.memory_caches_combined_limit_kb", 3145728);
//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

0 comments on commit 02abccc

Please sign in to comment.