Upload files to 'config'
This commit is contained in:
parent
919a0238ec
commit
54ef4c6c97
|
@ -1,13 +1,13 @@
|
|||
// **********************************************************************************
|
||||
// user.js | Firefox for Pinephone
|
||||
// https://git.nixnet.services/Narsil/Pinephone.cfg
|
||||
// user.js | Firefox desktop
|
||||
// https://git.nixnet.services/Narsil/mozilla.cfg
|
||||
// **********************************************************************************
|
||||
//
|
||||
// Author : Narsil : https://git.nixnet.services/Narsil
|
||||
//
|
||||
// Based on : arkenfox : https://github.com/arkenfox/user.js
|
||||
//
|
||||
// License : https://git.nixnet.services/Narsil/Pinephone-mozilla.cfg/raw/branch/master/LICENSE.txt
|
||||
// License : https://git.nixnet.services/Narsil/mozilla.cfg/raw/branch/master/LICENSE.txt
|
||||
//
|
||||
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
||||
// PROTECTION
|
||||
|
@ -31,10 +31,10 @@ lockPref("browser.shell.checkDefaultBrowser", false);
|
|||
// -------------------------------------
|
||||
// Set startup page [SETUP-CHROME]
|
||||
// 0=blank, 1=home, 2=last visited page, 3=resume previous session
|
||||
defaultPref("browser.startup.page", 0);
|
||||
lockPref("browser.startup.page", 0);
|
||||
// -------------------------------------
|
||||
// Set HOME+NEWWINDOW page
|
||||
defaultPref("browser.startup.homepage", "about:blank");
|
||||
lockPref("browser.startup.homepage", "about:blank");
|
||||
// -------------------------------------
|
||||
// Set NEWTAB page
|
||||
// true=Activity Stream (default), false=blank page
|
||||
|
@ -77,6 +77,7 @@ defaultPref("intl.accept_languages", "en-US, en");
|
|||
// Use en-US locale regardless of the system or region locale
|
||||
defaultPref("javascript.use_us_english_locale", true); // [HIDDEN PREF]
|
||||
defaultPref("privacy.spoof_english", 2);
|
||||
defaultPref("intl.locale.requested", "en-US";
|
||||
//
|
||||
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
||||
// QUIETER FOX
|
||||
|
@ -306,7 +307,7 @@ lockPref("browser.fixup.alternate.enabled", false);; // [DEFAULT: false FF104+]
|
|||
// -------------------------------------
|
||||
// Disable live search suggestions
|
||||
defaultPref("browser.search.suggest.enabled", false);
|
||||
lockPref("browser.urlbar.suggest.searches", false);
|
||||
defaultPref("browser.urlbar.suggest.searches", false);
|
||||
defaultPref("browser.urlbar.showSearchSuggestionsFirst", false);
|
||||
// -------------------------------------
|
||||
// Disable location bar making speculative connections [FF56+]
|
||||
|
@ -481,8 +482,8 @@ defaultPref("network.http.referer.XOriginTrimmingPolicy", 2);
|
|||
// >>>>>>>>>>>>>>>>>>>>>
|
||||
//
|
||||
// Enable Container Tabs and its UI setting [FF50+]
|
||||
// defaultPref("privacy.userContext.enabled", true);
|
||||
// defaultPref("privacy.userContext.ui.enabled", true);
|
||||
defaultPref("privacy.userContext.enabled", true);
|
||||
defaultPref("privacy.userContext.ui.enabled", true);
|
||||
// -------------------------------------
|
||||
// Set behavior on "+ Tab" button to display container menu on left click [FF74+]
|
||||
// lockPref("privacy.userContext.newTabContainerOnLeftClick.enabled", true);
|
||||
|
@ -491,9 +492,6 @@ defaultPref("network.http.referer.XOriginTrimmingPolicy", 2);
|
|||
// PLUGINS / MEDIA / WEBRTC
|
||||
// >>>>>>>>>>>>>>>>>>>>>
|
||||
//
|
||||
// Disable WebRTC (Web Real-Time Communication)
|
||||
defaultPref("media.peerconnection.enabled", false);
|
||||
// -------------------------------------
|
||||
// Force WebRTC inside the proxy [FF70+]
|
||||
lockPref("media.peerconnection.ice.proxy_only_if_behind_proxy", true);
|
||||
// -------------------------------------
|
||||
|
@ -602,17 +600,17 @@ defaultPref("extensions.webservice.discoverURL", "");
|
|||
// >>>>>>>>>>>>>>>>>>>>>
|
||||
//
|
||||
// Enable ETP Strict Mode [FF86+]
|
||||
lockPref("browser.contentblocking.category", "strict");
|
||||
defaultPref("browser.contentblocking.category", "strict");
|
||||
// -------------------------------------
|
||||
// Disable ETP web compat features [FF93+]
|
||||
// lockPref("privacy.antitracking.enableWebcompat", false);
|
||||
// -------------------------------------
|
||||
// Enable state partitioning of service workers [FF96+]
|
||||
defaultPref("privacy.partition.serviceWorkers", true); // [DEFAULT: true FF105+]
|
||||
lockPref("privacy.partition.serviceWorkers", true); // [DEFAULT: true FF105+]
|
||||
// -------------------------------------
|
||||
// Enable APS (Always Partitioning Storage)
|
||||
lockPref("privacy.partition.always_partition_third_party_non_cookie_storage", true); // [FF104+] [DEFAULT: true FF109+}
|
||||
lockPref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false); // [FF105+] [DEFAULT: false FF109+]
|
||||
lockPref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false); // [FF105+]// [DEFAULT: false FF109+]
|
||||
//
|
||||
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
||||
// SHUTDOWN & SANITIZING
|
||||
|
@ -670,8 +668,8 @@ lockPref("privacy.sanitize.timeSpan", 0);
|
|||
// RFP (RESIST FINGERPRINTING)
|
||||
// >>>>>>>>>>>>>>>>>>>>>
|
||||
//
|
||||
// Disable privacy.resistFingerprinting [FF41+]
|
||||
// defaultPref("privacy.resistFingerprinting", true);
|
||||
// Enable privacy.resistFingerprinting [FF41+]
|
||||
defaultPref("privacy.resistFingerprinting", true);
|
||||
// -------------------------------------
|
||||
// Set new window size rounding max values [FF55+]
|
||||
// lockPref("privacy.window.maxInnerWidth", 1600);
|
||||
|
@ -699,10 +697,10 @@ lockPref("widget.non-native-theme.enabled", true); // [DEFAULT: true]
|
|||
// -------------------------------------
|
||||
// Enforce links targeting new windows to open in a new tab instead
|
||||
// 1=most recent window or tab, 2=new window, 3=new tab
|
||||
defaultPref("browser.link.open_newwindow", 3); // [DEFAULT: 3]
|
||||
lockPref("browser.link.open_newwindow", 3); // [DEFAULT: 3]
|
||||
// -------------------------------------
|
||||
// Set all open window methods to abide by "browser.link.open_newwindow"
|
||||
defaultPref("browser.link.open_newwindow.restriction", 0);
|
||||
lockPref("browser.link.open_newwindow.restriction", 0);
|
||||
// -------------------------------------
|
||||
// Disable WebGL (Web Graphics Library)
|
||||
defaultPref("webgl.disabled", true);
|
||||
|
@ -779,9 +777,12 @@ defaultPref("extensions.formautofill.heuristics.enabled", false); // [FF55+]
|
|||
// Disable page thumbnail collection
|
||||
// defaultPref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN PREF]
|
||||
// -------------------------------------
|
||||
// Force GPU sandboxing (Linux, default on Windows)
|
||||
defaultPref("security.sandbox.gpu.level", 1);
|
||||
// -------------------------------------
|
||||
// Enable Site Isolation
|
||||
// defaultPref("fission.autostart", true);
|
||||
// defaultPref("gfx.webrender.all", true);
|
||||
defaultPref("fission.autostart", true);
|
||||
defaultPref("gfx.webrender.all", true);
|
||||
//
|
||||
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
||||
// OPTIONAL HARDENING
|
||||
|
@ -800,9 +801,9 @@ defaultPref("gfx.font_rendering.graphite.enabled", false);
|
|||
lockPref("javascript.options.asmjs", false);
|
||||
// -------------------------------------
|
||||
// Disable Ion and baseline JIT to harden against JS exploits
|
||||
// defaultPref("javascript.options.ion", false);
|
||||
// defaultPref("javascript.options.baselinejit", false);
|
||||
// defaultPref("javascript.options.jit_trustedprincipals", true); // [FF75+] [HIDDEN PREF]
|
||||
defaultPref("javascript.options.ion", false);
|
||||
defaultPref("javascript.options.baselinejit", false);
|
||||
defaultPref("javascript.options.jit_trustedprincipals", true); // [FF75+] [HIDDEN PREF]
|
||||
// -------------------------------------
|
||||
// Disable WebAssembly [FF52+]
|
||||
defaultPref("javascript.options.wasm", false);
|
||||
|
@ -929,7 +930,7 @@ defaultPref("extensions.systemAddon.update.url", ""); // [FF44+]
|
|||
defaultPref("network.cookie.cookieBehavior", 5); // [DEFAULT: 5 FF103+]
|
||||
// lockPref("privacy.partition.network_state.ocsp_cache", true);
|
||||
// lockPref("privacy.query_stripping.enabled", true); // [FF101+] [ETP FF102+]
|
||||
lockPref("privacy.query_stripping.strip_list", "__hsfp __hssc __hstc __s _hsenc _openstat dclid fbclid gbraid gclid hsCtaTracking igshid mc_eid ml_subscriber ml_subscriber_hash msclkid oft_c oft_ck oft_d oft_id oft_ids oft_k oft_lk oft_sk oly_anon_id oly_enc_id rb_clickid s_cid twclid vero_conv vero_id wbraid wickedid yclid");
|
||||
defaultPref("privacy.query_stripping.strip_list", "__hsfp __hssc __hstc __s _hsenc _openstat dclid fbclid gbraid gclid hsCtaTracking igshid mc_eid ml_subscriber ml_subscriber_hash msclkid oft_c oft_ck oft_d oft_id oft_ids oft_k oft_lk oft_sk oly_anon_id oly_enc_id rb_clickid s_cid twclid vero_conv vero_id wbraid wickedid yclid");
|
||||
// lockPref("network.http.referer.disallowCrossSiteRelaxingDefault", true);
|
||||
// lockPref("network.http.referer.disallowCrossSiteRelaxingDefault.top_navigation", true); // [FF100+]
|
||||
// lockPref("privacy.trackingprotection.enabled", true);
|
||||
|
@ -953,6 +954,9 @@ defaultPref("dom.push.enabled", false);
|
|||
defaultPref("dom.push.connection.enabled", false);
|
||||
defaultPref("dom.push.serverURL", "");
|
||||
defaultPref("dom.push.userAgentID", "");
|
||||
// -------------------------------------
|
||||
// Disable WebRTC (Web Real-Time Communication)
|
||||
defaultPref("media.peerconnection.enabled", false);
|
||||
//
|
||||
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
||||
// DON'T BOTHER: FINGERPRINTING
|
||||
|
@ -962,24 +966,24 @@ defaultPref("dom.push.userAgentID", "");
|
|||
// lockPref("browser.zoom.siteSpecific", false);
|
||||
// lockPref("dom.enable_performance", false);
|
||||
// lockPref("dom.enable_resource_timing", false);
|
||||
// lockPref("dom.maxHardwareConcurrency", 2);
|
||||
// lockPref("font.system.whitelist", ""); // [HIDDEN PREF]
|
||||
// lockPref("general.appname.override", ""); // [HIDDEN PREF]
|
||||
// lockPref("general.appversion.override", ""); // [HIDDEN PREF]
|
||||
// lockPref("general.buildID.override", "20181001000000"); // [HIDDEN PREF]
|
||||
// lockPref("general.oscpu.override", ""); // [HIDDEN PREF]
|
||||
// lockPref("general.platform.override", ""); // [HIDDEN PREF]
|
||||
// lockPref("general.useragent.override", "Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Firefox/102.0"); // [HIDDEN PREF]
|
||||
// lockPref("media.ondevicechange.enabled", false);
|
||||
// lockPref("media.video_stats.enabled", false);
|
||||
// lockPref("ui.use_standins_for_native_colors", true);
|
||||
// lockPref("webgl.enable-debug-renderer-info", false);
|
||||
defaultPref("browser.display.use_document_fonts", 0);
|
||||
defaultPref("dom.maxHardwareConcurrency", 2);
|
||||
defaultPref("dom.w3c_touch_events.enabled", 1); // [BUG - Scroll doesn't work]
|
||||
defaultPref("general.useragent.override", "Mozilla/5.0 (Android 10; Mobile; rv:102.0) Gecko/102.0 Firefox/102.0"); // HIDDEN PREF
|
||||
lockPref("device.sensors.enabled", false);
|
||||
lockPref("dom.gamepad.enabled", false);
|
||||
lockPref("dom.netinfo.enabled", false);
|
||||
lockPref("dom.vibrator.enabled", false);
|
||||
lockPref("dom.w3c_touch_events.enabled", 0);
|
||||
lockPref("dom.webaudio.enabled", false);
|
||||
lockPref("media.navigator.enabled", false);
|
||||
lockPref("media.webspeech.synth.enabled", false);
|
||||
|
@ -1022,10 +1026,6 @@ lockPref("extensions.getAddons.cache.enabled", false);
|
|||
// Disable search engine updates (e.g. OpenSearch)
|
||||
defaultPref("browser.search.update", false);
|
||||
//
|
||||
// APPEARANCE
|
||||
//
|
||||
defaultPref("toolkit.legacyUserProfileCustomizations.stylesheets", true); // [FF68+] allow userChrome/userContent
|
||||
//
|
||||
// CONTENT BEHAVIOR
|
||||
//
|
||||
defaultPref("accessibility.typeaheadfind", false); // enable "Find As You Type"
|
||||
|
@ -1042,6 +1042,13 @@ defaultPref("browser.newtabpage.activity-stream.section.highlights.includeBookma
|
|||
defaultPref("browser.newtabpage.activity-stream.section.highlights.includeDownloads", false);
|
||||
defaultPref("browser.newtabpage.activity-stream.section.highlights.includeVisited", false);
|
||||
//
|
||||
// HTML5 MEDIA AUTOPLAY
|
||||
//
|
||||
// defaultPref("media.autoplay.default", 5); // [FF63+]
|
||||
// 0=Allow all, 1=Block non-muted media (default), 5=Block all
|
||||
// defaultPref("media.autoplay.blocking_policy", 2); // disable autoplay if you interacted with the site [FF78+]
|
||||
// 0=sticky (default), 1=transient, 2=user
|
||||
//
|
||||
// UX FEATURES
|
||||
//
|
||||
lockPref("extensions.pocket.enabled", false); // Pocket Account [FF46+]
|
||||
|
@ -1050,21 +1057,6 @@ lockPref("identity.fxaccounts.enabled", false); // Firefox Accounts & Sync [FF60
|
|||
defaultPref("reader.parse-on-load.enabled", false); // Reader View
|
||||
defaultPref("browser.tabs.firefox-view", false); // Firefox-view
|
||||
//
|
||||
// PERFORMANCE AND SOME TRICKS
|
||||
//
|
||||
defaultPref("layers.acceleration.force-enabled", true);
|
||||
// defaultPref("ui.click_hold_context_menus.delay", 50000); // [BUG - Opening links don't work]
|
||||
defaultPref("toolkit.cosmeticAnimations.enabled", false);
|
||||
defaultPref("browser.tabs.animate", false);
|
||||
defaultPref("browser.fullscreen.animate", false);
|
||||
defaultPref("browser.stopReloadAnimation.enabled", false);
|
||||
defaultPref("browser.download.animateNotifications", false);
|
||||
defaultPref("browser.suppress_first_window_animation", true);
|
||||
defaultPref("dom.animations.offscreen-throttling", true);
|
||||
defaultPref("media.hardwaremediakeys.enabled", true);
|
||||
defaultPref("browser.uidensity", 2);
|
||||
defaultPref("browser.tabs.inTitlebar", 1);
|
||||
//
|
||||
// OTHER
|
||||
//
|
||||
// lockPref("browser.bookmarks.max_backups", 2);
|
||||
|
|
Loading…
Reference in New Issue