mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-12 15:40:48 +05:30
fixed mis-categorizations
This commit is contained in:
+297
-107
@@ -1,33 +1,247 @@
|
||||
/******
|
||||
//
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
* name: SecureFox
|
||||
* description: Immensely increase FF's security and privacy. Should not cause breakage.
|
||||
* date: 24 March 2020
|
||||
* version 74
|
||||
* author: hjs
|
||||
* url: https://github.com/hjstephens09/Better-Fox
|
||||
* license: MIT: https://github.com/hjstephens09/Better-Fox/blob/master/LICENSE
|
||||
/****************************************************************************
|
||||
* SecureFox *
|
||||
* "Natura non constristatur." *
|
||||
* priority: increase security and privacy without causing site breakage *
|
||||
* version: 31 March 2020 *
|
||||
* url: https://github.com/yokoffing/Better-Fox *
|
||||
****************************************************************************/
|
||||
|
||||
******/
|
||||
/****************************************************************************
|
||||
* SECTION: TRACKING PROTECTION *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: Enable complete Tracking Protection in Private Browsing mode
|
||||
user_pref("privacy.trackingprotection.pbmode.enabled", true);
|
||||
|
||||
// Block third-party cookies
|
||||
/* I recommended you block all third-party cookies as it is essential for ad companies to not track you.
|
||||
* Blocking all third-party cookies greatly enhances your privacy! Firefox only filters some of these by default.
|
||||
* [NOTE] I have set this to 3 for now since some site features will not function properly without third-party cookies.
|
||||
* Change to 1 if you're okay encountering some minor breakage.
|
||||
* 1=disable third-party cookies, 3=blocks from unvisited websites, 4=block cross site and social media trackers (default) ***/
|
||||
user_pref("network.cookie.cookieBehavior", 3);
|
||||
// PREF: Disable Tracking Protection for regular windows
|
||||
// ALTERNATIVE: Allow uBlock Origin protect against social tracking instead.
|
||||
// There is no exception with Firefox's Tracking Protection to allow certain
|
||||
// content (i.e. Twitter's embedded tweets on articles).
|
||||
// user_pref("privacy.trackingprotection.enabled", false);
|
||||
// user_pref("privacy.trackingprotection.socialtracking.enabled", false);
|
||||
|
||||
// PREF: Regardless, Firefox will continue to block cryptominers, fingerprinters, etc.
|
||||
user_pref("privacy.socialtracking.block_cookies.enabled", true);
|
||||
user_pref("privacy.trackingprotection.cryptomining.enabled", true);
|
||||
user_pref("privacy.trackingprotection.fingerprinting.enabled", true);
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: COOKIES / CACHE *
|
||||
******************************************************************************/
|
||||
|
||||
// PREF: Third-party cookies
|
||||
// I recommended you block all third-party cookies as it is essential for ad
|
||||
// companies, Google, random websites, etc. to not track you. If you're uncomfortable
|
||||
// with providing exceptions or encountering rare site issues, alter this value.
|
||||
// 1=disable third-party cookies, 3=blocks from unvisited websites,
|
||||
// 4=block cross site and social media trackers (default)
|
||||
user_pref("network.cookie.cookieBehavior", 1);
|
||||
user_pref("pref.privacy.disable_button.cookie_exceptions", false);
|
||||
/* Regardless, we will limit third-party cookies even when they are allowed ***/
|
||||
|
||||
// PREF: Limit third-party cookies to the current session even when they are allowed
|
||||
user_pref("network.cookie.thirdparty.sessionOnly", true);
|
||||
user_pref("network.cookie.thirdparty.nonsecureSessionOnly", true);
|
||||
|
||||
/*** GOOGLE SAFE BROWSING ***/
|
||||
// [WARNING] Do this at your own risk! Increased privacy from Google, but less protection against threats.
|
||||
// In disabling this, please have an alternative to phishing and malware protection!
|
||||
// [1] https://www.wikiwand.com/en/Google_Safe_Browsing#/Privacy
|
||||
// [2] https://ashkansoltani.org/2012/02/25/cookies-from-nowhere
|
||||
// PREF: Delete all cookies after a certain period of time
|
||||
// Alternative: use a cookie manager extension
|
||||
// user_pref("network.cookie.lifetimePolicy", 3);
|
||||
// user_pref("network.cookie.lifetime.days", 5);
|
||||
|
||||
// PREF: Disable offline cache to limit tracking
|
||||
user_pref("browser.cache.offline.enable", false);
|
||||
|
||||
// PREF: Disable all speculative connections
|
||||
// Prefetching causes cookies from the prefetched site to be loaded and other potentially unwanted behavior.
|
||||
// [1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Link_prefetching_FAQ
|
||||
// [2] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control
|
||||
user_pref("network.dns.disablePrefetch", true);
|
||||
user_pref("network.dns.disablePrefetchFromHTTPS", true);
|
||||
user_pref("network.prefetch-next", false);
|
||||
user_pref("network.predictor.enabled", false);
|
||||
user_pref("network.predictor.enable-prefetch", false);
|
||||
user_pref("browser.urlbar.speculativeConnect.enabled", false);
|
||||
user_pref("browser.urlbar.usepreloadedtopurls.enabled", false);
|
||||
user_pref("network.http.speculative-parallel-limit", 0);
|
||||
user_pref("browser.newtab.preload", false);
|
||||
|
||||
// PREF: Disable "Hyperlink Auditing" (click tracking) and enforce same host in case
|
||||
user_pref("browser.send_pings", false);
|
||||
user_pref("browser.send_pings.require_same_host", true);
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: SEARCH / URL BAR *
|
||||
******************************************************************************/
|
||||
|
||||
// PREF: Enable a seperate search engine for Private Windows
|
||||
// Remember to go into Preferences -> Search and select another search provider (like DuckDuckGo)
|
||||
user_pref("browser.search.separatePrivateDefault", true);
|
||||
user_pref("browser.search.separatePrivateDefault.ui.enabled", true);
|
||||
|
||||
// PREF: Disable live search engine suggestions (Google, Bing, etc.)
|
||||
// [!] Search engines keylog every character you type from the URL bar
|
||||
user_pref("browser.search.suggest.enabled", false);
|
||||
user_pref("browser.search.suggest.enabled.private", false);
|
||||
|
||||
// PREF: Turn off all URL bar suggestions (bookmarks, history, open tabs)
|
||||
// user_pref("browser.urlbar.suggest.searches", false);
|
||||
// user_pref("browser.urlbar.suggest.history", false);
|
||||
// user_pref("browser.urlbar.suggest.bookmark", false);
|
||||
// user_pref("browser.urlbar.suggest.openpage", false);
|
||||
|
||||
// PREF: Disable location bar dropdown
|
||||
// This value controls the total number of entries to appear in the location bar dropdown.
|
||||
// [NOTE] Items (bookmarks/history/openpages) with a high "frecency"/"bonus" will always
|
||||
// be displayed (no we do not know how these are calculated or what the threshold is),
|
||||
// and this does not affect the search by search engine suggestion.
|
||||
// [NOTE] This setting is only useful if you want to enable search engine keywords
|
||||
// (i.e. at least one of 0850a suggestion types must be true) but you want to limit suggestions shown
|
||||
// default=10, disable=0
|
||||
// user_pref("browser.urlbar.maxRichResults", 2);
|
||||
|
||||
// PREF: Disable location bar domain guessing
|
||||
// Domain guessing intercepts DNS "hostname not found errors" and resends a
|
||||
// request (e.g. by adding www or .com). This is inconsistent use (e.g. FQDNs), does not work
|
||||
// via Proxy Servers (different error), is a flawed use of DNS (TLDs: why treat .com
|
||||
// as the 411 for DNS errors?), privacy issues (why connect to sites you didn't
|
||||
// intend to), can leak sensitive data (e.g. query strings: e.g. Princeton attack),
|
||||
// and is a security risk (e.g. common typos & malicious sites set up to exploit this)
|
||||
user_pref("browser.fixup.alternate.enabled", false);
|
||||
user_pref("browser.fixup.typo.scheme", false);
|
||||
|
||||
// PREF: Disable location bar autofill
|
||||
// https://support.mozilla.org/en-US/kb/address-bar-autocomplete-firefox#w_url-autocomplete
|
||||
// user_pref("browser.urlbar.autoFill", false);
|
||||
|
||||
// PREF: Hide different search provider icons in the URL dropdown
|
||||
user_pref("browser.urlbar.oneOffSearches", true);
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: DNS-over-HTTPS *
|
||||
******************************************************************************/
|
||||
|
||||
// PREF: Enable DNS-over-HTTPS
|
||||
// https://hacks.mozilla.org/2018/05/a-cartoon-intro-to-dns-over-https/
|
||||
// https://www.internetsociety.org/blog/2018/12/dns-privacy-support-in-mozilla-firefox/
|
||||
// 0=off, 2=TRR preferred, 5=TRR disabled
|
||||
user_pref("network.trr.mode", 2);
|
||||
|
||||
// PREF: Enable ESNI
|
||||
// This prevents others from intercepting the TLS SNI extension and using it
|
||||
// to determine what websites you are browsing.
|
||||
// [1] https://www.eff.org/deeplinks/2018/09/esni-privacy-protecting-upgrade-https/
|
||||
user_pref("network.security.esni.enabled", true);
|
||||
|
||||
// PREF: Force FF to always use your custom DNS resolver
|
||||
// You will type between the "" for both prefs.
|
||||
// I recommend creating your own URI with NextDNS for both privacy and security
|
||||
// [1] https://nextdns.io
|
||||
// user_pref("network.trr.uri", "");
|
||||
// user_pref("network.trr.custom_uri", "");
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: MIXED CONTENT *
|
||||
******************************************************************************/
|
||||
|
||||
// PREF: Disable insecure active content on HTTPS pages
|
||||
// https://trac.torproject.org/projects/tor/ticket/21323
|
||||
user_pref("security.mixed_content.block_active_content", true);
|
||||
|
||||
// PREF: Disable insecure passive content (such as images) on HTTPS pages
|
||||
// Attempt to upgrade them to HTTPS.
|
||||
user_pref("security.mixed_content.block_display_content", true);
|
||||
user_pref("security.mixed_content.upgrade_display_content", true);
|
||||
|
||||
// PREF: Block unencrypted requests from Flash on encrypted pages to mitigate MitM attacks
|
||||
// https://bugzilla.mozilla.org/1190623
|
||||
user_pref("security.mixed_content.block_object_subrequest", true);
|
||||
|
||||
// PREF: Limit (or disable) HTTP authentication credentials dialogs triggered by sub-resources
|
||||
// Hardens against potential credentials phishing.
|
||||
// [1] https://www.fxsitecompat.com/en-CA/docs/2015/http-auth-dialog-can-no-longer-be-triggered-by-cross-origin-resources/
|
||||
// 0=don't allow sub-resources to open HTTP authentication credentials dialogs
|
||||
// 1=don't allow cross-origin sub-resources to open HTTP authentication credentials dialogs
|
||||
// 2=allow sub-resources to open HTTP authentication credentials dialogs (default)
|
||||
user_pref("network.auth.subresource-http-auth-allow", 1);
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: VARIOUS SECURITY/PRIVACY ENHANCEMENTS *
|
||||
******************************************************************************/
|
||||
|
||||
// 1030: disable favicons in shortcuts
|
||||
// URL shortcuts use a cached randomly named .ico file which is stored in your
|
||||
// profile/shortcutCache directory. The .ico remains after the shortcut is deleted.
|
||||
// If set to false then the shortcuts use a generic Firefox icon
|
||||
// user_pref("browser.shell.shortcutFavicons", false);
|
||||
|
||||
// PREF: Disable sending additional analytics to web servers
|
||||
// https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon
|
||||
user_pref("beacon.enabled", false);
|
||||
|
||||
// PREF: Do not track battery status
|
||||
user_pref("dom.battery.enabled", false);
|
||||
|
||||
// PREF: Enable (limited but sufficient) window.opener protection
|
||||
// Makes rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set
|
||||
// [1] https://jakearchibald.com/2016/performance-benefits-of-rel-noopener/
|
||||
user_pref("dom.targetBlankNoOpener.enabled", true);
|
||||
|
||||
// PREF: Disable FTP protocol
|
||||
// Firefox redirects any attempt to load a FTP resource to the default search engine if the FTP protocol is disabled.
|
||||
// [1] https://www.ghacks.net/2018/02/20/firefox-60-with-new-preference-to-disable-ftp/
|
||||
user_pref("network.ftp.enabled", false);
|
||||
|
||||
// PREF: Enforce Punycode for Internationalized Domain Names to eliminate possible spoofing
|
||||
// Firefox has some protections, but it is better to be safe than sorry.
|
||||
// [!] Might be undesirable for non-latin alphabet users since legitimate IDN's are also punycoded.
|
||||
// [TEST] https://www.xn--80ak6aa92e.com/ (www.apple.com)
|
||||
// [1] https://wiki.mozilla.org/IDN_Display_Algorithm
|
||||
// [2] https://en.wikipedia.org/wiki/IDN_homograph_attack
|
||||
// [3] CVE-2017-5383: https://www.mozilla.org/security/advisories/mfsa2017-02/
|
||||
// [4] https://www.xudongz.com/blog/2017/idn-phishing/
|
||||
user_pref("network.IDN_show_punycode", true);
|
||||
|
||||
// PREF: Decode URLs in other languages
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1320061
|
||||
user_pref("browser.urlbar.decodeURLsOnCopy", true);
|
||||
|
||||
// PREF: When webGL is enabled, do not expose information about the graphics driver
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1171228
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info
|
||||
user_pref("webgl.enable-debug-renderer-info", false);
|
||||
|
||||
// PREF: WebGL
|
||||
user_pref("webgl.disable-fail-if-major-performance-caveat", true);
|
||||
|
||||
// PREF: Enforce Firefox's built-in PDF reader
|
||||
// This setting controls if the option "Display in Firefox" is available in the setting below
|
||||
// and by effect controls whether PDFs are handled in-browser or externally ("Ask" or "Open With").
|
||||
// default=false
|
||||
user_pref("pdfjs.disabled", false);
|
||||
|
||||
// PREF: Disable Windows jumplist [WINDOWS-only]
|
||||
// user_pref("browser.taskbar.lists.enabled", false);
|
||||
// user_pref("browser.taskbar.lists.frequent.enabled", false);
|
||||
// user_pref("browser.taskbar.lists.recent.enabled", false);
|
||||
// user_pref("browser.taskbar.lists.tasks.enabled", false);
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: GOOGLE *
|
||||
******************************************************************************/
|
||||
|
||||
// PREF: Disable Google Safe Browsing
|
||||
// ! Please have alternative phishing and malware protection before you uncomment prefs.
|
||||
// Increased privacy away from Google, but less protection against threats.
|
||||
// 1 https://www.wikiwand.com/en/Google_Safe_Browsing#/Privacy
|
||||
// 2 https://ashkansoltani.org/2012/02/25/cookies-from-nowhere
|
||||
user_pref("browser.safebrowsing.allowOverride", true);
|
||||
user_pref("browser.safebrowsing.appRepURL", "");
|
||||
user_pref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||
@@ -40,34 +254,27 @@ user_pref("browser.safebrowsing.enabled", false);
|
||||
user_pref("browser.safebrowsing.malware.enabled", false);
|
||||
user_pref("browser.safebrowsing.phishing.enabled", false);
|
||||
|
||||
|
||||
/*** MOZILLA ***/
|
||||
|
||||
/** SEARCH ***/
|
||||
/* Enable a seperate Private Search Engine
|
||||
* Remember to go into Preferences -> Search and select another search provider ***/
|
||||
user_pref("browser.search.separatePrivateDefault", true);
|
||||
user_pref("browser.search.separatePrivateDefault.ui.enabled", true);
|
||||
/* Search Suggestions turned off
|
||||
* Search engines keylog every character you type ***/
|
||||
user_pref("browser.search.suggest.enabled", false);
|
||||
user_pref("browser.search.suggest.enabled.private", false);
|
||||
// user_pref("browser.urlbar.suggest.searches", false);
|
||||
// user_pref("browser.urlbar.oneOffSearches", false);
|
||||
/** Geolocation ***/
|
||||
user_pref("permissions.default.geo", 0); // 0=default, always ask
|
||||
/* Use Mozilla geolocation service instead of Google when geolocation is enabled ***/
|
||||
// PREF: Use Mozilla geolocation service instead of Google when geolocation is enabled
|
||||
user_pref("permissions.default.geo", 0);
|
||||
user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
|
||||
|
||||
/* EXT. BLOCKLIST ***/
|
||||
/* 0401: enforce Firefox blocklist, but sanitize blocklist url
|
||||
* It includes updates for "revoked certificates"
|
||||
* [1] https://blog.mozilla.org/security/2015/03/03/revoking-intermediate-certificates-introducing-onecrl/
|
||||
* [2] https://trac.torproject.org/projects/tor/ticket/16931 ***/
|
||||
user_pref("extensions.blocklist.enabled", true); // [DEFAULT: true]
|
||||
/******************************************************************************
|
||||
* SECTION: MOZILLA *
|
||||
******************************************************************************/
|
||||
|
||||
// PREF: Enforce Firefox blocklist for extensions, but sanitize blocklist url
|
||||
// This includes updates for "revoked certificates"
|
||||
// [1] https://blog.mozilla.org/security/2015/03/03/revoking-intermediate-certificates-introducing-onecrl/
|
||||
// [2] https://trac.torproject.org/projects/tor/ticket/16931
|
||||
user_pref("extensions.blocklist.enabled", true);
|
||||
user_pref("extensions.blocklist.url", "https://blocklists.settings.services.mozilla.com/v1/blocklist/3/%APP_ID%/%APP_VERSION%/");
|
||||
|
||||
/* MOZILLA TELEMTRY, DATA COLLECTION, EXPERIMENTS */
|
||||
// PREF: Disable extension metadata
|
||||
// Used when installing/updating an extension, and in daily background update checks.
|
||||
// When false, extension detail tabs will have no description.
|
||||
// user_pref("extensions.getAddons.cache.enabled", false);
|
||||
|
||||
// PREF: Disable all Mozilla telemetry, data collection, experiments, phoning home, etc.
|
||||
user_pref("app.normandy.api_url", "");
|
||||
user_pref("app.normandy.enabled", false);
|
||||
user_pref("app.shield.optoutstudies.enabled", false);
|
||||
@@ -78,16 +285,14 @@ user_pref("browser.crashReports.unsubmittedCheck.enabled", false);
|
||||
user_pref("browser.disableResetPrompt", true);
|
||||
user_pref("browser.discovery.enabled", false);
|
||||
user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
|
||||
user_pref("browser.newtabpage.activity-stream.section.highlights.includePocket", false);
|
||||
user_pref("browser.newtabpage.activity-stream.showSponsored", false);
|
||||
user_pref("browser.newtabpage.activity-stream.telemetry", false);
|
||||
user_pref("browser.ping-centre.telemetry", false);
|
||||
user_pref("browser.search.update", false);
|
||||
user_pref("browser.selfsupport.url", "");
|
||||
user_pref("browser.send_pings.require_same_host", true);
|
||||
user_pref("browser.send_pings", false);
|
||||
user_pref("browser.startup.homepage_override.mstone", "ignore");
|
||||
user_pref("browser.tabs.crashReporting.sendReport", false);
|
||||
user_pref("browser.uitour.enabled", false);
|
||||
user_pref("browser.uitour.url", "");
|
||||
user_pref("datareporting.healthreport.uploadEnabled", false);
|
||||
user_pref("datareporting.policy.dataSubmissionEnabled", false);
|
||||
user_pref("datareporting.sessions.current.clean", true);
|
||||
@@ -96,90 +301,75 @@ user_pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false);
|
||||
user_pref("dom.ipc.plugins.reportCrashURL", false);
|
||||
user_pref("dom.push.enabled", false);
|
||||
user_pref("dom.push.userAgentID", "");
|
||||
user_pref("experiments.activeExperiment", false);
|
||||
user_pref("experiments.enabled", false);
|
||||
user_pref("experiments.manifest.uri", "");
|
||||
user_pref("experiments.supported", false);
|
||||
user_pref("extensions.getAddons.cache.enabled", false);
|
||||
user_pref("extensions.getAddons.showPane", false); // [HIDDEN PREF]
|
||||
user_pref("extensions.htmlaboutaddons.recommendations.enabled", false);
|
||||
user_pref("extensions.webcompat-reporter.enabled", false);
|
||||
user_pref("extensions.webservice.discoverURL", "");
|
||||
user_pref("network.allow-experiments", false);
|
||||
user_pref("security.ssl.errorReporting.automatic", false);
|
||||
user_pref("security.ssl.errorReporting.enabled", false);
|
||||
user_pref("security.ssl.errorReporting.url", "");
|
||||
user_pref("startup.homepage_welcome_url.additional", "");
|
||||
user_pref("toolkit.coverage.enabled", false);
|
||||
user_pref("toolkit.coverage.endpoint.base", "");
|
||||
user_pref("toolkit.coverage.opt-out", true);
|
||||
user_pref("toolkit.telemetry.archive.enabled", false);
|
||||
user_pref("toolkit.telemetry.bhrPing.enabled", false);
|
||||
user_pref("toolkit.telemetry.cachedClientID", "");
|
||||
user_pref("toolkit.telemetry.coverage.opt-out", true);
|
||||
user_pref("toolkit.telemetry.enabled", false);
|
||||
user_pref("toolkit.telemetry.firstShutdownPing.enabled", false);
|
||||
user_pref("toolkit.telemetry.newProfilePing.enabled", false);
|
||||
user_pref("toolkit.telemetry.prompted", 2);
|
||||
user_pref("toolkit.telemetry.rejected", true);
|
||||
user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);
|
||||
user_pref("toolkit.telemetry.server", "");
|
||||
user_pref("toolkit.telemetry.server", "data:,");
|
||||
user_pref("toolkit.telemetry.shutdownPingSender.enabled", false);
|
||||
user_pref("toolkit.telemetry.unified", false);
|
||||
user_pref("toolkit.telemetry.unifiedIsOptIn", false);
|
||||
user_pref("toolkit.telemetry.updatePing.enabled", false);
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: VPN specific *
|
||||
******************************************************************************/
|
||||
|
||||
/** Configure DNS-over-HTTPS ***/
|
||||
/* Enter custom DNS Resolver
|
||||
* 0=off, 2=TRR preferred, 5=TRR disabled ***/
|
||||
user_pref("network.trr.mode", 2);
|
||||
// user_pref("network.trr.uri", "");
|
||||
// user_pref("network.trr.custom_uri", "");
|
||||
user_pref("network.security.esni.enabled", true);
|
||||
// PREF: Turn off IPv6
|
||||
// IPv6 can leak your real IP address when using a VPN
|
||||
// [1] [find source]
|
||||
// user_pref("network.dns.disableIPv6", true);
|
||||
// user_pref("network.notify.IPv6", false);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: FIREFOX 75 *
|
||||
****************************************************************************/
|
||||
|
||||
/** MISC. ***/
|
||||
user_pref("beacon.enabled", false);
|
||||
user_pref("browser.cache.offline.enable", false);
|
||||
user_pref("browser.fixup.alternate.enabled", false);
|
||||
user_pref("browser.fixup.typo.scheme", false);
|
||||
user_pref("browser.urlbar.speculativeConnect.enabled", false);
|
||||
user_pref("dom.battery.enabled", false);
|
||||
user_pref("dom.targetBlankNoOpener.enabled", true);
|
||||
user_pref("media.video_stats.enabled", false);
|
||||
// user_pref("media.navigator.enabled", false); // breakage?
|
||||
user_pref("network.auth.subresource-http-auth-allow", 1);
|
||||
user_pref("network.dns.disablePrefetch", true);
|
||||
user_pref("network.ftp.enabled", false);
|
||||
user_pref("network.http.referer.defaultPolicy.trackers", 2);
|
||||
user_pref("network.http.referer.defaultPolicy", 2); // default=3
|
||||
user_pref("network.http.speculative-parallel-limit", 0);
|
||||
user_pref("network.IDN_show_punycode", true);
|
||||
user_pref("network.prefetch-next", false);
|
||||
user_pref("privacy.donottrackheader.enabled", true);
|
||||
user_pref("privacy.donottrackheader.value", 1);
|
||||
user_pref("security.mixed_content.block_active_content", true);
|
||||
user_pref("security.mixed_content.block_display_content", true);
|
||||
user_pref("security.mixed_content.block_object_subrequest", true);
|
||||
user_pref("security.mixed_content.upgrade_display_content", true);
|
||||
// user_pref("privacy.trackingprotection.enabled", true);
|
||||
// user_pref("privacy.trackingprotection.pbmode.enabled", true);
|
||||
// PREF: Purge site data of sites associated with tracking cookies automatically
|
||||
// Identify sites that set tracking cookies, remove those cookies (and other site data)
|
||||
// if the site has not been interacted with in 30 days.
|
||||
// https://www.ghacks.net/2020/03/04/firefox-75-will-purge-site-data-if-associated-with-tracking-cookies/
|
||||
// user_pref("privacy.purge_trackers.enabled", true);
|
||||
// user_pref("privacy.purge_trackers.logging.enabled", false);
|
||||
// user_pref("privacy.purge_trackers.max_purge_count", 100); // default=100
|
||||
|
||||
// PREF: Samesite Cookies
|
||||
// Samesite=Lax
|
||||
// [1] https://www.jardinesoftware.net/2019/10/28/samesite-by-default-in-2020/
|
||||
// user_pref("network.cookie.sameSite.laxByDefault", true); // default=false
|
||||
// user_pref("network.cookie.sameSite.noneRequiresSecure", false); default=false
|
||||
|
||||
/** OPT ***/
|
||||
/* Delete cookies after a certain period of time ***/
|
||||
// user_pref("network.cookie.lifetime.days", 5);
|
||||
// user_pref("network.cookie.lifetimePolicy", 3);
|
||||
/******************************************************************************
|
||||
* SECTION: FIREFOX 76 *
|
||||
******************************************************************************/
|
||||
|
||||
/* Turn off IPv6 when using a VPN ***/
|
||||
// user_pref("network.dns.disableIPv6", true);
|
||||
// user_pref("network.notify.IPv6", false);
|
||||
// PREF: Allow HTTPS-only connections
|
||||
// There is currently no way to relax this setting browser-side to make an exception.
|
||||
// https://www.ghacks.net/2020/03/24/firefox-76-gets-optional-https-only-mode
|
||||
// Alternative: HTTPZ extension https://addons.mozilla.org/en-US/firefox/addon/httpz/
|
||||
// user_pref("dom.security.https_only_mode", true);
|
||||
|
||||
/* Nightly only ***/
|
||||
//user_pref("fission.autostart", true);
|
||||
//user_pref("privacy.purge_trackers.enabled", true);
|
||||
//user_pref("privacy.purge_trackers.logging.enabled", false);
|
||||
//user_pref("privacy.purge_trackers.max_purge_count", 100); // default=100
|
||||
//user_pref("dom.security.https_only_mode", true); // may cause breakage
|
||||
// PREF: Alert when using a breached password
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1569848
|
||||
user_pref("signon.management.page.vulnerable-passwords.enabled", true);
|
||||
|
||||
/******************************************************************************
|
||||
* SECTION: NIGHTLY-ONLY *
|
||||
******************************************************************************/
|
||||
|
||||
// PREF: Project Fisson
|
||||
// A new process model that enables full site isolation
|
||||
// user_pref("fission.autostart", true);
|
||||
|
||||
Reference in New Issue
Block a user