From d359a60df8ab55089a05ab8eb9a5a82fca90f658 Mon Sep 17 00:00:00 2001 From: quindecim <49964366+quindecim@users.noreply.github.com> Date: Fri, 10 May 2019 20:50:17 +0000 Subject: [PATCH] Update user.js --- user.js | 153 ++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 110 insertions(+), 43 deletions(-) diff --git a/user.js b/user.js index 2023585..a3b283d 100644 --- a/user.js +++ b/user.js @@ -20,8 +20,8 @@ // Pref : Never check updates for search engines // https://support.mozilla.org/en-US/kb/how-stop-firefox-making-automatic-connections#w_auto-update-checking user_pref("browser.search.update", false); -user_pref("browser.search.update.interval", -1); user_pref("browser.search.update.log", false); +// user_pref("browser.search.update.interval", 0); // ------------------------------------- // Pref : Tell the search service that we don't really expose the "current engine" user_pref("browser.search.noCurrentEngine", true); // [DEFAULT: true] // [FENNEC] @@ -35,7 +35,7 @@ user_pref("dom.ipc.plugins.reportCrashURL", false); // Pref : Disable SSDP (Simple Service Discovery Protocol) // https://en.wikipedia.org/wiki/Simple_Service_Discovery_Protocol // https://bugzilla.mozilla.org/show_bug.cgi?id=1111967 -user_pref("browser.casting.enabled", false); // [DEFAULT: false] +user_pref("browser.casting.enabled", false); // [DEFAULT: true] // ------------------------------------- // Pref : Disable Telemetry user_pref("toolkit.telemetry.enabled", false); @@ -92,8 +92,8 @@ user_pref("breakpad.reportURL", ""); user_pref("captivedetect.canonicalURL", ""); user_pref("network.captive-portal-service.enabled", false); user_pref("network.captive-portal-service.backoffFactor", ""); -user_pref("network.captive-portal-service.maxInterval", -1); -user_pref("network.captive-portal-service.minInterval", -1); +// user_pref("network.captive-portal-service.maxInterval", 0); +// user_pref("network.captive-portal-service.minInterval", 0); // ------------------------------------- // Pref : Disable Network Connectivity checks // https://bugzilla.mozilla.org/1460537 @@ -125,25 +125,16 @@ user_pref("app.privacyURL", ""); // [FENNEC] user_pref("app.releaseNotesURL", ""); user_pref("app.support.baseURL", ""); user_pref("app.supportURL", ""); // [FENNEC] -user_pref("browser.chromeURL", ""); // [FENNEC] // ------------------------------------- // Pref : Disable app from auto-update -user_pref("app.update.autodownload", ""); -user_pref("app.update.channel", ""); -user_pref("app.update.timerFirstInterval", -1); -user_pref("app.update.timerMinimumDelay", -1); +user_pref("app.update.autodownload", ""); // [TEST] +user_pref("app.update.channel", ""); // [TEST] user_pref("app.update.url.android", ""); -// user_pref("app.update.url.android", "https://aus5.mozilla.org/update/4/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/%MOZ_VERSION%/update.xml"); // [URL SANITIZED from locale] -// ------------------------------------- -// Pref : Updates addons automatically -// https://blog.mozilla.org/addons/how-to-turn-off-add-on-updates/ -user_pref("extensions.update.enabled", true); -// ------------------------------------- -// Pref : Disable System Add-on updates -user_pref("extensions.systemAddon.update.url", ""); +// user_pref("app.update.timerFirstInterval", 0); +// user_pref("app.update.timerMinimumDelay", 0); +// user_pref("app.update.url.android", "https://aus5.mozilla.org/update/4/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/%MOZ_VERSION%/update.xml"); // [TEST] // ------------------------------------- // Pref : Block unwanted connections -user_pref("identity.sync.tokenserver.uri", ""); user_pref("media.decoder-doctor.new-issue-endpoint", ""); user_pref("network.trr.confirmationNS", ""); // ------------------------------------- @@ -158,15 +149,29 @@ user_pref("urlclassifier.passwordAllowTable", ""); // Pref : Test user.js in about:config user_pref("user.js.applied", true); // [FENNEC] // ------------------------------------- +// Pref : Updates addons automatically +// https://blog.mozilla.org/addons/how-to-turn-off-add-on-updates/ +user_pref("extensions.update.enabled", true); +user_pref("extensions.autoupdate.enabled", true); +// ------------------------------------- +// Pref : Disable System Add-on updates +user_pref("extensions.systemAddon.update.url", ""); +// ------------------------------------- // Pref : Disable Web Compatibility Reporter // Web Compatibility Reporter adds a "Report Site Issue" button to send data to Mozilla user_pref("extensions.webcompat-reporter.enabled", false); user_pref("extensions.webcompat-reporter.newIssueEndpoint", ""); // ------------------------------------- +// Pref : Don't let XPIProvider install distribution add-ons +user_pref("extensions.installDistroAddons", false); // [DEFAULT: false] // [FENNEC] +// ------------------------------------- +// Pref : Disable legacy extensions +user_pref("extensions.legacy.enabled", false); +// ------------------------------------- // Pref : user_pref("devtools.devices.url", ""); // ------------------------------------- -// Pref : +// Pref : Provide haptic feedback on longPress selection events user_pref("layout.accessiblecaret.hapticfeedback", false); // [DEFAULT: true] // ------------------------------------- // Pref : @@ -176,19 +181,19 @@ user_pref("dom.registerProtocolHandler.insecure.enabled", false); user_pref("identity.fxaccounts.auth.uri", ""); user_pref("identity.fxaccounts.remote.oauth.uri", ""); user_pref("identity.fxaccounts.remote.profile.uri", ""); +user_pref("identity.sync.tokenserver.uri", ""); user_pref("identity.fxaccounts.remote.webchannel.uri", "https://0.0.0.0"); // [FENNEC - BUG] If left blank, it causes faded "Settings" on some devices // ------------------------------------- // Pref : Disable sync user_pref("services.sync.enabled", false); -user_pref("privacy.item.syncAccount", false); // ------------------------------------- // Pref : Disable snippets user_pref("browser.snippets.enabled", false); // [FENNEC] user_pref("browser.snippets.firstrunHomepage.enabled", false); // [FENNEC] user_pref("browser.snippets.statsUrl", ""); // [FENNEC] -user_pref("browser.snippets.updateInterval", -1); // [FENNEC] user_pref("browser.snippets.updateUrl", ""); // [FENNEC] user_pref("browser.snippets.syncPromo.enabled", false); // [FENNEC] +// user_pref("browser.snippets.updateInterval", 0); // [FENNEC] // ------------------------------------- // Pref : Force Punycode for Internationalized Domain Names // http://kb.mozillazine.org/Network.IDN_show_punycode @@ -203,11 +208,6 @@ user_pref("network.IDN_show_punycode", true); // Look in profile/thumbnails directory, you may want to clean that out user_pref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN PREF] // ------------------------------------- -// Pref : Disable speculative pre-connections -// https://support.mozilla.org/en-US/kb/how-stop-firefox-making-automatic-connections#w_speculative-pre-connections -// https://bugzilla.mozilla.org/show_bug.cgi?id=814169 -user_pref("network.http.speculative-parallel-limit", 0); -// ------------------------------------- // Pref : Do not automatically send selection to clipboard on Linux and some UNIX-like platforms // http://kb.mozillazine.org/Clipboard.autocopy user_pref("clipboard.autocopy", false); @@ -231,7 +231,7 @@ user_pref("browser.search.geoSpecificDefaults", false); // ------------------------------------- // Pref : Don't monitor OS online/offline connection state // https://trac.torproject.org/projects/tor/ticket/18945 -user_pref("network.manage-offline-status", false); +user_pref("network.manage-offline-status", false); // [DEFAULT: true] // ------------------------------------- // Pref : Set File URI Origin Policy // http://kb.mozillazine.org/Security.fileuri.strict_origin_policy @@ -365,6 +365,19 @@ user_pref("network.protocol-handler.expose.about", true); user_pref("network.protocol-handler.expose.chrome", true); user_pref("network.protocol-handler.expose.blob", true); user_pref("network.protocol-handler.expose.data", true); +// ------------------------------------- +// Pref : Don't allow meta-refresh when backgrounded +user_pref("browser.meta_refresh_when_inactive.disabled", true); +// ------------------------------------- +// Pref : Optimize images memory usage +user_pref("image.downscale-during-decode.enabled", true); +// ------------------------------------- +// Pref : Disable firstrun showup +user_pref("browser.firstrun.show.uidiscovery", false); // [DEFAULT: true] +user_pref("browser.firstrun.show.localepicker", false); // [DEFAULT: false] +// ------------------------------------- +// Pref : Disable sending console to logcat on release builds. +user_pref("consoleservice.logcat", false); // [FENNEC] // // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // Section : Web Workers @@ -375,19 +388,26 @@ user_pref("network.protocol-handler.expose.data", true); // [NOTE] Service workers only run over HTTPS. Service Workers have no DOM access. user_pref("dom.serviceWorkers.enabled", false); // ------------------------------------- +// Pref : Disable push service +// The upstream autopush endpoint must have the Google API key corresponding to the App's sender ID; we bake this assumption directly into the URL. +user_pref("dom.push.enabled", false); +user_pref("dom.push.serverURL", ""); +// ------------------------------------- // Pref : Disable web notifications // https://developer.mozilla.org/docs/Web/API/Notifications_API +user_pref("notification.feature.enabled", false); // [FENNEC] user_pref("dom.webnotifications.enabled", false); user_pref("dom.webnotifications.serviceworker.enabled", false); // ------------------------------------- +// Pref : Prevent tooltips from showing up +user_pref("browser.chrome.toolbar_tips", false); +// ------------------------------------- // Pref : Disable push notifications // Web apps can receive messages pushed to them from a server, whether or not the web app is in the foreground, or even currently loaded // https://developer.mozilla.org/docs/Web/API/Push_API user_pref("dom.push.alwaysConnect", false); -user_pref("dom.push.enabled", false); user_pref("dom.push.debug", false); user_pref("dom.push.connection.enabled", false); -user_pref("dom.push.serverURL", ""); user_pref("dom.push.userAgentID", ""); // // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> @@ -470,9 +490,9 @@ user_pref("media.peerconnection.ice.default_address_only", true); user_pref("media.peerconnection.ice.no_host", true); user_pref("media.peerconnection.use_document_iceservers", false); user_pref("media.peerconnection.identity.enabled", false); -user_pref("media.peerconnection.identity.timeout", -1); user_pref("media.peerconnection.turn.disable", true); user_pref("media.peerconnection.ice.tcp", false); +// user_pref("media.peerconnection.identity.timeout", 0); // ------------------------------------- // Pref : Disable WebGL I/II // [WARNING] WebGL introduce high fingerprinting... (webgl is direct hardware js) @@ -489,8 +509,9 @@ user_pref("webgl.can-lose-context-in-foreground", false); // [DEFAULT: true] user_pref("media.getusermedia.browser.enabled", false); user_pref("media.getusermedia.audiocapture.enabled", false); // ------------------------------------- -// Pref : Disable camera -user_pref("device.camera.enabled", false); +// Pref : Disable camera support +user_pref("device.camera.enabled", false); // [DEFAULT: true] // [FENNEC] +user_pref("media.realtime_decoder.enabled", false); // [DEFAULT: true] // [FENNEC] // ------------------------------------- // Pref : Disable canvas capture stream // https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream @@ -544,7 +565,7 @@ user_pref("browser.sessionhistory.max_entries", 8); // [DEFAULT: 50] // https://developer.mozilla.org/docs/Web/CSS/Privacy_and_the_:visited_selector user_pref("layout.css.visited_links_enabled", false); // ------------------------------------- -// Pref : Disable search bar LIVE search suggestions +// Pref : Disable search bar LIVE suggestions user_pref("browser.search.suggest.enabled", false); // ------------------------------------- // Pref : Disable search and form history @@ -560,7 +581,7 @@ user_pref("browser.formfill.enable", false); // Section : Security // >>>>>>>>>>>>>>>>>>>> // Pref : Blocking GD Parking Scam Site -user_pref("network.dns.localDomains", "librefox.com"); +user_pref("network.dns.localDomains", ""); // ------------------------------------- // Pref : Enable HSTS preload list (pre-set HSTS sites list provided by Mozilla) // https://blog.mozilla.org/security/2012/11/01/preloading-hsts/ @@ -583,6 +604,36 @@ user_pref("security.csp.experimentalEnabled", true); // https://github.com/schomery/privacy-settings/issues/40 // [NOTE] Firefox falls back on plain OCSP when must-staple is not configured on the host certificate user_pref("security.ssl.enable_ocsp_must_staple", true); +// ------------------------------------- +// Pref : Control remote debugging +user_pref("devtools.remote.usb.enabled", false); // [DEFAULT: false] +user_pref("devtools.remote.wifi.enabled", false); // [DEFAULT: false] +// ------------------------------------- +// Pref : Disable dump function +// True if you always want dump() to work +// On Android, you also need to do the following for the output to show up in logcat: +// $ adb shell stop +// $ adb shell setprop log.redirect-stdio true +// $ adb shell start +user_pref("browser.dom.window.dump.enabled", false); // [DEFAULT: true] +user_pref("devtools.console.stdout.chrome", false); // [DEFAULT: true] +// ------------------------------------- +// Pref : Disable number linkification +user_pref("browser.ui.linkify.phone", false); // [DEFAULT: false] // [FENNEC] +// ------------------------------------- +// Pref : Controls which bits of private data to clear. +user_pref("privacy.item.cache", true); // [DEFAULT: true] // [FENNEC] +user_pref("privacy.item.cookies", true); // [DEFAULT: true] +user_pref("privacy.item.offlineApps", true); // [DEFAULT: true] // [FENNEC] +user_pref("privacy.item.history", true); // [DEFAULT: true] // [FENNEC] +user_pref("privacy.item.searchHistory", true); // [DEFAULT: true] // [FENNEC] +user_pref("privacy.item.formdata", true); // [DEFAULT: true] // [FENNEC] +user_pref("privacy.item.downloads", true); // [DEFAULT: true] // [FENNEC] +user_pref("privacy.item.passwords", true); // [DEFAULT: true] // [FENNEC] +user_pref("privacy.item.sessions", true); // [DEFAULT: true] // [FENNEC] +user_pref("privacy.item.geolocation", true); // [DEFAULT: true] // [FENNEC] +user_pref("privacy.item.siteSettings", true); // [DEFAULT: true] // [FENNEC] +user_pref("privacy.item.syncAccount", true); // [DEFAULT: true] // [FENNEC] // // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // Section : Block Implicit Outbound @@ -607,6 +658,11 @@ user_pref("browser.send_pings", false); // http://kb.mozillazine.org/Browser.send_pings.require_same_host user_pref("browser.send_pings.require_same_host", true); // ------------------------------------- +// Pref : Disable speculative pre-connections +// https://support.mozilla.org/en-US/kb/how-stop-firefox-making-automatic-connections#w_speculative-pre-connections +// https://bugzilla.mozilla.org/show_bug.cgi?id=814169 +user_pref("network.http.speculative-parallel-limit", 0); +// ------------------------------------- // Pref : Disable predictor / prefetching // Network predicator load pages before they are opened with mose hover for example user_pref("network.predictor.enabled", false); @@ -872,6 +928,7 @@ user_pref("security.insecure_field_warning.contextual.enabled", true); // CIS Version 1.2.0 October 21st, 2011 2.5.2 // [NOTE] This does not clear any passwords already saved user_pref("signon.rememberSignons", false); +user_pref("signon.debug", false); // ------------------------------------- // Pref : Set how often Firefox should ask for the master password // 0=the first time (default), 1=every time it's needed, 2=every n minutes @@ -935,6 +992,7 @@ user_pref("browser.link.open_newwindow.restriction", 0); // [DEFAULT: 0] // ------------------------------------- // Pref : Block popup windows user_pref("dom.disable_open_during_load", true); // [DEFAULT: true] +user_pref("privacy.popups.showBrowserMessage", true); // [DEFAULT: true] // ------------------------------------- // Pref : Set max popups from a single non-click event // [NOTE] Non-click events should never spawn a popup? @@ -1007,7 +1065,7 @@ user_pref("browser.formfill.expire_days", 0); // >>>>>>>>>>>>>>>>>>>> // Pref : Disable location user_pref("geo.enabled", false); -user_pref("geo.wifi.xhr.timeout", -1); +// user_pref("geo.wifi.xhr.timeout", 0); // ------------------------------------- // Pref : Disable GeoIP lookup on your address to set default search engine region // https://trac.torproject.org/projects/tor/ticket/16254 @@ -1015,9 +1073,9 @@ user_pref("geo.wifi.xhr.timeout", -1); user_pref("browser.search.countryCode", "US"); // [HIDDEN PREF] user_pref("browser.search.region", "US"); user_pref("browser.search.geoip.url", ""); -user_pref("browser.search.geoip.timeout", -1); user_pref("browser.search.geoSpecificDefaults.url", ""); user_pref("browser.snippets.geoUrl", ""); +// user_pref("browser.search.geoip.timeout", 0); // ------------------------------------- // Pref : Set language to match user_pref("intl.accept_languages", "en-US, en"); @@ -1051,7 +1109,7 @@ user_pref("browser.display.use_document_fonts", 0); // https://bugzilla.mozilla.org/789788 // https://trac.torproject.org/projects/tor/ticket/8455 user_pref("gfx.downloadable_fonts.enabled", false); -user_pref("gfx.downloadable_fonts.fallback_delay", -1); +// user_pref("gfx.downloadable_fonts.fallback_delay", 0); // ------------------------------------- // Pref : Disable WOFF2 (Web Open Font Format) user_pref("gfx.downloadable_fonts.woff2.enabled", false); @@ -1078,6 +1136,10 @@ user_pref("gfx.font_rendering.graphite.enabled", false); // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // Section : Plugins // >>>>>>>>>>>>>>>>>>>> +// Pref : Disable plugins +user_pref("plugin.disable", true); // [DEFAULT: true] // [FENNEC] +user_pref("dom.ipc.plugins.enabled", false); // [DEFAULT: false] // [FENNEC] +// ------------------------------------- // Pref : Set default plugin state (i.e. new plugins on discovery) to never activate // 0=disabled, 1=ask to activate, 2=active - you can override individual plugins user_pref("plugin.default.state", 0); @@ -1133,14 +1195,13 @@ user_pref("extensions.getAddons.cache.enabled", false) user_pref("browser.safebrowsing.allowOverride", false); user_pref("browser.safebrowsing.blockedURIs.enabled", false); user_pref("browser.safebrowsing.debug", false); -user_pref("browser.safebrowsing.downloads.enabled", false); +user_pref("browser.safebrowsing.downloads.enabled", false); // [DEFAULT: false] user_pref("browser.safebrowsing.downloads.remote.block_dangerous", false); user_pref("browser.safebrowsing.downloads.remote.block_dangerous_host", false); user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false); user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false); user_pref("browser.safebrowsing.downloads.remote.enabled", false); user_pref("browser.safebrowsing.downloads.remote.url", ""); -user_pref("browser.safebrowsing.downloads.remote.timeout_ms", -1); user_pref("browser.safebrowsing.id", ""); user_pref("browser.safebrowsing.malware.enabled", false); user_pref("browser.safebrowsing.passwords.enabled", false); @@ -1173,6 +1234,7 @@ user_pref("browser.safebrowsing.provider.mozilla.nextupdatetime", ""); user_pref("browser.safebrowsing.provider.mozilla.pver", ""); user_pref("browser.safebrowsing.provider.mozilla.updateURL", ""); user_pref("browser.safebrowsing.reportPhishURL", ""); +// user_pref("browser.safebrowsing.downloads.remote.timeout_ms", 0); // ------------------------------------- // Pref : Disable passive Tracking Protection // Passive TP annotates channels to lower the priority of network loads for resources on the tracking protection list. @@ -1240,7 +1302,7 @@ user_pref("browser.cache.offline.insecure.enable", false); // ------------------------------------- // Pref : Display a notification bar when websites offer data for offline use // http://kb.mozillazine.org/Browser.offline-apps.notify -user_pref("browser.offline-apps.notify", true); // [DEFAULT: true] +user_pref("browser.offline-apps.notify", false); // [DEFAULT: true] // ------------------------------------- // Pref : Disable service workers cache and cache storage // https://w3c.github.io/ServiceWorker/#privacy @@ -1365,7 +1427,7 @@ user_pref("dom.netinfo.enabled", false); // [DEFAULT: true] // https://developer.mozilla.org/docs/Web/API/Web_Speech_API // https://developer.mozilla.org/docs/Web/API/SpeechSynthesis // https://wiki.mozilla.org/HTML5_Speech_API -user_pref("media.webspeech.synth.enabled", false); // [DEFAULT: false] +user_pref("media.webspeech.synth.enabled", false); // [DEFAULT: true] user_pref("media.webspeech.synth_force_global_queue", false); // [DEFAULT: false] // ------------------------------------- // Pref : Disable video statistics - JS performance fingerprinting @@ -1427,7 +1489,7 @@ user_pref("dom.webaudio.enabled", false); // [DEFAULT: true] // Section : Personal // >>>>>>>>>>>>>>>>>>>> // Pref : Enable "Always enable zoom" feature by default -// Just for a better experience +// When true, zooming will be enabled on all sites, even ones that declare user-scalable=no user_pref("browser.ui.zoom.force-user-scalable", true); // [DEFAULT: false] // ------------------------------------- // Pref : Disable location bar autocomplete and suggestion types @@ -1438,6 +1500,11 @@ user_pref("browser.urlbar.autocomplete.enabled", false); // [DEFAULT: true] // Pref : Set bookmarks backups // To compensate for the case of bookmarks being lost due to a system crash. // http://kb.mozillazine.org/Browser.bookmarks.max_backups -user_pref("browser.bookmarks.max_backups", 2); // [DEFAULT: 5] +user_pref("browser.bookmarks.max_backups", 0); // [DEFAULT: 5] +// ------------------------------------- +// Pref : Set home provider syncing only on wifi +// 0=sync always, 1=sync only when on wifi +user_pref("home.sync.updateMode", 1); // [DEFAULT: 0] // [FENNEC] +// user_pref("home.sync.checkIntervalSecs", 3600); // [FENNEC] // //