Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
user-overrides.js for use with https://github.com/ghacksuserjs/ghacks-user.js
/*** 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.locale.requested", ""); // 0205
user_pref("intl.accept_languages", "ru,en-us,en"); // 0207
user_pref("javascript.use_us_english_locale", false); // 0208
/* Prefer extension auto-update over manual update. */
// user_pref("extensions.update.autoUpdateDefault", true); // 0302b
/* [DEV,PERF,-FP] Wanna play with HTTP/2. */
user_pref("network.http.spdy.enabled", true); // 0702
user_pref("network.http.spdy.enabled.deps", true); // 0702
user_pref("network.http.spdy.enabled.http2", true); // 0702
user_pref("network.http.spdy.websockets", true); // 0702
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,-FP] Wanna see visited links. */
user_pref("layout.css.visited_links_enabled", true); // 0805
/* [UX,-HIST] Enable search and form history. */
user_pref("browser.formfill.enable", true); // 0860
/* [UX,-GEO] Allow websites to use date/time picker. */
user_pref("dom.forms.datetime", true); // 0864
/* [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
user_pref("browser.cache.disk.capacity", 1048576); // 1001
user_pref("browser.cache.disk.smart_size.enabled", true); // 1001
user_pref("browser.cache.disk_cache_ssl", true); // 1002
/* [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
/* [SECURITY,-UX] Will break websites without TLS 1.2 support. */
user_pref("security.tls.version.min", 3); // 1202
/* [PERF,-FP] Use SSL sessions. */
user_pref("security.ssl.disable_session_identifiers", false); // 1203
/* [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
/* [SECURITY,-FP] Disable weak ciphers. */
user_pref("security.ssl3.rsa_des_ede3_sha", false); // 1261
user_pref("security.ssl3.ecdhe_ecdsa_aes_128_sha", false); // 1262
user_pref("security.ssl3.ecdhe_rsa_aes_128_sha", false); // 1262
user_pref("security.ssl3.dhe_rsa_aes_128_sha", false); // 1263
user_pref("security.ssl3.dhe_rsa_aes_256_sha", false); // 1263
/* [UX,-FP] Enable websites choosing/loading fonts. */
user_pref("browser.display.use_document_fonts", 1); // 1401
user_pref("gfx.downloadable_fonts.woff2.enabled", true); // 1405
user_pref("layout.css.font-loading-api.enabled", true); // 1406
/* [-TRACKING] Always send CROSS ORIGIN referer.
* Required for Atlassian JIRA cloud. */
user_pref("network.http.referer.XOriginPolicy", 0); // 1603
/* [UX] Enable the OpenH264 Video Codec by Cisco for video chat in WebRTC. */
user_pref("media.gmp-gmpopenh264.enabled", true); // 1840
/* [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); // 2010
/* [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.webnotifications.enabled", true); // 2304
user_pref("dom.webnotifications.serviceworker.enabled", true); // 2304
user_pref("dom.push.enabled", true); // 2306
user_pref("dom.push.connection.enabled", true); // 2306
user_pref("dom.push.serverURL", "wss://push.services.mozilla.com/"); // 2306
user_pref("dom.push.userAgentID", ""); // 2306
/* [±UX] Enable website access to clipboard events/content.
* May need this to avoid website breakage (like on paste rich text or custom copy). */
// user_pref("dom.event.clipboardevents.enabled", true); // 2402
// user_pref("dom.allow_cut_copy", true); // 2403
/* [UX,PERF,-SECURITY] Enable asm.js and WebAssembly.
* May need this to avoid website breakage and/or improve performance. */
// user_pref("javascript.options.asmjs", true); // 2420
// user_pref("javascript.options.wasm", true); // 2421
/* [PERF,-FP] Enable hardware acceleration.
* May need this to improve performance. */
// user_pref("layers.acceleration.disabled", false); // 2508
/* [UX] Enable "open with" in download dialog. */
user_pref("browser.download.forbid_open_with", false); // 2654
/* [UX] Enable application-scope extensions.
* Required to use Russian language pack installed system-wide. */
user_pref("extensions.enabledScopes", 5); // 2660
/* [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
/* [FP] Enable some alternatives to resist fingerprinting.
* Require site-specific zoom for UX.
* Require pointer events for Gesturefy extension. */
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("dom.w3c_pointer_events.enabled", false); // 4614
/* [UX,-FP] Enable site specific zoom disabled by resistFingerprinting. */
user_pref("browser.zoom.siteSpecific", true); // 4605
/*** 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);
/* Disable warning on about:config after running ./prefCleaner.sh. */
user_pref("general.warnOnAboutConfig", false);
user_pref("_user.js.parrot", "SUCCESS");
@powerman

This comment has been minimized.

Copy link
Owner Author

powerman commented Mar 24, 2019

Before using this user-overrides.js I recommend you to find current value of dom.push.userAgentID at about:config and copy it into this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.