LibreAwoo: switch from defaultPref() to pref()

I am practically pretending about:config doesn't exist anyway
This commit is contained in:
Aminda Suomalainen 2024-02-14 12:47:09 +02:00
parent d3572ceae4
commit 9dab5db57a
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -10,21 +10,21 @@
// Note to self on disabling protection of Mozilla pages. This may be a // Note to self on disabling protection of Mozilla pages. This may be a
// LibreWolf default so thus commented: // LibreWolf default so thus commented:
// via https://www.ghacks.net/2017/10/27/how-to-enable-firefox-webextensions-on-mozilla-websites/ // via https://www.ghacks.net/2017/10/27/how-to-enable-firefox-webextensions-on-mozilla-websites/
//defaultPref("extensions.webextensions.restrictedDomains", ""); //pref("extensions.webextensions.restrictedDomains", "");
//defaultPref("privacy.resistFingerprinting.block_mozAddonManage", true); //pref("privacy.resistFingerprinting.block_mozAddonManage", true);
// Block cookie banners. Warning: may result to auto-accepting cookies. // Block cookie banners. Warning: may result to auto-accepting cookies.
// https://www.ghacks.net/2022/12/24/configure-firefox-to-reject-cookie-banners-automatically/ // https://www.ghacks.net/2022/12/24/configure-firefox-to-reject-cookie-banners-automatically/
defaultPref("cookiebanners.service.mode", 2); pref("cookiebanners.service.mode", 2);
defaultPref("cookiebanners.service.mode.privateBrowsing", 2); pref("cookiebanners.service.mode.privateBrowsing", 2);
defaultPref("cookiebanners.bannerClicking.enabled", true); pref("cookiebanners.bannerClicking.enabled", true);
// https://globalprivacycontrol.org/ the successor of DNT // https://globalprivacycontrol.org/ the successor of DNT
defaultPref("privacy.globalprivacycontrol.enabled", true); pref("privacy.globalprivacycontrol.enabled", true);
defaultPref("privacy.globalprivacycontrol.functionality.enabled", true); pref("privacy.globalprivacycontrol.functionality.enabled", true);
// and DNT itself // and DNT itself
defaultPref("privacy.donottrackheader.enabled", true); pref("privacy.donottrackheader.enabled", true);
defaultPref("privacy.donottrackheader.value", 1); pref("privacy.donottrackheader.value", 1);
// ----- // -----
@ -32,76 +32,76 @@ defaultPref("privacy.donottrackheader.value", 1);
// (floaters), UTC makes Mobilizon difficult, Privacy Badger blocks 3rd party // (floaters), UTC makes Mobilizon difficult, Privacy Badger blocks 3rd party
// canvas and I want to appear as a Finnish Linux user rather than English // canvas and I want to appear as a Finnish Linux user rather than English
// Windows NT one (telemetry, voting vs spying). // Windows NT one (telemetry, voting vs spying).
defaultPref("privacy.resistFingerprinting", true); pref("privacy.resistFingerprinting", true);
// Or I could excempt things from it? Other than it not overriding timezone. // Or I could excempt things from it? Other than it not overriding timezone.
defaultPref("privacy.resistFingerprinting.testGranularityMask", 4); pref("privacy.resistFingerprinting.testGranularityMask", 4);
defaultPref( pref(
"privacy.resistFingerprinting.exemptedDomains", "privacy.resistFingerprinting.exemptedDomains",
"jarkkaa.fi,*.element.io,*.google.com,*.pikaviestin.fi,*.envs.net,*.wikimedia.org,*.wikipedia.org,*.duckduckgo.com,*.blesmrt.net,*.piraatit.fi,*.piraattipuolue.fi,*.apple.com", "jarkkaa.fi,*.element.io,*.google.com,*.pikaviestin.fi,*.envs.net,*.wikimedia.org,*.wikipedia.org,*.duckduckgo.com,*.blesmrt.net,*.piraatit.fi,*.piraattipuolue.fi,*.apple.com",
); );
// Enable letterboxing // Enable letterboxing
defaultPref("privacy.resistFingerprinting.letterboxing", true); pref("privacy.resistFingerprinting.letterboxing", true);
// Enable Firefox accounts // Enable Firefox accounts
defaultPref("identity.fxaccounts.enabled", true); pref("identity.fxaccounts.enabled", true);
// Settings on what to clear on quit // Settings on what to clear on quit
// - Goal: let Element Web & co stay logged in // - Goal: let Element Web & co stay logged in
defaultPref("privacy.clearOnShutdown.cache", false); pref("privacy.clearOnShutdown.cache", false);
defaultPref("privacy.clearOnShutdown.cookies", false); pref("privacy.clearOnShutdown.cookies", false);
defaultPref("privacy.clearOnShutdown.history", false); pref("privacy.clearOnShutdown.history", false);
defaultPref("privacy.clearOnShutdown.offlineApps", false); pref("privacy.clearOnShutdown.offlineApps", false);
defaultPref("privacy.clearOnShutdown.openWindows", false); pref("privacy.clearOnShutdown.openWindows", false);
defaultPref("privacy.clearOnShutdown.sessions", false); pref("privacy.clearOnShutdown.sessions", false);
defaultPref("privacy.clearOnShutdown.siteSettings", false); pref("privacy.clearOnShutdown.siteSettings", false);
// Don't resume from crash (SSD) // Don't resume from crash (SSD)
defaultPref("browser.sessionstore.resume_from_crash", false); pref("browser.sessionstore.resume_from_crash", false);
// Stricter autoplay // Stricter autoplay
defaultPref("media.autoplay.blocking_policy", 2); pref("media.autoplay.blocking_policy", 2);
// No corporate CA MITM // No corporate CA MITM
defaultPref("security.certerrors.mitm.auto_enable_enterprise_roots", false); pref("security.certerrors.mitm.auto_enable_enterprise_roots", false);
// Decrease animations // Decrease animations
defaultPref("image.animation_mode", "once"); pref("image.animation_mode", "once");
// Punycode // Punycode
defaultPref("network.IDN_show_punycode", true); pref("network.IDN_show_punycode", true);
// Enforce reader mode enabling? // Enforce reader mode enabling?
defaultPref("reader.parse-on-load.force-enabled", true); pref("reader.parse-on-load.force-enabled", true);
// TRR & ECH // TRR & ECH
// Mode 2 allows fallback to system resolver, 3 is TTR-only // Mode 2 allows fallback to system resolver, 3 is TTR-only
//defaultPref("network.trr.mode", 2); //pref("network.trr.mode", 2);
defaultPref("network.trr.mode", 3); pref("network.trr.mode", 3);
defaultPref("network.trr.early-AAAA", true); pref("network.trr.early-AAAA", true);
defaultPref("network.trr.uri", "https://dns0.eu"); pref("network.trr.uri", "https://dns0.eu");
//defaultPref("network.trr.uri", "https://dns.adguard-dns.com/dns-query"); //pref("network.trr.uri", "https://dns.adguard-dns.com/dns-query");
// NOTE: ECH requires TRR, so mode 2 may not use it. // NOTE: ECH requires TRR, so mode 2 may not use it.
defaultPref("network.trr.disable-ECS", false); pref("network.trr.disable-ECS", false);
defaultPref("network.dns.echconfig.enabled", true); pref("network.dns.echconfig.enabled", true);
defaultPref("network.dns.use_https_rr_as_altsvc", true); pref("network.dns.use_https_rr_as_altsvc", true);
defaultPref("network.trr.exclude-etc-hosts", false); pref("network.trr.exclude-etc-hosts", false);
defaultPref( pref(
"network.trr.excluded-domains", "network.trr.excluded-domains",
"http.badssl.com,norwegianwifi.com,mywifiext.net,tplinkrepeater.net,router.asus.com", "http.badssl.com,norwegianwifi.com,mywifiext.net,tplinkrepeater.net,router.asus.com",
); );
// Default UI scale // Default UI scale
defaultPref("layout.css.devPixelsPerPx", "1.5"); pref("layout.css.devPixelsPerPx", "1.5");
// Keep cache on both disk & memory. This is required for // Keep cache on both disk & memory. This is required for
// https://github.com/JimmXinu/FanFicFare/wiki/BrowserCacheFeature // https://github.com/JimmXinu/FanFicFare/wiki/BrowserCacheFeature
defaultPref("browser.cache.disk.enable", true); pref("browser.cache.disk.enable", true);
defaultPref("browser.cache.memory.enable", true); pref("browser.cache.memory.enable", true);
// Start from homepage, don't restore the previous session (excluding pinned tabs)' // Start from homepage, don't restore the previous session (excluding pinned tabs)'
defaultPref("browser.startup.page", 1); pref("browser.startup.page", 1);
// Simplified DDG experience without prompts for extension and all // Simplified DDG experience without prompts for extension and all
defaultPref("browser.startup.homepage", "https://start.duckduckgo.com"); pref("browser.startup.homepage", "https://start.duckduckgo.com");
// vim: filetype=javascript // vim: filetype=javascript