From e37af513313f049d5cb0eafc7f9151c430879dca Mon Sep 17 00:00:00 2001 From: Narsil Date: Wed, 1 Sep 2021 15:51:13 +0000 Subject: [PATCH] Upload files to '' --- user.js | 1184 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1184 insertions(+) create mode 100644 user.js diff --git a/user.js b/user.js new file mode 100644 index 0000000..71414c8 --- /dev/null +++ b/user.js @@ -0,0 +1,1184 @@ +// ********************************************************************************** +// user.js | Firefox +// https://git.nixnet.xyz/Narsil/mobile_user.js +// ********************************************************************************** +// +// Author : Narsil : https://git.nixnet.xyz/Narsil +// +// Based on : arkenfox : https://github.com/arkenfox/user.js +// +// License : https://git.nixnet.xyz/Narsil/desktop_user.js/raw/branch/master/LICENSE +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// START: internal custom pref to test for syntax error +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable about:config warning +user_pref("browser.aboutConfig.showWarning", false); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// STARTUP +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable default browser check +user_pref("browser.shell.checkDefaultBrowser", false); +// ------------------------------------- +// Set startup page [SETUP-CHROME] +// 0=blank, 1=home, 2=last visited page, 3=resume previous session +user_pref("browser.startup.page", 0); +// ------------------------------------- +// Set HOME+NEWWINDOW page +user_pref("browser.startup.homepage", "about:blank"); +// ------------------------------------- +// Set NEWTAB page +// true=Activity Stream (default), false=blank page +user_pref("browser.newtabpage.enabled", false); +user_pref("browser.newtab.preload", false); +// ------------------------------------- +// Disable some Activity Stream items +user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false); +user_pref("browser.newtabpage.activity-stream.telemetry", false); +user_pref("browser.newtabpage.activity-stream.feeds.snippets", false); // [DEFAULT: false FF89+] +user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", 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.feeds.discoverystreamfeed", false); // [FF66+] +user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // [FF83+] +user_pref("browser.newtabpage.activity-stream.showSearch", false); +user_pref("browser.newtabpage.activity-stream.showTopSites", false); +user_pref("browser.newtabpage.activity-stream.feeds.topsites", false); +user_pref("browser.newtabpage.activity-stream.section.highlights.includeBookmarks", false); +user_pref("browser.newtabpage.activity-stream.section.highlights.includeDownloads", false); +user_pref("browser.newtabpage.activity-stream.section.highlights.includeVisited", false); +user_pref("browser.newtabpage.activity-stream.discoverystream.enabled", false); +// ------------------------------------- +// Clear default topsites +user_pref("browser.newtabpage.activity-stream.default.sites", ""); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// GEOLOCATION / LANGUAGE / LOCALE +// >>>>>>>>>>>>>>>>>>>>> +// +// Use Mozilla geolocation service instead of Google if permission is granted [FF74+] +user_pref("geo.provider.network.url", ""); +// user_pref("geo.provider.network.logging.enabled", true); // [HIDDEN PREF] +// ------------------------------------- +// Disable using the OS's geolocation service +user_pref("geo.provider.ms-windows-location", false); // [WINDOWS] +user_pref("geo.provider.use_corelocation", false); // [MAC] +user_pref("geo.provider.use_gpsd", false); // [LINUX] +// ------------------------------------- +// Disable region updates +user_pref("browser.region.network.url", ""); // [FF78+] +user_pref("browser.region.update.enabled", false); // [[FF79+] +// ------------------------------------- +// Set search region +user_pref("browser.search.region", "US"); // [HIDDEN PREF] +// ------------------------------------- +// Set preferred language for displaying web pages +user_pref("intl.accept_languages", "en-US, en"); +// ------------------------------------- +// Use US English locale regardless of the system locale +user_pref("javascript.use_us_english_locale", true); // [HIDDEN PREF] +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// QUIETER FOX +// >>>>>>>>>>>>>>>>>>>>> +// +// UPDATES +// +// Disable auto-INSTALLING Firefox updates [NON-WINDOWS] +user_pref("app.update.auto", false); +// ------------------------------------- +// Disable auto-INSTALLING Firefox updates via a background service [FF90+] [WINDOWS] +user_pref("app.update.background.scheduling.enabled", false); +// ------------------------------------- +// Disable auto-CHECKING for extension and theme updates +user_pref("extensions.update.enabled", true); +user_pref("extensions.autoupdate.enabled", true); +// ------------------------------------- +// Decrease system information leakage to Mozilla extensions update servers +user_pref("extensions.update.url", "https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=en-US¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%"); // [URL SANITIZED] +user_pref("extensions.update.background.url", "https://versioncheck-bg.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=en-US¤tAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%"); // [URL SANITIZED] +// ------------------------------------- +// Decrease system information leakage to Mozilla addons update servers +user_pref("extensions.getAddons.browseAddons", "https://addons.mozilla.org/en-US/android/collections/4757633/mob/?page=1&collection_sort=-popularity"); // [URL SANITIZED] +user_pref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/api/v4/addons/search/?guid=%IDS%&lang=en-US"); // [URL SANITIZED] +user_pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/en-US/android/search?q=%TERMS%&platform=%OS%&appver=%VERSION%"); // [URL SANITIZED] +// ------------------------------------- +// Disable auto-INSTALLING extension and theme updates +user_pref("extensions.update.autoUpdateDefault", false); +// ------------------------------------- +// Disable extension metadata +user_pref("extensions.getAddons.cache.enabled", false); +// ------------------------------------- +// Disable search engine updates (e.g. OpenSearch) +user_pref("browser.search.update", false); +// ------------------------------------- +// Disable System Add-on updates +user_pref("extensions.systemAddon.update.enabled", false); // [FF62+] +user_pref("extensions.systemAddon.update.url", ""); // [FF44+] +// +// RECOMMENDATIONS +// +// Disable recommendation pane in about:addons (uses Google Analytics) +user_pref("extensions.getAddons.showPane", false); // [HIDDEN PREF] +// ------------------------------------- +// Disable recommendations in about:addons' Extensions and Themes panes [FF68+] +user_pref("extensions.htmlaboutaddons.recommendations.enabled", false); +// ------------------------------------- +// Disable personalized Extension Recommendations in about:addons and AMO [FF65+] +user_pref("browser.discovery.enabled", false); +// +// TELEMETRY +// +// Disable new data submission [FF41+] +user_pref("datareporting.policy.dataSubmissionEnabled", false); +// ------------------------------------- +// Disable Health Reports +user_pref("datareporting.healthreport.uploadEnabled", false); +// ------------------------------------- +// Disable telemetry +user_pref("toolkit.telemetry.unified", false); +user_pref("toolkit.telemetry.enabled", false); // see [NOTE] +user_pref("toolkit.telemetry.server", "data:,"); +user_pref("toolkit.telemetry.archive.enabled", false); +user_pref("toolkit.telemetry.newProfilePing.enabled", false); // [FF55+] +user_pref("toolkit.telemetry.shutdownPingSender.enabled", false); // [FF55+] +user_pref("toolkit.telemetry.updatePing.enabled", false); // [FF56+] +user_pref("toolkit.telemetry.bhrPing.enabled", false); // [FF57+] Background Hang Reporter +user_pref("toolkit.telemetry.firstShutdownPing.enabled", false); // [FF57+] +// ------------------------------------- +// Disable Telemetry Coverage +user_pref("toolkit.telemetry.coverage.opt-out", true); // [HIDDEN PREF] +user_pref("toolkit.coverage.opt-out", true); // [FF64+] [HIDDEN PREF] +user_pref("toolkit.coverage.endpoint.base", ""); +// ------------------------------------- +// Disable PingCentre telemetry (used in several System Add-ons) [FF57+] +user_pref("browser.ping-centre.telemetry", false); +// +// STUDIES +// +// Disable Studies +user_pref("app.shield.optoutstudies.enabled", false); +// ------------------------------------- +// Disable Normandy/Shield [FF60+] +user_pref("app.normandy.enabled", false); +user_pref("app.normandy.api_url", ""); +// +// CRASH REPORTS +// +// Disable Crash Reports +user_pref("breakpad.reportURL", ""); +user_pref("browser.tabs.crashReporting.sendReport", false); // [FF44+] +// user_pref("browser.crashReports.unsubmittedCheck.enabled", false); // [FF51+] [DEFAULT: false] +// ------------------------------------- +// Enforce no submission of backlogged Crash Reports [FF58+] +user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false); // [DEFAULT: false] +// +// OTHER +// +// Disable Captive Portal detection +user_pref("captivedetect.canonicalURL", ""); +user_pref("network.captive-portal-service.enabled", false); // [FF52+] +// ------------------------------------- +// Disable Network Connectivity checks [FF65+] +user_pref("network.connectivity-service.enabled", false); +// ------------------------------------- +// Disable contentblocking reports +user_pref("browser.contentblocking.reportBreakage.url", ""); +user_pref("browser.contentblocking.report.cookie.url", ""); +user_pref("browser.contentblocking.report.cryptominer.url", ""); +user_pref("browser.contentblocking.report.fingerprinter.url", ""); +user_pref("browser.contentblocking.report.lockwise.enabled", false); +user_pref("browser.contentblocking.report.lockwise.how_it_works.url", ""); +user_pref("browser.contentblocking.report.manage_devices.url", ""); +user_pref("browser.contentblocking.report.monitor.enabled", false); +user_pref("browser.contentblocking.report.monitor.how_it_works.url", ""); +user_pref("browser.contentblocking.report.monitor.sign_in_url", ""); +user_pref("browser.contentblocking.report.monitor.url", ""); +user_pref("browser.contentblocking.report.proxy.enabled", false); +user_pref("browser.contentblocking.report.proxy_extension.url", ""); +user_pref("browser.contentblocking.report.social.url", ""); +user_pref("browser.contentblocking.report.tracker.url", ""); +user_pref("browser.contentblocking.report.endpoint_url", ""); +user_pref("browser.contentblocking.report.monitor.home_page_url", ""); +user_pref("browser.contentblocking.report.monitor.preferences_url", ""); +user_pref("browser.contentblocking.report.vpn.enabled", false); +// ------------------------------------- +// Enforce disabling of Web Compatibility Reporter [FF56+] +user_pref("extensions.webcompat-reporter.enabled", false); // [DEFAULT: false] +// ------------------------------------- +// Block unwanted connections +user_pref("app.feedback.baseURL", ""); +user_pref("app.feedbackURL", ""); +user_pref("app.support.baseURL", ""); +user_pref("app.supportURL", ""); +user_pref("app.update.channel", ""); +user_pref("app.channelURL", ""); +user_pref("app.creditsURL", ""); +user_pref("app.faqURL", ""); +user_pref("app.privacyURL", ""); +user_pref("app.releaseNotesURL", ""); +user_pref("app.update.autodownload", "never"); +user_pref("app.update.url.android", ""); +user_pref("app.update.service.enabled", false); +// ------------------------------------- +// Manage other urls and handlers +user_pref("media.decoder-doctor.new-issue-endpoint", ""); +user_pref("identity.sync.tokenserver.uri", ""); +user_pref("browser.translation.engine", ""); +user_pref("gecko.handlerService.schemes.mailto.0.uriTemplate", ""); +user_pref("gecko.handlerService.schemes.mailto.0.name", ""); +user_pref("gecko.handlerService.schemes.mailto.1.uriTemplate", ""); +user_pref("gecko.handlerService.schemes.mailto.1.name", ""); +user_pref("gecko.handlerService.schemes.irc.0.uriTemplate", ""); +user_pref("gecko.handlerService.schemes.irc.0.name", ""); +user_pref("gecko.handlerService.schemes.ircs.0.uriTemplate", ""); +user_pref("gecko.handlerService.schemes.ircs.0.name", ""); +user_pref("browser.uitour.themeOrigin", ""); +user_pref("toolkit.datacollection.infoURL", ""); +user_pref("identity.mobilepromo.android", ""); +user_pref("identity.mobilepromo.ios", ""); +// ------------------------------------- +// Disable SSDP (Simple Service Discovery Protocol) +user_pref("browser.casting.enabled", false); +// ------------------------------------- +// Disable tickle time under wifi network +user_pref("network.tickle-wifi.enabled", false); +// ------------------------------------- +// Disable connections to Mozilla servers +user_pref("services.settings.server", ""); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// SAFE BROWSING (SB) +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable SB (Safe Browsing) +user_pref("browser.safebrowsing.malware.enabled", false); +user_pref("browser.safebrowsing.phishing.enabled", false); +user_pref("browser.safebrowsing.passwords.enabled", false); +user_pref("browser.safebrowsing.allowOverride", false); +// ------------------------------------- +// Disable SB checks for downloads (both local lookups + remote) +user_pref("browser.safebrowsing.downloads.enabled", false); +// ------------------------------------- +// Disable SB checks for downloads (remote) +user_pref("browser.safebrowsing.downloads.remote.enabled", false); +user_pref("browser.safebrowsing.downloads.remote.url", ""); +// ------------------------------------- +// Disable SB checks for unwanted software +user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false); +user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false); +// ------------------------------------- +// Disable "ignore this warning" on SB warnings [FF45+] +// user_pref("browser.safebrowsing.allowOverride", false); +// ------------------------------------- +// Google connections +user_pref("browser.safebrowsing.features.cryptomining.update", false); +user_pref("browser.safebrowsing.features.fingerprinting.update", false); +user_pref("browser.safebrowsing.features.malware.update", false); +user_pref("browser.safebrowsing.features.phishing.update", false); +user_pref("browser.safebrowsing.features.trackingAnnotation.update", false); +user_pref("browser.safebrowsing.features.trackingProtection.update", false); +user_pref("browser.safebrowsing.downloads.remote.block_dangerous", false); +user_pref("browser.safebrowsing.downloads.remote.block_dangerous_host", false); +user_pref("browser.safebrowsing.provider.google.updateURL", ""); +user_pref("browser.safebrowsing.provider.google.gethashURL", ""); +user_pref("browser.safebrowsing.provider.google4.updateURL", ""); +user_pref("browser.safebrowsing.provider.google4.gethashURL", ""); +user_pref("browser.safebrowsing.provider.google.reportURL", ""); +user_pref("browser.safebrowsing.reportPhishURL", ""); +user_pref("browser.safebrowsing.provider.google4.reportURL", ""); +user_pref("browser.safebrowsing.provider.google.reportMalwareMistakeURL", ""); +user_pref("browser.safebrowsing.provider.google.reportPhishMistakeURL", ""); +user_pref("browser.safebrowsing.provider.google4.reportMalwareMistakeURL", ""); +user_pref("browser.safebrowsing.provider.google4.reportPhishMistakeURL", ""); +user_pref("browser.safebrowsing.provider.google4.dataSharing.enabled", false); +user_pref("browser.safebrowsing.provider.google4.dataSharingURL", ""); +user_pref("browser.safebrowsing.provider.google.advisory", ""); +user_pref("browser.safebrowsing.provider.google.advisoryURL", ""); +user_pref("browser.safebrowsing.provider.google.gethashURL", ""); +user_pref("browser.safebrowsing.provider.google4.advisoryURL", ""); +user_pref("browser.safebrowsing.blockedURIs.enabled", false); +user_pref("browser.safebrowsing.provider.mozilla.gethashURL", ""); +user_pref("browser.safebrowsing.provider.mozilla.updateURL", ""); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// BLOCK IMPLICIT OUTBOUND +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable link prefetching +user_pref("network.prefetch-next", false); +// ------------------------------------- +// Disable DNS prefetching +user_pref("network.dns.disablePrefetch", true); +// user_pref("network.dns.disablePrefetchFromHTTPS", true); // [DEFAULT: true] +// ------------------------------------- +// Disable predictor / prefetching +user_pref("network.predictor.enabled", false); +// user_pref("network.predictor.enable-prefetch", false); // [FF48+] [DEFAULT: false] +// ------------------------------------- +// Disable link-mouseover opening connection to linked server +user_pref("network.http.speculative-parallel-limit", 0); +// ------------------------------------- +// Enforce no "Hyperlink Auditing" (click tracking) +// user_pref("browser.send_pings", false); // [DEFAULT: false] +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// DNS / DoH / PROXY / SOCKS / IPv6 +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable IPv6 +user_pref("network.dns.disableIPv6", true); +// ------------------------------------- +// Set the proxy server to do any DNS lookups when using SOCKS +user_pref("network.proxy.socks_remote_dns", true); +// ------------------------------------- +// Disable using UNC (Uniform Naming Convention) paths [FF61+] +user_pref("network.file.disable_unc_paths", true); // [HIDDEN PREF] +// ------------------------------------- +// Disable GIO as a potential proxy bypass vector +user_pref("network.gio.supported-protocols", ""); // [HIDDEN PREF] +// ------------------------------------- +// Disable DNS-over-HTTPS (DoH) rollout [FF60+] +user_pref("network.trr.mode", 5); +user_pref("network.trr.uri", ""); +user_pref("network.trr.confirmationNS", ""); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// LOCATION BAR / SEARCH BAR / SUGGESTIONS / HISTORY / FORMS +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable location bar using search +user_pref("keyword.enabled", false); +// ------------------------------------- +// Disable location bar domain guessing +user_pref("browser.fixup.alternate.enabled", false); +// ------------------------------------- +// Display all parts of the url in the location bar +user_pref("browser.urlbar.trimURLs", false); +// ------------------------------------- +// Disable live search suggestions +user_pref("browser.search.suggest.enabled", false); +user_pref("browser.urlbar.suggest.searches", false); +user_pref("browser.urlbar.showSearchSuggestionsFirst", false); +// ------------------------------------- +// Disable location bar making speculative connections [FF56+] +user_pref("browser.urlbar.speculativeConnect.enabled", false); +// ------------------------------------- +// Disable location bar leaking single words to a DNS provider **after searching** [FF78+] +// 0=never resolve single words, 1=heuristic (default), 2=always resolve +user_pref("browser.urlbar.dnsResolveSingleWordsAfterSearch", 0); +// ------------------------------------- +// Disable tab-to-search [FF85+] +user_pref("browser.urlbar.suggest.engines", false); +// ------------------------------------- +// Disable search and form history +user_pref("browser.formfill.enable", false); +// ------------------------------------- +// Disable Form Autofill +user_pref("extensions.formautofill.addresses.enabled", false); // [FF55+] +user_pref("extensions.formautofill.available", "off"); // [FF56+] +user_pref("extensions.formautofill.creditCards.available", false); // [FF57+] +user_pref("extensions.formautofill.creditCards.enabled", false); // [FF56+] +user_pref("extensions.formautofill.heuristics.enabled", false); // [FF55+] +// ------------------------------------- +// Disable coloring of visited links +user_pref("layout.css.visited_links_enabled", false); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// PASSWORDS +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable saving passwords and password alerts. +user_pref("signon.rememberSignons", false); +user_pref("signon.generation.enabled", false); +user_pref("signon.management.page.breach-alerts.enabled", false); +user_pref("signon.management.page.breachAlertUrl", ""); +// ------------------------------------- +// Set when Firefox should prompt for the primary password +// 0=once per session (default), 1=every time it's needed, 2=after n minutes +user_pref("security.ask_for_password", 2); +// ------------------------------------- +// Set how long in minutes Firefox should remember the primary password (0901) +user_pref("security.password_lifetime", 5); // [DEFAULT: 30] +// ------------------------------------- +// Disable auto-filling username & password form fields +user_pref("signon.autofillForms", false); +// ------------------------------------- +// Disable formless login capture for Password Manager [FF51+] +user_pref("signon.formlessCapture.enabled", false); +// ------------------------------------- +// Limit (or disable) HTTP authentication credentials dialogs triggered by sub-resources [FF41+] +// 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); +// ------------------------------------- +// Enforce no automatic authentication on Microsoft sites [FF91+] [WINDOWS 10+] +user_pref("network.http.windows-sso.enabled", false); // [DEFAULT: false] +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// DISK AVOIDANCE +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable disk cache +user_pref("browser.cache.disk.enable", false); +// ------------------------------------- +// Disable media cache from writing to disk in Private Browsing +user_pref("browser.privatebrowsing.forceMediaMemoryCache", true); // [FF75+] +user_pref("media.memory_cache_max_size", 65536); +// ------------------------------------- +// Disable storing extra session data [SETUP-CHROME] +// 0=everywhere, 1=unencrypted sites, 2=nowhere +user_pref("browser.sessionstore.privacy_level", 2); +// ------------------------------------- +// Set the minimum interval between session save operations +user_pref("browser.sessionstore.interval", 30000); // [DEFAULT: 15000] +// ------------------------------------- +// Disable automatic Firefox start and session restore after reboot [FF62+] [WINDOWS] +user_pref("toolkit.winRegisterApplicationRestart", false); +// ------------------------------------- +// Disable favicons in shortcuts +user_pref("browser.shell.shortcutFavicons", false); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// HTTPS (SSL/TLS / OCSP / CERTS / HPKP) +// >>>>>>>>>>>>>>>>>>>>> +// +// Require safe negotiation +user_pref("security.ssl.require_safe_negotiation", true); +// ------------------------------------- +// Reset TLS 1.0 and 1.1 downgrades i.e. session only +user_pref("security.tls.version.enable-deprecated", false); // [DEFAULT: false] +// ------------------------------------- +// Disable TLS1.3 0-RTT (round-trip time) [FF51+] +user_pref("security.tls.enable_0rtt_data", false); +// +// OCSP (Online Certificate Status Protocol) +// +// Control when to use OCSP fetching (to confirm current validity of certificates) +// 0=disabled, 1=enabled (default), 2=enabled for EV certificates only +user_pref("security.OCSP.enabled", 0); +// ------------------------------------- +// Set OCSP fetch failures (non-stapled) to hard-fail [SETUP-WEB] +user_pref("security.OCSP.require", false); +// +// CERTS / HPKP (HTTP Public Key Pinning) +// +// Disable or limit SHA-1 certificates +// 0 = allow all +// 1 = block all +// 3 = only allow locally-added roots (e.g. anti-virus) (default) +// 4 = only allow locally-added roots or for certs in 2015 and earlier +user_pref("security.pki.sha1_enforcement_level", 1); +// ------------------------------------- +// Disable Windows 8.1's Microsoft Family Safety cert [FF50+] [WINDOWS] +// 0=disable detecting Family Safety mode and importing the root +// 1=only attempt to detect Family Safety mode (don't import the root) +// 2=detect Family Safety mode and import the root +user_pref("security.family_safety.mode", 0); +// ------------------------------------- +// Enable strict pinning +// PKP (Public Key Pinning) 0=disabled 1=allow user MiTM (such as your antivirus), 2=strict +user_pref("security.cert_pinning.enforcement_level", 2); +// ------------------------------------- +// Disable CRLite [FF73+] +user_pref("security.remote_settings.intermediates.enabled", false); +user_pref("security.remote_settings.intermediates.bucket", ""); +user_pref("security.remote_settings.intermediates.collection", ""); +user_pref("security.remote_settings.intermediates.signer", ""); +user_pref("security.remote_settings.crlite_filters.enabled", false); +user_pref("security.remote_settings.crlite_filters.bucket", ""); +user_pref("security.remote_settings.crlite_filters.collection", ""); +user_pref("security.remote_settings.crlite_filters.signer", ""); +user_pref("security.pki.crlite_mode", 0); +// +// MIXED CONTENT +// +// Disable insecure passive content (such as images) on https pages [SETUP-WEB] +user_pref("security.mixed_content.block_display_content", true); +// ------------------------------------- +// Enable HTTPS-Only mode in all windows [FF76+] +user_pref("dom.security.https_only_mode", true); // [FF76+] +// user_pref("dom.security.https_only_mode_pbm", true); // [FF80+] +// ------------------------------------- +// Enable HTTPS-Only mode for local resources [FF77+] +// user_pref("dom.security.https_only_mode.upgrade_local", true); +// ------------------------------------- +// Disable HTTP background requests [FF82+] +user_pref("dom.security.https_only_mode_send_http_background_request", false); +// +// UI (User Interface) +// +// Display warning on the padlock for "broken security" +user_pref("security.ssl.treat_unsafe_negotiation_as_broken", true); +// ------------------------------------- +// Control "Add Security Exception" dialog on SSL warnings +// 0=do neither 1=pre-populate url 2=pre-populate url + pre-fetch cert (default) +user_pref("browser.ssl_override_behavior", 1); +// ------------------------------------- +// Display advanced information on Insecure Connection warning pages +user_pref("browser.xul.error_pages.expert_bad_cert", true); +// ------------------------------------- +// Display "Not Secure" text on HTTP sites +user_pref("security.insecure_connection_text.enabled", true); // [FF60+] +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// FONTS +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable rendering of SVG OpenType fonts +user_pref("gfx.font_rendering.opentype_svg.enabled", false); +// ------------------------------------- +// Limit font visibility (Windows, Mac, some Linux) [FF79+] +// user_pref("layout.css.font-visibility.level", 1); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// HEADERS / REFERERS +// >>>>>>>>>>>>>>>>>>>>> +// +// Control when to send a cross-origin referer +// 0=always (default), 1=only if base domains match, 2=only if hosts match +user_pref("network.http.referer.XOriginPolicy", 2); +// ------------------------------------- +// Control the amount of cross-origin information to send [FF52+] +// 0=send full URI (default), 1=scheme+host+port+path, 2=scheme+host+port +user_pref("network.http.referer.XOriginTrimmingPolicy", 2); +// ------------------------------------- +// Enable the DNT (Do Not Track) HTTP header +// user_pref("privacy.donottrackheader.enabled", true); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// CONTAINERS +// >>>>>>>>>>>>>>>>>>>>> +// +// Enable Container Tabs and it's UI setting [FF50+] +user_pref("privacy.userContext.enabled", true); +user_pref("privacy.userContext.ui.enabled", true); +// ------------------------------------- +// Set behaviour on "+ Tab" button to display container menu on left click [FF74+] +// user_pref("privacy.userContext.newTabContainerOnLeftClick.enabled", true); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// PLUGINS / MEDIA / WEBRTC +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable WebRTC (Web Real-Time Communication) +user_pref("media.peerconnection.enabled", false); +// ------------------------------------- +// Limit WebRTC IP leaks if using WebRTC +user_pref("media.peerconnection.ice.default_address_only", true); +user_pref("media.peerconnection.ice.no_host", true); // [FF51+] +user_pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true); // [FF70+] +// ------------------------------------- +// Disable GMP (Gecko Media Plugins) +// user_pref("media.gmp-provider.enabled", false); +// ------------------------------------- +// Disable widevine CDM (Content Decryption Module) +user_pref("media.gmp-widevinecdm.enabled", false); +// ------------------------------------- +// Disable all DRM content (EME: Encryption Media Extension) +user_pref("media.eme.enabled", false); +// ------------------------------------- +// Disable autoplay of HTML5 media [FF63+] +// 0=Allow all, 1=Block non-muted media (default), 5=Block all +// user_pref("media.autoplay.default", 5); +// ------------------------------------- +// Disable autoplay of HTML5 media if you interacted with the site [FF78+] +// 0=sticky (default), 1=transient, 2=user +user_pref("media.autoplay.blocking_policy", 2); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// WEB WORKERS +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable service workers [FF32, FF44-compat] +user_pref("dom.serviceWorkers.enabled", false); +// ------------------------------------- +// Disable Web Notifications +// user_pref("dom.webnotifications.enabled", false); // [FF22+] +// user_pref("dom.webnotifications.serviceworker.enabled", false); // [FF44+] +// ------------------------------------- +// Disable Push Notifications [FF44+] +user_pref("dom.push.enabled", false); +user_pref("dom.push.userAgentID", ""); +user_pref("dom.push.connection.enabled", false); +user_pref("dom.push.serverURL", ""); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// DOM (DOCUMENT OBJECT MODEL) +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable "Confirm you want to leave" dialog on page close +user_pref("dom.disable_beforeunload", true); +// ------------------------------------- +// Prevent scripts from moving and resizing open windows +user_pref("dom.disable_window_move_resize", true); +// ------------------------------------- +// Block popup windows +user_pref("dom.disable_open_during_load", true); +// ------------------------------------- +// Limit events that can cause a popup [SETUP-WEB] +user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown"); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// FINGERPRINTING +// >>>>>>>>>>>>>>>>>>>>> +// +// Enforce no system colors +user_pref("browser.display.use_system_colors", false); // [DEFAULT: false] +// ------------------------------------- +// Enforce non-native widget theme +user_pref("widget.non-native-theme.enabled", true); // [DEFAULT: true FF89+] +// ------------------------------------- +// Open links targeting new windows in a new tab instead +user_pref("browser.link.open_newwindow", 3); // 1=most recent window or tab 2=new window, 3=new tab +user_pref("browser.link.open_newwindow.restriction", 0); +// ------------------------------------- +// Disable WebGL (Web Graphics Library) +user_pref("webgl.disabled", true); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// MISCELLANEOUS +// >>>>>>>>>>>>>>>>>>>>> +// +// Prevent accessibility services from accessing your browser [RESTART] +user_pref("accessibility.force_disabled", 1); +// ------------------------------------- +// Disable sending additional analytics to web servers +user_pref("beacon.enabled", false); +// ------------------------------------- +// Remove temp files opened with an external application +user_pref("browser.helperApps.deleteTempFileOnExit", true); +// ------------------------------------- +// Disable page thumbnail collection +user_pref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN 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", ""); +// ------------------------------------- +// Disable various developer tools in browser context +user_pref("devtools.chrome.enabled", false); +// ------------------------------------- +// Reset remote debugging to disabled +user_pref("devtools.debugger.remote-enabled", false); // [DEFAULT: false] +// ------------------------------------- +// Disable middle mouse click opening links from clipboard +user_pref("middlemouse.contentLoadURL", false); +// ------------------------------------- +// Disable websites overriding Firefox's keyboard shortcuts [FF58+] +// 0 (default) or 1=allow, 2=block +// user_pref("permissions.default.shortcuts", 2); +// ------------------------------------- +// Remove special permissions for certain mozilla domains [FF35+] +user_pref("permissions.manager.defaultsUrl", ""); +// ------------------------------------- +// Remove webchannel whitelist +user_pref("webchannel.allowObject.urlWhitelist", ""); +// ------------------------------------- +// Use Punycode in Internationalized Domain Names to eliminate possible spoofing +user_pref("network.IDN_show_punycode", true); +// ------------------------------------- +// Enforce PDFJS, disable PDFJS scripting [SETUP-CHROME] +user_pref("pdfjs.disabled", false); // [DEFAULT: false] +user_pref("pdfjs.enableScripting", false); // [FF86+] +// ------------------------------------- +// Disable links launching Windows Store on Windows 8/8.1/10 [WINDOWS] +user_pref("network.protocol-handler.external.ms-windows-store", false); +// ------------------------------------- +// Disable permissions delegation [FF73+] +user_pref("permissions.delegation.enabled", false); +// +// DOWNLOADS +// +// Enable user interaction for security by always asking where to download +user_pref("browser.download.useDownloadDir", false); +// ------------------------------------- +// Disable adding downloads to the system's "recent documents" list +user_pref("browser.download.manager.addToRecentDocs", false); +// +// EXTENSIONS +// +// Lock down allowed extension directories +user_pref("extensions.enabledScopes", 5); // [HIDDEN PREF] +user_pref("extensions.autoDisableScopes", 15); // [DEFAULT: 15] +// ------------------------------------- +// Disable bypassing 3rd party extension install prompts [FF82+] +user_pref("extensions.postDownloadThirdPartyPrompt", false); +// ------------------------------------- +// Disable webextension restrictions on certain mozilla domains [FF60+] +// user_pref("extensions.webextensions.restrictedDomains", ""); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// PERSISTENT STORAGE +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable or isolate 3rd-party cookies and site-data [SETUP-WEB] +// 0 = Accept cookies and site data +// 1 = (Block) All third-party cookies +// 2 = (Block) All cookies +// 3 = (Block) Cookies from unvisited websites +// 4 = (Block) Cross-site tracking cookies (default) +// 5 = (Isolate All) Cross-site cookies (TCP: Total Cookie Protection / dFPI: dynamic FPI) [1] (FF86+) +user_pref("network.cookie.cookieBehavior", 1); +user_pref("browser.contentblocking.category", "custom"); +// ------------------------------------- +// Set third-party cookies (if enabled, see 2701) to session-only +user_pref("network.cookie.thirdparty.sessionOnly", true); +user_pref("network.cookie.thirdparty.nonsecureSessionOnly", true); // [FF58+] +// ------------------------------------- +// Delete cookies and site data on close +user_pref("network.cookie.lifetimePolicy", 2); +// ------------------------------------- +// Enable Enhanced Tracking Protection (ETP) in all windows +user_pref("privacy.trackingprotection.enabled", false); +user_pref("privacy.trackingprotection.origin_telemetry.enabled", false); +user_pref("privacy.trackingprotection.annotate_channels", false); +user_pref("privacy.trackingprotection.lower_network_priority", false); +user_pref("privacy.trackingprotection.pbmode.enabled", false); +user_pref("privacy.trackingprotection.cryptomining.enabled", false); +user_pref("privacy.trackingprotection.fingerprinting.enabled", false); +user_pref("privacy.trackingprotection.socialtracking.enabled", false); +user_pref("privacy.trackingprotection.testing.report_blocked_node", false); +user_pref("privacy.socialtracking.block_cookies.enabled", false); +// ------------------------------------- +// Disable service worker cache and cache storage +// user_pref("dom.caches.enabled", false); +// ------------------------------------- +// Disable Storage API [FF51+] +// user_pref("dom.storageManager.enabled", false); +// ------------------------------------- +// Disable Storage Access API [FF65+] +// user_pref("dom.storage_access.enabled", false); +// ------------------------------------- +// Enable Local Storage Next Generation (LSNG) [FF65+] +user_pref("dom.storage.next_gen", true); // [DEFAULT: true FF92+] +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// SHUTDOWN +// >>>>>>>>>>>>>>>>>>>>> +// +// Enable Firefox to clear items on shutdown +user_pref("privacy.sanitize.sanitizeOnShutdown", true); +// ------------------------------------- +// Set what items to clear on shutdown [SETUP-CHROME] +user_pref("privacy.clearOnShutdown.cache", true); +user_pref("privacy.clearOnShutdown.cookies", true); +user_pref("privacy.clearOnShutdown.downloads", true); // see note above +user_pref("privacy.clearOnShutdown.formdata", true); // Form & Search History +user_pref("privacy.clearOnShutdown.history", true); // Browsing & Download History +user_pref("privacy.clearOnShutdown.offlineApps", true); // Offline Website Data +user_pref("privacy.clearOnShutdown.sessions", true); // Active Logins +user_pref("privacy.clearOnShutdown.siteSettings", false); // Site Preferences +// ------------------------------------- +// Reset default items to clear with Ctrl-Shift-Del [SETUP-CHROME] +user_pref("privacy.cpd.cache", true); +user_pref("privacy.cpd.cookies", true); +// user_pref("privacy.cpd.downloads", true); // not used, see note above +user_pref("privacy.cpd.formdata", true); // Form & Search History +user_pref("privacy.cpd.history", true); // Browsing & Download History +user_pref("privacy.cpd.offlineApps", true); // Offline Website Data +user_pref("privacy.cpd.passwords", false); // this is not listed +user_pref("privacy.cpd.sessions", true); // Active Logins +user_pref("privacy.cpd.siteSettings", false); // Site Preferences +// ------------------------------------- +// Clear Session Restore data when sanitizing on shutdown or manually [FF34+] +// user_pref("privacy.clearOnShutdown.openWindows", true); +// user_pref("privacy.cpd.openWindows", true); +// ------------------------------------- +// Reset default "Time range to clear" for "Clear Recent History" +// 0=everything, 1=last hour, 2=last two hours, 3=last four hours, 4=today +user_pref("privacy.sanitize.timeSpan", 0); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// FPI (FIRST PARTY ISOLATION) +// >>>>>>>>>>>>>>>>>>>>> +// +// Enable First Party Isolation [FF51+] +user_pref("privacy.firstparty.isolate", true); +// ------------------------------------- +// Enforce FPI restriction for window.opener [FF54+] +// user_pref("privacy.firstparty.isolate.restrict_opener_access", true); // [DEFAULT: true] +// user_pref("privacy.firstparty.isolate.block_post_message", true); +// ------------------------------------- +// Enable scheme with FPI [FF78+] +// user_pref("privacy.firstparty.isolate.use_site", true); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// RFP (RESIST FINGERPRINTING) +// >>>>>>>>>>>>>>>>>>>>> +// +// Enable privacy.resistFingerprinting [FF41+] +user_pref("privacy.resistFingerprinting", true); +// ------------------------------------- +// Set new window sizes to round to hundreds [FF55+] [SETUP-CHROME] +// user_pref("privacy.window.maxInnerWidth", 1000); +// user_pref("privacy.window.maxInnerHeight", 1000); +// ------------------------------------- +// Disable mozAddonManager Web API [FF57+] +user_pref("privacy.resistFingerprinting.block_mozAddonManager", true); // [HIDDEN PREF] +// ------------------------------------- +// Enable RFP letterboxing [FF67+] + +user_pref("privacy.resistFingerprinting.letterboxing", true); // [HIDDEN PREF] +// user_pref("privacy.resistFingerprinting.letterboxing.dimensions", ""); // [HIDDEN PREF] +// ------------------------------------- +// Experimental RFP [FF91+] +// user_pref("privacy.resistFingerprinting.exemptedDomains", "*.example.invalid"); +// user_pref("privacy.resistFingerprinting.testGranularityMask", 0); +// ------------------------------------- +// Disable showing about:blank as soon as possible during startup [FF60+] +user_pref("browser.startup.blankWindow", false); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// OPTIONAL OPSEC +// >>>>>>>>>>>>>>>>>>>>> +// +// Start Firefox in PB (Private Browsing) mode +// user_pref("browser.privatebrowsing.autostart", true); +// ------------------------------------- +// Disable memory cache +// capacity: -1=determine dynamically (default), 0=none, n=memory capacity in kibibytes +// user_pref("browser.cache.memory.enable", false); +// user_pref("browser.cache.memory.capacity", 0); +// ------------------------------------- +// Disable saving passwords +// user_pref("signon.rememberSignons", false); +// ------------------------------------- +// Disable permissions manager from writing to disk [FF41+] [RESTART] +// user_pref("permissions.memory_only", true); // [HIDDEN PREF] +// ------------------------------------- +// Disable intermediate certificate caching [FF41+] [RESTART] +// user_pref("security.nocertdb", true); // [HIDDEN PREF] +// ------------------------------------- +// Disable favicons in history and bookmarks +user_pref("browser.chrome.site_icons", false); +// ------------------------------------- +// Exclude "Undo Closed Tabs" in Session Restore +// user_pref("browser.sessionstore.max_tabs_undo", 0); +// ------------------------------------- +// Disable resuming session from crash +// user_pref("browser.sessionstore.resume_from_crash", false); +// ------------------------------------- +// Disable "open with" in download dialog [FF50+] +// user_pref("browser.download.forbid_open_with", true); +// ------------------------------------- +// Disable location bar suggestion types +user_pref("browser.urlbar.suggest.history", false); +user_pref("browser.urlbar.suggest.bookmark", false); +user_pref("browser.urlbar.suggest.openpage", false); +user_pref("browser.urlbar.suggest.topsites", false); // [FF78+] +user_pref("browser.urlbar.suggest.quicksuggest", false); +// ------------------------------------- +// Disable location bar dropdown +// user_pref("browser.urlbar.maxRichResults", 0); +// ------------------------------------- +// Disable location bar autofill +user_pref("browser.urlbar.autoFill", false); +// ------------------------------------- +// Disable browsing and download history +user_pref("places.history.enabled", false); +// ------------------------------------- +// Disable Windows jumplist [WINDOWS] +// 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); +// ------------------------------------- +// Disable Windows taskbar preview [WINDOWS] ***/ +// user_pref("browser.taskbar.previews.enable", false); // [DEFAULT: false] +// ------------------------------------- +// Discourage downloading to desktop +// 0=desktop, 1=downloads (default), 2=last used +// user_pref("browser.download.folderList", 2); +// ------------------------------------- +// Enable Site Isolation +user_pref("fission.autostart", true); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// OPTIONAL HARDENING +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable MathML (Mathematical Markup Language) [FF51+] +user_pref("mathml.disabled", true); +// ------------------------------------- +// Disable in-content SVG (Scalable Vector Graphics) [FF53+] +// user_pref("svg.disabled", true); +// ------------------------------------- +// Disable graphite +// user_pref("gfx.font_rendering.graphite.enabled", false); +// ------------------------------------- +// Disable asm.js [FF22+] +user_pref("javascript.options.asmjs", false); +// ------------------------------------- +// Disable Ion and baseline JIT to harden against JS exploits +user_pref("javascript.options.ion", false); +user_pref("javascript.options.baselinejit", false); +user_pref("javascript.options.jit_trustedprincipals", true); // [FF75+] [HIDDEN PREF] +// ------------------------------------- +// Disable WebAssembly [FF52+] +// user_pref("javascript.options.wasm", false); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// DON'T TOUCH +// >>>>>>>>>>>>>>>>>>>>> +// +// Enforce Firefox blocklist +user_pref("extensions.blocklist.enabled", false); // [DEFAULT: true] +// ------------------------------------- +// Enforce no referer spoofing +user_pref("network.http.referer.spoofSource", true); // [DEFAULT: false] +// ------------------------------------- +// Enforce CSP (Content Security Policy) +user_pref("security.csp.enable", true); // [DEFAULT: true] +// ------------------------------------- +// Enforce a security delay on some confirmation dialogs such as install, open/save +user_pref("security.dialog_enable_delay", 1000); // [DEFAULT: 1000] +// ------------------------------------- +// Enforce window.opener protection [FF65+] +user_pref("dom.targetBlankNoOpener.enabled", true); // [DEFAULT: true FF79+] +// ------------------------------------- +// Enforce "window.name" protection [FF82+] +user_pref("privacy.window.name.update.enabled", true); // [DEFAULT: true FF86+] +// ------------------------------------- +// PrefsCleaner: reset previously active items removed from arkenfox in 79-91 +user_pref("browser.newtabpage.activity-stream.asrouter.providers.snippets", ""); +// user_pref("browser.send_pings.require_same_host", ""); +user_pref("dom.allow_cut_copy", false); +user_pref("dom.vibrator.enabled", false); +// user_pref("media.getusermedia.audiocapture.enabled", ""); +// user_pref("media.getusermedia.browser.enabled", ""); +// user_pref("media.getusermedia.screensharing.enabled", ""); +// user_pref("media.gmp-widevinecdm.visible", ""); +// user_pref("network.http.redirection-limit", ""); +user_pref("privacy.partition.network_state", true); +// user_pref("security.insecure_connection_icon.enabled", ""); // [DEFAULT: true FF70+] +// user_pref("security.mixed_content.block_active_content", ""); // [DEFAULT: true since at least FF60] +user_pref("security.ssl.enable_ocsp_stapling", false); // [DEFAULT: true FF26+] +// user_pref("webgl.disable-fail-if-major-performance-caveat", ""); // [DEFAULT: true FF86+] +user_pref("webgl.enable-webgl2", false); +// user_pref("webgl.min_capability_mode", ""); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// DON'T BOTHER +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable APIs +user_pref("geo.enabled", false); +// user_pref("full-screen-api.enabled", false); +user_pref("browser.cache.offline.enable", false); +user_pref("dom.vr.enabled", false); +// ------------------------------------- +// Set default permissions +// 0=always ask (default), 1=allow, 2=block +user_pref("permissions.default.geo", 2); +user_pref("permissions.default.camera", 2); +user_pref("permissions.default.microphone", 2); +user_pref("permissions.default.desktop-notification", 2); +user_pref("permissions.default.xr", 2); // Virtual Reality +// ------------------------------------- +// Disable non-modern cipher suites +user_pref("security.ssl3.ecdhe_ecdsa_aes_256_sha", false); +user_pref("security.ssl3.ecdhe_ecdsa_aes_128_sha", false); +user_pref("security.ssl3.ecdhe_rsa_aes_128_sha", false); +user_pref("security.ssl3.ecdhe_rsa_aes_256_sha", false); +user_pref("security.ssl3.rsa_aes_128_gcm_sha256", false); // no PFS +user_pref("security.ssl3.rsa_aes_256_gcm_sha384", false); // no PFS +user_pref("security.ssl3.rsa_aes_128_sha", false); // no PFS +user_pref("security.ssl3.rsa_aes_256_sha", false); // no PFS +user_pref("security.ssl3.rsa_des_ede3_sha", false); // 3DES +// ------------------------------------- +// Control TLS versions +// user_pref("security.tls.version.min", 3); // [DEFAULT: 3] +// user_pref("security.tls.version.max", 4); +// ------------------------------------- +// Disable SSL session IDs [FF36+] +// user_pref("security.ssl.disable_session_identifiers", true); // [HIDDEN PREF] +// ------------------------------------- +// Onions +// user_pref("dom.securecontext.whitelist_onions", true); +// user_pref("network.http.referer.hideOnionSource", true); +// ------------------------------------- +// Referers + * [WHY] Only cross-origin referers (1600s) need control +// user_pref("network.http.sendRefererHeader", 2); +// user_pref("network.http.referer.trimmingPolicy", 0); +// ------------------------------------- +// Set the default Referrer Policy [FF59+] +// 0=no-referer, 1=same-origin, 2=strict-origin-when-cross-origin, 3=no-referrer-when-downgrade +// user_pref("network.http.referer.defaultPolicy", 2); // [DEFAULT: 2 FF87+] +// user_pref("network.http.referer.defaultPolicy.pbmode", 2); // [DEFAULT: 2] +// ------------------------------------- +// Disable HTTP2 +// user_pref("network.http.spdy.enabled", false); +// user_pref("network.http.spdy.enabled.deps", false); +// user_pref("network.http.spdy.enabled.http2", false); +// user_pref("network.http.spdy.websockets", false); // [FF65+] +// ------------------------------------- +// Disable HTTP Alternative Services [FF37+] +// user_pref("network.http.altsvc.enabled", false); +// user_pref("network.http.altsvc.oe", false); +// ------------------------------------- +// Disable website control over browser right-click context menu +// user_pref("dom.event.contextmenu.enabled", false); +// ------------------------------------- +// Disable icon fonts (glyphs) and local fallback rendering +// user_pref("gfx.downloadable_fonts.enabled", false); // [FF41+] +// user_pref("gfx.downloadable_fonts.fallback_delay", -1); +// ------------------------------------- +// Disable Clipboard API +// user_pref("dom.event.clipboardevents.enabled", false); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// DON'T BOTHER: NON-RFP +// >>>>>>>>>>>>>>>>>>>>> +// +// Disable APIs +user_pref("device.sensors.enabled", false); +// user_pref("dom.enable_performance", false); +// user_pref("dom.enable_resource_timing", false); +// user_pref("dom.gamepad.enabled", false); +// user_pref("dom.netinfo.enabled", false); +user_pref("dom.webaudio.enabled", false); +// ------------------------------------- +// Disable other +user_pref("browser.display.use_document_fonts", 0); +// user_pref("browser.zoom.siteSpecific", false); +user_pref("dom.w3c_touch_events.enabled", 1); // [FENNEC BUG] +user_pref("media.navigator.enabled", false); +// user_pref("media.ondevicechange.enabled", false); +// user_pref("media.video_stats.enabled", false); +// user_pref("media.webspeech.synth.enabled", false); +// user_pref("webgl.enable-debug-renderer-info", false); +// ------------------------------------- +// Spoof +// user_pref("dom.maxHardwareConcurrency", 2); +// user_pref("font.system.whitelist", ""); // [HIDDEN PREF] +// user_pref("general.appname.override", ""); // [HIDDEN PREF] +// user_pref("general.appversion.override", ""); // [HIDDEN PREF] +user_pref("general.buildID.override", "20181001000000"); // [HIDDEN PREF] +// user_pref("general.oscpu.override", ""); // [HIDDEN PREF] +// user_pref("general.platform.override", ""); // [HIDDEN PREF] +user_pref("general.useragent.override", "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0"); // [HIDDEN PREF] +// user_pref("ui.use_standins_for_native_colors", true); +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// PERSONAL +// >>>>>>>>>>>>>>>>>>>>> +// +// WELCOME & WHAT'S NEW NOTICES +// +user_pref("browser.startup.homepage_override.mstone", "ignore"); // master switch +user_pref("startup.homepage_welcome_url", ""); +user_pref("startup.homepage_welcome_url.additional", ""); +user_pref("startup.homepage_override_url", ""); // What's New page after updates +// +// WARNINGS +// +user_pref("browser.tabs.warnOnClose", false); +user_pref("browser.tabs.warnOnCloseOtherTabs", false); +user_pref("browser.tabs.warnOnOpen", false); +user_pref("full-screen-api.warning.delay", 0); +user_pref("full-screen-api.warning.timeout", 0); +user_pref("browser.warnOnQuit", false); +// +// APPEARANCE +// +// user_pref("browser.download.autohideButton", false); // [FF57+] +// user_pref("ui.systemUsesDarkTheme", 1); // [FF67+] [HIDDEN PREF] +// 0=light, 1=dark: with RFP this only affects chrome +// user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); // [FF68+] allow userChrome/userContent +// user_pref("ui.prefersReducedMotion", 1); // disable chrome animations [FF77+] [RESTART] [HIDDEN PREF] +// 0=no-preference, 1=reduce: with RFP this only affects chrome +// +// CONTENT BEHAVIOR +// +user_pref("accessibility.typeaheadfind", false); // enable "Find As You Type" +user_pref("clipboard.autocopy", false); // disable autocopy default [LINUX] +user_pref("layout.spellcheckDefault", 0); // 0=none, 1-multi-line, 2=multi-line & single-line +// +// UX BEHAVIOR +// +// user_pref("browser.backspace_action", 2); // 0=previous page, 1=scroll up, 2=do nothing +// user_pref("browser.quitShortcut.disabled", true); // disable Ctrl-Q quit shortcut [LINUX] [MAC] [FF87+] +// user_pref("browser.tabs.closeWindowWithLastTab", false); +// user_pref("browser.tabs.loadBookmarksInTabs", true); // open bookmarks in a new tab [FF57+] +// user_pref("browser.urlbar.decodeURLsOnCopy", true); // see bugzilla 1320061 [FF53+] +// user_pref("general.autoScroll", false); // middle-click enabling auto-scrolling [DEFAULT: false on Linux] +// user_pref("ui.key.menuAccessKey", 0); // disable alt key toggling the menu bar [RESTART] +// user_pref("view_source.tab", false); // view "page/selection source" in a new window [FF68+, FF59 and under] +// +// UX FEATURES +// +user_pref("browser.messaging-system.whatsNewPanel.enabled", false); // What's New toolbar icon [FF69+] +// user_pref("extensions.pocket.enabled", false); // Pocket Account [FF46+] +// user_pref("extensions.screenshots.disabled", true); // [FF55+] +// user_pref("identity.fxaccounts.enabled", false); // Firefox Accounts & Sync [FF60+] [RESTART] +user_pref("reader.parse-on-load.enabled", false); // Reader View +// +// OTHER +// +// user_pref("browser.bookmarks.max_backups", 2); +user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false); // disable CFR [FF67+] +user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false); // disable CFR [FF67+] +// user_pref("network.manage-offline-status", false); // see bugzilla 620472 +// user_pref("xpinstall.signatures.required", false); // enforced extension signing (Nightly/ESR) +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// DEPRECATED / REMOVED / LEGACY / RENAMED +// >>>>>>>>>>>>>>>>>>>>> +// +// ESR78.x still uses all the following prefs +// +// FF79 +// Enforce fallback text encoding to match en-US +user_pref("intl.charset.fallback.override", "windows-1252"); +// ------------------------------------- +// FF82 +// Disable geographically specific results/search engines e.g. "browser.search.*.US" +user_pref("browser.search.geoSpecificDefaults", false); +user_pref("browser.search.geoSpecificDefaults.url", ""); +// ------------------------------------- +// FF86 +// Disable SSL Error Reporting +user_pref("security.ssl.errorReporting.automatic", false); +user_pref("security.ssl.errorReporting.enabled", false); +user_pref("security.ssl.errorReporting.url", ""); +// ------------------------------------- +// Disable hiding mime types (Options>General>Applications) not associated with a plugin +user_pref("browser.download.hide_plugins_without_extensions", false); +// ------------------------------------- +// FF87 +// Disable Activity Stream recent Highlights in the Library [FF57+] +// user_pref("browser.library.activity-stream.enabled", false); +// ------------------------------------- +// Disable PointerEvents +user_pref("dom.w3c_pointer_events.enabled", false); +// ------------------------------------- +// FF89 +// Disable sending Flash crash reports +user_pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false); +// ------------------------------------- +// Disable sending the URL of the website where a plugin crashed +user_pref("dom.ipc.plugins.reportCrashURL", false); +// ------------------------------------- +// Block unencrypted requests from Flash on encrypted pages to mitigate MitM attacks [FF59+] +user_pref("security.mixed_content.block_object_subrequest", true); +// ------------------------------------- +// Disable Flash plugin +// 0=deactivated, 1=ask, 2=enabled +user_pref("plugin.state.flash", 0); // [DEFAULT: 1] +// ------------------------------------- +// FF90 +// Disable FTP [FF60+] +// user_pref("network.ftp.enabled", false); // [DEFAULT: false FF88+] +// ------------------------------------- +// Enforce no offline cache storage (appCache) [FF71+] +user_pref("browser.cache.offline.storage.enable", false); // [DEFAULT: false FF84+] +// ------------------------------------- +// Verify user.js is applied +user_pref("_config.applied", true); +// \ No newline at end of file