Last active
March 20, 2024 14:00
-
-
Save powerman/b90f3a63fa2f3583d3e89b2468f95388 to your computer and use it in GitHub Desktop.
user-overrides.js for use with https://github.com/ghacksuserjs/ghacks-user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** MY OVERRIDES ***/ | |
user_pref("_user.js.parrot", "overrides section syntax error"); | |
/* [UX,-HIST] Restore previous session after Firefox restart. */ | |
user_pref("browser.startup.page", 3); // 0102 | |
/* [UX,-GEO] Allow websites to detect my locale. */ | |
user_pref("intl.accept_languages", "ru,en-us,en"); // 0210 | |
user_pref("javascript.use_us_english_locale", false); // 0211 | |
/* [DEV,PERF,-FP] Wanna play with HTTP/2. */ | |
user_pref("network.http.altsvc.enabled", true); // 0703 | |
user_pref("network.http.altsvc.oe", true); // 0703 | |
/* [DEV] Avoid /etc/hosts & local DNS breakage when using SOCKS proxy. */ | |
user_pref("network.proxy.socks_remote_dns", false); // 0704 | |
/* [UX] Wanna search DuckDuckGo from location bar. */ | |
user_pref("keyword.enabled", true); // 0801 | |
/* [UX,-HIST] Enable search and form history. */ | |
user_pref("browser.formfill.enable", true); // 0860 | |
/* [SECURITY] Disable saving passwords. */ | |
user_pref("signon.rememberSignons", false); // 0901 | |
/* [PERF,-FP] Use cache. | |
* Use ETag Stoppa extension to block at least ETag. */ | |
user_pref("browser.cache.disk.enable", true); // 1001 | |
/* [UX,-HIST] Remember more closed tabs for undo. */ | |
user_pref("browser.sessionstore.max_tabs_undo", 25); // 1020 | |
/* [UX,-HIST] Restore all state for closed tab or previous session after Firefox restart. */ | |
user_pref("browser.sessionstore.privacy_level", 0); // 1021 | |
user_pref("browser.sessionstore.interval", 15000); // 1023 | |
/* [UX] Enable favicons in web notifications. */ | |
user_pref("alerts.showFavicons", true); // 1032 | |
/* [PERF,-FP] Use SSL sessions. */ | |
user_pref("security.ssl.disable_session_identifiers", false); // 1204 | |
/* [UX,-SECURITY] Ignore OCSP fetch failures. */ | |
user_pref("security.OCSP.require", false); // 1212 | |
/* [UX] Enable insecure passive content (such as images) on https pages. | |
* Use uMatrix to disable it globally and then enable on per-site basis. */ | |
user_pref("security.mixed_content.block_display_content", false); // 1241 | |
/* [UX] Speedup detection of HTTP-only websites. */ | |
user_pref("dom.security.https_only_mode_send_http_background_request", true); // 1246 | |
/* [SECURITY,-FP] Disable weak ciphers. */ | |
user_pref("security.ssl3.rsa_des_ede3_sha", false); // 1261 | |
user_pref("security.ssl3.ecdhe_ecdsa_aes_256_sha", false); // 1264 | |
user_pref("security.ssl3.ecdhe_ecdsa_aes_128_sha", false); // 1264 | |
user_pref("security.ssl3.ecdhe_rsa_aes_128_sha", false); // 1264 | |
user_pref("security.ssl3.ecdhe_rsa_aes_256_sha", false); // 1264 | |
user_pref("security.ssl3.rsa_aes_128_sha", false); // 1264 | |
user_pref("security.ssl3.rsa_aes_256_sha", false); // 1264 | |
/* [-TRACKING] Always send CROSS ORIGIN referer. | |
* Required for Atlassian JIRA cloud. */ | |
user_pref("network.http.referer.XOriginPolicy", 0); // 1603 | |
/* [UX,-FP] Enable WebRTC. */ | |
user_pref("media.peerconnection.enabled", true); // 2001 | |
/* [UX,-SECURITY,-FP] Enable WebGL. | |
* Required for street view feature on Yandex maps. | |
* Enable MANUALLY when needed! */ | |
// user_pref("webgl.disabled", false); // 2010 | |
user_pref("webgl.min_capability_mode", false); // 2012 | |
/* [UX] Enable auto-play of HTML5 media. */ | |
//user_pref("media.autoplay.default", 0); // 2030 | |
/* [UX,-SECURITY] Allow workers. | |
* NOTE: Set here your current about:config value for dom.push.userAgentID! | |
* May use uMatrix to disable globally & enable per-site (against miners/Meltdown/Spectre). */ | |
user_pref("dom.serviceWorkers.enabled", true); // 2302 | |
user_pref("dom.push.enabled", true); // 2305 | |
/* [±UX] Enable website access to clipboard events/content. | |
* Slack needs dom.allow_cut_copy for copying link to message. | |
* May need this to avoid website breakage (like on paste rich text or custom copy). */ | |
user_pref("dom.allow_cut_copy", true); // 2404 | |
/* [UX,PERF,-SECURITY] Enable asm.js and WebAssembly. | |
* May need this to avoid website breakage and/or improve performance. | |
* - Taxer.ua require wasm to handle "electronic digital signature". */ | |
// user_pref("javascript.options.asmjs", true); // 2420 | |
user_pref("javascript.options.wasm", true); // 2422 | |
/* [UX,-FP] Block only third-party trackers. | |
* Allow to store third-party secure cookies. | |
* Use uMatrix to accept/block cookies. */ | |
user_pref("network.cookie.cookieBehavior", 4); // 2701 | |
user_pref("network.cookie.thirdparty.sessionOnly", false); // 2702 | |
/* [UX,-HIST] Disable Firefox to clear items on shutdown. */ | |
user_pref("privacy.sanitize.sanitizeOnShutdown", false); // 2802 | |
/* [UX,-SECURITY] Disable First Party Isolation. | |
* Required for Atlassian JIRA cloud. | |
* May need one of these (try 4002 first) to avoid website breakage. */ | |
user_pref("privacy.firstparty.isolate", false); // 4001 | |
// user_pref("privacy.firstparty.isolate.restrict_opener_access", false); // 4002 | |
/* [UX,-FP] Disable resist fingerprinting. | |
* Required for compatibility with Gesturefy-2.x extension. | |
* AMO thinks I'm using FF 60.0 (ESR) and don't allow to install newer extensions. | |
* May need this to avoid website breakage. */ | |
user_pref("privacy.resistFingerprinting", false); // 4501 | |
/* [UX,-FP] Enable mozAddonManager Web API. | |
* Required to let AMO see installed extensions and let you add a review. */ | |
user_pref("privacy.resistFingerprinting.block_mozAddonManager", false); // 4503 | |
/* [UX,-FP] Disable RFP letterboxing. */ | |
user_pref("privacy.resistFingerprinting.letterboxing", false); // 4504 | |
/* [FP] Enable some alternatives to resist fingerprinting. | |
* Require dom performance for LinkedIn. | |
* Require site-specific zoom for UX. | |
* Require pointer events for Gesturefy extension. | |
* Wanna use all available fonts. */ | |
user_pref("dom.enable_resource_timing", false); // 4602 | |
// user_pref("dom.enable_performance", false); // 4603 | |
// user_pref("browser.zoom.siteSpecific", false); // 4605 | |
user_pref("dom.netinfo.enabled", false); // 4607 | |
user_pref("media.webspeech.synth.enabled", false); // 4608 | |
user_pref("media.video_stats.enabled", false); // 4610 | |
user_pref("media.ondevicechange.enabled", false); // 4612 | |
user_pref("webgl.enable-debug-renderer-info", false); // 4613 | |
user_pref("ui.prefersReducedMotion", 0); // 4614 | |
// user_pref("dom.w3c_pointer_events.enabled", false); // 4615 | |
user_pref("ui.use_standins_for_native_colors", true); // 4616 | |
// user_pref("layout.css.font-visibility.level", 1); // 4618 | |
/*** CUSTOM CHANGES not related to using/fixing ghacks user.js ***/ | |
user_pref("_user.js.parrot", "custom section syntax error"); | |
/* [UX] Keep about 15 tabs visible at once (favicon plus 3-4 characters of title). */ | |
user_pref("browser.tabs.tabMinWidth", 85); | |
/* [UX] Zoom devtools to 140%. */ | |
user_pref("devtools.toolbox.zoomValue", "1.4"); | |
/* [UX] Both multi-line & single-line spell check. */ | |
user_pref("layout.spellcheckDefault", 2); // 0=none, 1-multi-line, 2=multi-line & single-line | |
/* [UX] Disable backspace navigate to previous page. */ | |
user_pref("browser.backspace_action", 2); // 0=previous page, 1=scroll up, 2=do nothing | |
/* [UX] Copy non-ASCII URI from location bar. */ | |
user_pref("browser.urlbar.decodeURLsOnCopy", true); | |
/* [UX] Disable Alt key toggling the menu bar. */ | |
user_pref("ui.key.menuAccessKey", 0); // 18=Alt | |
/* Disable CFR (Contextual Feature Recommender). */ | |
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr", false); | |
/* Disable and hide Firefox Accounts and Sync. */ | |
user_pref("identity.fxaccounts.enabled", false); | |
/* [UX] Disable site specific zoom (required for plugin Zoom Page WE). */ | |
user_pref("browser.zoom.siteSpecific", false); | |
user_pref("_user.js.parrot", "SUCCESS"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before using this
user-overrides.js
I recommend you to find current value ofdom.push.userAgentID
atabout:config
and copy it into this file.