Upload files to 'config'
This commit is contained in:
parent
54ef4c6c97
commit
7468f54e6e
|
@ -1,13 +1,13 @@
|
|||
// **********************************************************************************
|
||||
// user.js | Firefox desktop
|
||||
// https://git.nixnet.services/Narsil/mozilla.cfg
|
||||
// user.js | Firefox for Pinephone
|
||||
// https://git.nixnet.services/Narsil/Pinephone.cfg
|
||||
// **********************************************************************************
|
||||
//
|
||||
// Author : Narsil : https://git.nixnet.services/Narsil
|
||||
//
|
||||
// Based on : arkenfox : https://github.com/arkenfox/user.js
|
||||
//
|
||||
// License : https://git.nixnet.services/Narsil/mozilla.cfg/raw/branch/master/LICENSE.txt
|
||||
// License : https://git.nixnet.services/Narsil/Pinephone-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
|
||||
lockPref("browser.startup.page", 0);
|
||||
defaultPref("browser.startup.page", 0);
|
||||
// -------------------------------------
|
||||
// Set HOME+NEWWINDOW page
|
||||
lockPref("browser.startup.homepage", "about:blank");
|
||||
defaultPref("browser.startup.homepage", "about:blank");
|
||||
// -------------------------------------
|
||||
// Set NEWTAB page
|
||||
// true=Activity Stream (default), false=blank page
|
||||
|
@ -307,7 +307,7 @@ lockPref("browser.fixup.alternate.enabled", false);; // [DEFAULT: false FF104+]
|
|||
// -------------------------------------
|
||||
// Disable live search suggestions
|
||||
defaultPref("browser.search.suggest.enabled", false);
|
||||
defaultPref("browser.urlbar.suggest.searches", false);
|
||||
lockPref("browser.urlbar.suggest.searches", false);
|
||||
defaultPref("browser.urlbar.showSearchSuggestionsFirst", false);
|
||||
// -------------------------------------
|
||||
// Disable location bar making speculative connections [FF56+]
|
||||
|
@ -482,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);
|
||||
|
@ -606,11 +606,11 @@ defaultPref("browser.contentblocking.category", "strict");
|
|||
// lockPref("privacy.antitracking.enableWebcompat", false);
|
||||
// -------------------------------------
|
||||
// Enable state partitioning of service workers [FF96+]
|
||||
lockPref("privacy.partition.serviceWorkers", true); // [DEFAULT: true FF105+]
|
||||
defaultPref("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
|
||||
|
@ -668,8 +668,8 @@ lockPref("privacy.sanitize.timeSpan", 0);
|
|||
// RFP (RESIST FINGERPRINTING)
|
||||
// >>>>>>>>>>>>>>>>>>>>>
|
||||
//
|
||||
// Enable privacy.resistFingerprinting [FF41+]
|
||||
defaultPref("privacy.resistFingerprinting", true);
|
||||
// Disable privacy.resistFingerprinting [FF41+]
|
||||
// defaultPref("privacy.resistFingerprinting", true);
|
||||
// -------------------------------------
|
||||
// Set new window size rounding max values [FF55+]
|
||||
// lockPref("privacy.window.maxInnerWidth", 1600);
|
||||
|
@ -697,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
|
||||
lockPref("browser.link.open_newwindow", 3); // [DEFAULT: 3]
|
||||
defaultPref("browser.link.open_newwindow", 3); // [DEFAULT: 3]
|
||||
// -------------------------------------
|
||||
// Set all open window methods to abide by "browser.link.open_newwindow"
|
||||
lockPref("browser.link.open_newwindow.restriction", 0);
|
||||
defaultPref("browser.link.open_newwindow.restriction", 0);
|
||||
// -------------------------------------
|
||||
// Disable WebGL (Web Graphics Library)
|
||||
defaultPref("webgl.disabled", true);
|
||||
|
@ -778,11 +778,11 @@ defaultPref("extensions.formautofill.heuristics.enabled", false); // [FF55+]
|
|||
// defaultPref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN PREF]
|
||||
// -------------------------------------
|
||||
// Force GPU sandboxing (Linux, default on Windows)
|
||||
defaultPref("security.sandbox.gpu.level", 1);
|
||||
// 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
|
||||
|
@ -801,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);
|
||||
|
@ -966,24 +966,24 @@ defaultPref("media.peerconnection.enabled", false);
|
|||
// 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);
|
||||
|
@ -1026,6 +1026,10 @@ 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,13 +1046,6 @@ 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+]
|
||||
|
@ -1057,6 +1054,21 @@ 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