2024-02-14 10:57:47 +01:00
|
|
|
// ~/.{librewolf,var/app/io.gitlab.librewolf-community/.librewolf}/librewolf.overrides.cfg
|
|
|
|
|
|
|
|
// LibreWolf override configuration, begins with samples from
|
|
|
|
// https://librewolf.net/docs/settings/
|
|
|
|
// Also incorporates some of https://aminda.eu/browser-extensions#firefox-aboutconfig
|
|
|
|
|
|
|
|
// -----
|
|
|
|
// I often need to refer to these options which aren't yet remembered by heart
|
|
|
|
|
|
|
|
// Note to self on disabling protection of Mozilla pages. This may be a
|
|
|
|
// LibreWolf default so thus commented:
|
|
|
|
// via https://www.ghacks.net/2017/10/27/how-to-enable-firefox-webextensions-on-mozilla-websites/
|
2024-02-14 11:47:09 +01:00
|
|
|
//pref("extensions.webextensions.restrictedDomains", "");
|
|
|
|
//pref("privacy.resistFingerprinting.block_mozAddonManage", true);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// Block cookie banners. Warning: may result to auto-accepting cookies.
|
|
|
|
// https://www.ghacks.net/2022/12/24/configure-firefox-to-reject-cookie-banners-automatically/
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("cookiebanners.service.mode", 2);
|
|
|
|
pref("cookiebanners.service.mode.privateBrowsing", 2);
|
|
|
|
pref("cookiebanners.bannerClicking.enabled", true);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// https://globalprivacycontrol.org/ the successor of DNT
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("privacy.globalprivacycontrol.enabled", true);
|
|
|
|
pref("privacy.globalprivacycontrol.functionality.enabled", true);
|
2024-02-14 10:57:47 +01:00
|
|
|
// and DNT itself
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("privacy.donottrackheader.enabled", true);
|
|
|
|
pref("privacy.donottrackheader.value", 1);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// -----
|
|
|
|
|
|
|
|
// I would like to use this, but forced light mode is a dealbreaker
|
|
|
|
// (floaters), UTC makes Mobilizon difficult, Privacy Badger blocks 3rd party
|
|
|
|
// canvas and I want to appear as a Finnish Linux user rather than English
|
|
|
|
// Windows NT one (telemetry, voting vs spying).
|
2024-02-16 11:03:16 +01:00
|
|
|
defaultPref("privacy.resistFingerprinting", true);
|
2024-02-14 10:57:47 +01:00
|
|
|
// Or I could excempt things from it? Other than it not overriding timezone.
|
2024-02-16 11:03:16 +01:00
|
|
|
defaultPref("privacy.resistFingerprinting.testGranularityMask", 4);
|
|
|
|
defaultPref(
|
2024-02-14 10:57:47 +01:00
|
|
|
"privacy.resistFingerprinting.exemptedDomains",
|
2024-02-17 17:18:54 +01:00
|
|
|
"jarkkaa.fi,*.element.io,*.google.com,*.pikaviestin.fi,*.envs.net,*.wikimedia.org,*.wikipedia.org,duckduckgo.com,*.duckduckgo.com,*.blesmrt.net,*.piraatit.fi,*.piraattipuolue.fi,*.apple.com,*.op.fi,*.s-pankki.fi,*.revolut.com,*.n26.com,fedoraproject.org,*.fedoraproject.org,music.youtube.com"
|
2024-02-14 10:57:47 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
// Enable letterboxing
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("privacy.resistFingerprinting.letterboxing", true);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
2024-02-17 18:21:40 +01:00
|
|
|
// Timezone spoofing
|
|
|
|
defaultPref("privacy.resistFingerprinting.spoofTimezone", true);
|
|
|
|
|
2024-02-14 10:57:47 +01:00
|
|
|
// Enable Firefox accounts
|
2024-02-16 11:03:16 +01:00
|
|
|
defaultPref("identity.fxaccounts.enabled", true);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// Settings on what to clear on quit
|
|
|
|
// - Goal: let Element Web & co stay logged in
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("privacy.clearOnShutdown.cache", false);
|
|
|
|
pref("privacy.clearOnShutdown.cookies", false);
|
|
|
|
pref("privacy.clearOnShutdown.history", false);
|
|
|
|
pref("privacy.clearOnShutdown.offlineApps", false);
|
|
|
|
pref("privacy.clearOnShutdown.openWindows", false);
|
|
|
|
pref("privacy.clearOnShutdown.sessions", false);
|
|
|
|
pref("privacy.clearOnShutdown.siteSettings", false);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// Don't resume from crash (SSD)
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("browser.sessionstore.resume_from_crash", false);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// Stricter autoplay
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("media.autoplay.blocking_policy", 2);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// No corporate CA MITM
|
2024-02-16 11:03:16 +01:00
|
|
|
deafultPref("security.certerrors.mitm.auto_enable_enterprise_roots", false);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// Decrease animations
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("image.animation_mode", "once");
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// Punycode
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("network.IDN_show_punycode", true);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// Enforce reader mode enabling?
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("reader.parse-on-load.force-enabled", true);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// TRR & ECH
|
|
|
|
// Mode 2 allows fallback to system resolver, 3 is TTR-only
|
2024-02-16 11:03:16 +01:00
|
|
|
//defaultPref("network.trr.mode", 2);
|
|
|
|
defaultPref("network.trr.mode", 3);
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("network.trr.early-AAAA", true);
|
2024-02-16 11:03:16 +01:00
|
|
|
defaultPref("network.trr.uri", "https://dns0.eu");
|
2024-02-14 11:47:09 +01:00
|
|
|
//pref("network.trr.uri", "https://dns.adguard-dns.com/dns-query");
|
2024-02-14 10:57:47 +01:00
|
|
|
// NOTE: ECH requires TRR, so mode 2 may not use it.
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("network.trr.disable-ECS", false);
|
|
|
|
pref("network.dns.echconfig.enabled", true);
|
|
|
|
pref("network.dns.use_https_rr_as_altsvc", true);
|
|
|
|
pref("network.trr.exclude-etc-hosts", false);
|
|
|
|
pref(
|
2024-02-14 10:57:47 +01:00
|
|
|
"network.trr.excluded-domains",
|
|
|
|
"http.badssl.com,norwegianwifi.com,mywifiext.net,tplinkrepeater.net,router.asus.com",
|
|
|
|
);
|
|
|
|
|
|
|
|
// Default UI scale
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("layout.css.devPixelsPerPx", "1.5");
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// Keep cache on both disk & memory. This is required for
|
|
|
|
// https://github.com/JimmXinu/FanFicFare/wiki/BrowserCacheFeature
|
2024-02-14 11:47:09 +01:00
|
|
|
pref("browser.cache.disk.enable", true);
|
|
|
|
pref("browser.cache.memory.enable", true);
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// Start from homepage, don't restore the previous session (excluding pinned tabs)'
|
2024-02-16 11:03:16 +01:00
|
|
|
defaultPref("browser.startup.page", 1);
|
2024-02-14 10:57:47 +01:00
|
|
|
// Simplified DDG experience without prompts for extension and all
|
2024-02-16 11:03:16 +01:00
|
|
|
defaultPref("browser.startup.homepage", "https://start.duckduckgo.com");
|
2024-02-14 10:57:47 +01:00
|
|
|
|
|
|
|
// vim: filetype=javascript
|