From 1be2cda14be3a148324789315023ba12bcc2bfad Mon Sep 17 00:00:00 2001 From: quindecim <49964366+quindecim@users.noreply.github.com> Date: Thu, 16 May 2019 09:59:26 +0000 Subject: [PATCH] Update user.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Imported (even if inactive) same prefs of desktop ⛔️ Disabled reveal buildID ℹ️ Changed `#test` line. from `user.js.applied` to `_config.applied` ℹ️ Set history leaks via enumeration (PER TAB: back/forward) from `8` to `20` ℹ️ Added UI section DESKTOP ✅ Enabled app from auto-update (DESKTOP ONLY) ✅ Locked "close tab with dbclick" function (DESKTOP ONLY) ✅ Added "PROTECTION" section to lock mozilla.cfg file itself (DESKTOP ONLY) ⛔️ Locked reveal buildID ⛔️ Locked more activity stream contents ⛔️ Locked Browser Error Reporter ⛔️ Locked contentblocking reportBreakage ⛔️ Locked Onboarding + tour ⛔️ Locked check default browser on first run ⛔️ Locked more unwanted connections ⛔️ Locked browser translate integration ⛔️ Locked raw TCP socket support (mozTCPSocket) ⛔️ Locked more UI tours ⛔️ Locked more safebrowsing connections ⛔️ Locked more Normandy/SHIELD ⛔️ Defaulted browser animations (DESKTOP ONLY) ⛔️ Defaulted autohide download button (DESKTOP ONLY) ⛔️ Locked and hidden third-party cookie and tracking protection UI (DESKTOP ONLY) ℹ️ Changed `#test` line. from `user.js.applied` to `_config.applied` ℹ️ Set history leaks via enumeration (PER TAB: back/forward) from 8 to 20 ℹ️ Added UI section --- user.js | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 108 insertions(+), 4 deletions(-) diff --git a/user.js b/user.js index 9b7009e..09d3800 100644 --- a/user.js +++ b/user.js @@ -90,6 +90,13 @@ user_pref("browser.newtabpage.enhanced", false); // [DESKTOP] user_pref("browser.newtab.preload", false); // [DESKTOP] user_pref("browser.newtabpage.directory.ping", ""); // [DESKTOP] user_pref("browser.newtabpage.directory.source", "data:text/plain,{}"); // [DESKTOP] +user_pref("browser.newtabpage.activity-stream.aboutHome.enabled", false); // [DESKTOP] +user_pref("browser.newtabpage.activity-stream.asrouter.messageProviders", ""); // [DESKTOP] +// ------------------------------------- +// Pref : Don't reveal build ID +// Value taken from Tor Browser +// https://bugzilla.mozilla.org/show_bug.cgi?id=583181 +user_pref("browser.startup.homepage_override.mstone", "ignore"); // // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // Section : Quiet Fox @@ -232,6 +239,39 @@ user_pref("extensions.webservice.discoverURL", ""); // [DESKTOP] // Pref : Disable Firefox Hello metrics collection // https://groups.google.com/d/topic/mozilla.dev.platform/nyVkCx-_sFw/discussion user_pref("loop.logDomains",false); // [DESKTOP] +// ------------------------------------- +// Pref : Disable Browser Error Reporter +// https://support.mozilla.org/en-US/kb/firefox-nightly-error-collection +// https://firefox-source-docs.mozilla.org/browser/browser/BrowserErrorReporter.html +user_pref("browser.chrome.errorReporter.enabled", false); // [DESKTOP] +user_pref("browser.chrome.errorReporter.submitUrl", ""); // [DESKTOP] +user_pref("browser.chrome.errorReporter.infoURL", ""); // [DESKTOP] +user_pref("browser.chrome.errorReporter.submitUrl", ""); // [DESKTOP] +// ------------------------------------- +// Pref : Disable contentblocking reportBreakage +user_pref("browser.contentblocking.reportBreakage.enabled", false); // [DESKTOP] +user_pref("browser.contentblocking.reportBreakage.url", ""); // [DESKTOP] +user_pref("browser.contentblocking.rejecttrackers.reportBreakage.enabled", false); // [DESKTOP] +// ------------------------------------- +// Pref : Disable Onboarding +// [NOTE] This setting is just in case it comeback +// Onboarding is an interactive tour/setup for new installs/profiles and features. Every time +// about:home or about:newtab is opened, the onboarding overlay is injected into that page +// [NOTE] Onboarding uses Google Analytics, and leaks resource://URIs +// https://wiki.mozilla.org/Firefox/Onboarding +// https://github.com/mozilla/onboard/commit/db4d6c8726c89a5d6a241c1b1065827b525c5baf +// https://bugzilla.mozilla.org/863246#c154 +user_pref("browser.onboarding.enabled", false); // [DESKTOP] // [DEPRECATED] +user_pref("browser.onboarding.notification.tour-ids-queue", ""); // [DESKTOP] // [DEPRECATED] +// ------------------------------------- +// Pref : Onboarding tour disable because of included telemetry +// [NOTE] This setting is just in case it comeback +user_pref("browser.onboarding.notification.finished", true); // [DESKTOP] // [DEPRECATED] +user_pref("browser.onboarding.tour.onboarding-tour-customize.completed", true); // [DESKTOP] // [DEPRECATED] +user_pref("browser.onboarding.tour.onboarding-tour-performance.completed", true); // [DESKTOP] // [DEPRECATED] +// ------------------------------------- +// Pref : Disable check default browser on first run +user_pref("browser.shell.didSkipDefaultBrowserCheckOnFirstRun", true); // [DESKTOP] // // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // Section : IJWY To Shut Up @@ -247,19 +287,35 @@ user_pref("app.privacyURL", ""); // [FENNEC] user_pref("app.releaseNotesURL", ""); user_pref("app.support.baseURL", ""); user_pref("app.supportURL", ""); // [FENNEC] +user_pref("app.vendorURL", ""); // [DESKTOP] user_pref("media.decoder-doctor.new-issue-endpoint", ""); user_pref("network.trr.confirmationNS", ""); user_pref("services.settings.default_signer", ""); // [DESKTOP] user_pref("services.settings.server", ""); // [DESKTOP] +user_pref("accessibility.support.url", ""); // [DESKTOP] +user_pref("browser.dictionaries.download.url", ""); // [DESKTOP] +user_pref("browser.geolocation.warning.infoURL", ""); // [DESKTOP] +user_pref("browser.newtabpage.activity-stream.asrouter.providers.cfr", ""); // [DESKTOP] +user_pref("browser.newtabpage.activity-stream.asrouter.providers.onboarding", ""); // [DESKTOP] +user_pref("browser.newtabpage.activity-stream.fxaccounts.endpoint", ""); // [DESKTOP] +user_pref("browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.searchEngines", ""); // [DESKTOP] +user_pref("browser.search.searchEnginesURL", ""); // [DESKTOP] // ------------------------------------- // Pref : Disable app from auto-update user_pref("app.update.enabled", false); +user_pref("app.update.auto", false); // [DESKTOP] user_pref("app.update.autodownload", ""); // [TEST] user_pref("app.update.channel", ""); // [TEST] -user_pref("app.update.url.android", ""); +user_pref("app.update.url", ""); // [DESKTOP] +user_pref("app.update.url.android", ""); // [FENNEC] +user_pref("app.update.url.details", ""); // [DESKTOP] +user_pref("app.update.url.manual", ""); // [DESKTOP] // 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] +user_pref("app.update.service.enabled", false); // [DESKTOP] +user_pref("app.update.silent", false); // [DESKTOP] +user_pref("app.update.staging.enabled", false); // [DESKTOP] // ------------------------------------- // Pref : Test To Make FFox Silent user_pref("security.content.signature.root_hash", ""); @@ -272,12 +328,19 @@ user_pref("urlclassifier.passwordAllowTable", ""); // https://docs.google.com/document/d/1eqLb6cGjDL9XooSYEEo7mE-zKQ-o-AuDTcEyNhfBMBM/edit // http://www.ghacks.net/2016/07/26/firefox-flyweb user_pref("dom.flyweb.enabled", false); // [DESKTOP] +// ------------------------------------- +// Pref : Disable browser translate integration +// https://www.ghacks.net/2018/09/09/mozilla-working-on-google-translate-integration-in-firefox/ +user_pref("browser.translation.engine", ""); // [DESKTOP] +user_pref("browser.translation.detectLanguage", false); // [DESKTOP] +user_pref("browser.translation.neverForLanguages", ""); // [DESKTOP] +user_pref("browser.translation.ui.show", false); // [DESKTOP] // // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // Section : Miscellaneous // >>>>>>>>>>>>>>>>>>>>>> // Pref : Test user.js in about:config -user_pref("user.js.applied", true); // [FENNEC] +user_pref("_config.applied", true); // [FENNEC] // ------------------------------------- // Pref : Updates addons automatically // https://blog.mozilla.org/addons/how-to-turn-off-add-on-updates/ @@ -546,6 +609,9 @@ user_pref("security.xpconnect.plugin.unrestricted", false); // [DESKTOP] // [NOTE] See second listed bug: may cause black on black for elements with undefined colors // https://bugzilla.mozilla.org/buglist.cgi?bug_id=232227,1330876 user_pref("ui.use_standins_for_native_colors", true); // [DESKTOP] +// ------------------------------------- +// Pref : Close tab with double click action +// user_pref("browser.tabs.closeTabByDblclick", true); // [DESKTOP] // // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // Section : Web Workers @@ -658,6 +724,12 @@ user_pref("browser.startup.homepage_override.buildID", "20100101"); // [DESKTOP] // https://wiki.mozilla.org/WebAPI/ArchiveAPI // https://bugzilla.mozilla.org/show_bug.cgi?id=1342361 user_pref("dom.archivereader.enabled", false); // [DESKTOP] +// ------------------------------------- +// Pref : Disable raw TCP socket support (mozTCPSocket) +// https://trac.torproject.org/projects/tor/ticket/18863 +// https://www.mozilla.org/en-US/security/advisories/mfsa2015-97/ +// https://developer.mozilla.org/docs/Mozilla/B2G_OS/API/TCPSocket +user_pref("dom.mozTCPSocket.enabled", false); // [DESKTOP] // // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // Section : Media / Camera / Mic @@ -745,7 +817,7 @@ user_pref("browser.urlbar.trimURLs", false); // Pref : Limit history leaks via enumeration (PER TAB: back/forward) // This is a PER TAB session history. You still have a full history stored under all history // Minimum=1=currentpage, 2 is the recommended minimum as some pages use it as a means of referral (e.g. hotlinking), 4 or 6 or 10 may be more practical -user_pref("browser.sessionhistory.max_entries", 8); // [DEFAULT: 50] +user_pref("browser.sessionhistory.max_entries", 20); // [DEFAULT: 50] // ------------------------------------- // Pref : Disable CSS querying page history - CSS history leak // [NOTE] This has NEVER been fully "resolved": in Mozilla/docs it is stated it's only in 'certain circumstances' @@ -779,6 +851,7 @@ user_pref("browser.taskbar.previews.enable", false); // [WINDOWS] // [DESKTOP] // Pref : Disable UITour backend so there is no chance that a remote page can use it user_pref("browser.uitour.enabled", false); // [DESKTOP] user_pref("browser.uitour.url", ""); // [DESKTOP] +user_pref("browser.uitour.themeOrigin", ""); // [DESKTOP] // ------------------------------------- // Pref : Disable location bar making speculative connections // https://bugzilla.mozilla.org/1348275 @@ -1329,7 +1402,7 @@ user_pref("browser.sessionstore.privacy_level", 2); // This can also affect entries in the "Recently Closed Tabs" feature: i.e. the longer the interval the more chance a quick tab open/close won't be captured. // This longer interval *may* affect history but we cannot replicate any history not recorded // https://bugzilla.mozilla.org/1304389 -user_pref("browser.sessionstore.interval", 30000); +// user_pref("browser.sessionstore.interval", 30000); // ------------------------------------- // Pref : Disable favicons in web notifications user_pref("alerts.showFavicons", false); @@ -1543,7 +1616,9 @@ user_pref("browser.safebrowsing.provider.google.advisoryURL", ""); user_pref("browser.safebrowsing.provider.google.pver", ""); user_pref("browser.safebrowsing.provider.google.advisoryName", ""); user_pref("browser.safebrowsing.provider.google.gethashURL", ""); +user_pref("browser.safebrowsing.provider.google.lastupdatetime", ""); // [DESKTOP] user_pref("browser.safebrowsing.provider.google.lists", ""); +user_pref("browser.safebrowsing.provider.google.nextupdatetime", ""); // [DESKTOP] user_pref("browser.safebrowsing.provider.google.reportMalwareMistakeURL", ""); user_pref("browser.safebrowsing.provider.google.reportPhishMistakeURL", ""); user_pref("browser.safebrowsing.provider.google.reportURL", ""); @@ -1551,7 +1626,9 @@ user_pref("browser.safebrowsing.provider.google.updateURL", ""); user_pref("browser.safebrowsing.provider.google4.advisoryName", ""); user_pref("browser.safebrowsing.provider.google4.advisoryURL", ""); user_pref("browser.safebrowsing.provider.google4.gethashURL", ""); +user_pref("browser.safebrowsing.provider.google4.lastupdatetime", ""); // [DESKTOP] user_pref("browser.safebrowsing.provider.google4.lists", ""); +user_pref("browser.safebrowsing.provider.google4.nextupdatetime", ""); // [DESKTOP] user_pref("browser.safebrowsing.provider.google4.reportMalwareMistakeURL", ""); user_pref("browser.safebrowsing.provider.google4.reportPhishMistakeURL", ""); user_pref("browser.safebrowsing.provider.google4.reportURL", ""); @@ -1560,6 +1637,7 @@ user_pref("browser.safebrowsing.provider.google4.dataSharing.enabled", false); user_pref("browser.safebrowsing.provider.google4.dataSharingURL", ""); user_pref("browser.safebrowsing.provider.google4.pver", ""); user_pref("browser.safebrowsing.provider.mozilla.gethashURL", ""); +user_pref("browser.safebrowsing.provider.mozilla.lastupdatetime", ""); // [DESKTOP] user_pref("browser.safebrowsing.provider.mozilla.lists", ""); user_pref("browser.safebrowsing.provider.mozilla.lists.base", ""); user_pref("browser.safebrowsing.provider.mozilla.lists.content", ""); @@ -1615,6 +1693,9 @@ user_pref("network.allow-experiments", false); // [DESKTOP] // https://github.com/mozilla/normandy user_pref("app.normandy.enabled", false); // [DESKTOP] user_pref("app.normandy.api_url", ""); // [DESKTOP] +user_pref("app.normandy.first_run", false); // [DESKTOP] +user_pref("app.normandy.shieldLearnMoreUrl", ""); // [DESKTOP] +user_pref("app.normandy.user_id", ""); // [DESKTOP] // ------------------------------------- // Pref : Disable Form Autofill // [NOTE] Stored data is NOT secure (uses a JSON file) @@ -1923,6 +2004,29 @@ user_pref("dom.network.enabled", false); // [DESKTOP] user_pref("dom.telephony.enabled", false); // // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +// Section : UI (User Interface) +// >>>>>>>>>>>>>>>>>>>>> +// Pref : Disable third-party cookie UI +// user_pref("browser.contentblocking.rejecttrackers.ui.enabled", false); // [DESKTOP] +// ------------------------------------- +// Pref : Disable tracking protection UI list editing under url bar popup +// user_pref("browser.contentblocking.trackingprotection.control-center.ui.enabled", false); // [DESKTOP] +// ------------------------------------- +// Pref : Disable tracking protection UI list editing under preferences +// user_pref("browser.contentblocking.trackingprotection.ui.enabled", false); // [DESKTOP] +// ------------------------------------- +// Pref : Disable auto hide download button +// user_pref("browser.download.autohideButton", false); // [DESKTOP] +// ------------------------------------- +// Pref : Disable browser animation +// https://bugzilla.mozilla.org/show_bug.cgi?id=1352069 +// user_pref("toolkit.cosmeticAnimations.enabled", false); // [DESKTOP] +// user_pref("browser.tabs.animate", false); // [DESKTOP] // [DEPRECATED] +// user_pref("browser.fullscreen.animate", false); // [DESKTOP] // [DEPRECATED] +// user_pref("browser.download.animateNotifications", false); // [DESKTOP] // [DEPRECATED] +// user_pref("alerts.disableSlidingEffect", false); // [DESKTOP] // [DEPRECATED] +// +// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> // Section : Personal // >>>>>>>>>>>>>>>>>>>> // Pref : Enable "Always enable zoom" feature by default