From 3aceea6bea20bce953bef5ff07424e6fdb02712a Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 14 Feb 2024 11:57:47 +0200 Subject: [PATCH] LibreAwoo: drop the .js extension as Vim modelines exist --- .mikaela_install | 6 +- conf/librewolf.overrides.cfg | 108 +++++++++++++++++++++++++++++++- conf/librewolf.overrides.cfg.js | 108 +------------------------------- 3 files changed, 111 insertions(+), 111 deletions(-) mode change 120000 => 100644 conf/librewolf.overrides.cfg mode change 100644 => 120000 conf/librewolf.overrides.cfg.js diff --git a/.mikaela_install b/.mikaela_install index 68a42bfd..7e33a086 100755 --- a/.mikaela_install +++ b/.mikaela_install @@ -17,10 +17,10 @@ cat etc/ssh/ssh_config >~/.ssh/config cat .editorconfig >~/.editorconfig mkdir -p ~/.local/firefox/defaults/pref/ cat conf/autoconfig.js >~/.local/firefox/defaults/pref/autoconfig.js -cat conf/librewolf.overrides.cfg.js >~/.local/firefox/librewolf.overrides.cfg +cat conf/librewolf.overrides.cfg >~/.local/firefox/librewolf.overrides.cfg mkdir -p ~/.librewolf/ ~/.var/app/io.gitlab.librewolf-community/.librewolf/ -cat conf/librewolf.overrides.cfg.js >~/.librewolf/librewolf.overrides.cfg -cat conf/librewolf.overrides.cfg.js >~/.var/app/io.gitlab.librewolf-community/.librewolf/librewolf.overrides.cfg +cat conf/librewolf.overrides.cfg >~/.librewolf/librewolf.overrides.cfg +cat conf/librewolf.overrides.cfg >~/.var/app/io.gitlab.librewolf-community/.librewolf/librewolf.overrides.cfg touch ~/.MIKAELA_GREP set +x # vim : set ft=sh : diff --git a/conf/librewolf.overrides.cfg b/conf/librewolf.overrides.cfg deleted file mode 120000 index 610daca2..00000000 --- a/conf/librewolf.overrides.cfg +++ /dev/null @@ -1 +0,0 @@ -librewolf.overrides.cfg.js \ No newline at end of file diff --git a/conf/librewolf.overrides.cfg b/conf/librewolf.overrides.cfg new file mode 100644 index 00000000..4e3e9f03 --- /dev/null +++ b/conf/librewolf.overrides.cfg @@ -0,0 +1,107 @@ +// ~/.{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/ +//defaultPref("extensions.webextensions.restrictedDomains", ""); +//defaultPref("privacy.resistFingerprinting.block_mozAddonManage", true); + +// Block cookie banners. Warning: may result to auto-accepting cookies. +// https://www.ghacks.net/2022/12/24/configure-firefox-to-reject-cookie-banners-automatically/ +defaultPref("cookiebanners.service.mode", 2); +defaultPref("cookiebanners.service.mode.privateBrowsing", 2); +defaultPref("cookiebanners.bannerClicking.enabled", true); + +// https://globalprivacycontrol.org/ the successor of DNT +defaultPref("privacy.globalprivacycontrol.enabled", true); +defaultPref("privacy.globalprivacycontrol.functionality.enabled", true); +// and DNT itself +defaultPref("privacy.donottrackheader.enabled", true); +defaultPref("privacy.donottrackheader.value", 1); + +// ----- + +// 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). +defaultPref("privacy.resistFingerprinting", true); +// Or I could excempt things from it? Other than it not overriding timezone. +defaultPref("privacy.resistFingerprinting.testGranularityMask", 4); +defaultPref( + "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", +); + +// Enable letterboxing +defaultPref("privacy.resistFingerprinting.letterboxing", true); + +// Enable Firefox accounts +defaultPref("identity.fxaccounts.enabled", true); + +// Settings on what to clear on quit +// - Goal: let Element Web & co stay logged in +defaultPref("privacy.clearOnShutdown.cache", false); +defaultPref("privacy.clearOnShutdown.cookies", false); +defaultPref("privacy.clearOnShutdown.history", false); +defaultPref("privacy.clearOnShutdown.offlineApps", false); +defaultPref("privacy.clearOnShutdown.openWindows", false); +defaultPref("privacy.clearOnShutdown.sessions", false); +defaultPref("privacy.clearOnShutdown.siteSettings", false); + +// Don't resume from crash (SSD) +defaultPref("browser.sessionstore.resume_from_crash", false); + +// Stricter autoplay +defaultPref("media.autoplay.blocking_policy", 2); + +// No corporate CA MITM +defaultPref("security.certerrors.mitm.auto_enable_enterprise_roots", false); + +// Decrease animations +defaultPref("image.animation_mode", "once"); + +// Punycode +defaultPref("network.IDN_show_punycode", true); + +// Enforce reader mode enabling? +defaultPref("reader.parse-on-load.force-enabled", true); + +// TRR & ECH +// Mode 2 allows fallback to system resolver, 3 is TTR-only +//defaultPref("network.trr.mode", 2); +defaultPref("network.trr.mode", 3); +defaultPref("network.trr.early-AAAA", true); +defaultPref("network.trr.uri", "https://dns0.eu"); +//defaultPref("network.trr.uri", "https://dns.adguard-dns.com/dns-query"); +// NOTE: ECH requires TRR, so mode 2 may not use it. +defaultPref("network.trr.disable-ECS", false); +defaultPref("network.dns.echconfig.enabled", true); +defaultPref("network.dns.use_https_rr_as_altsvc", true); +defaultPref("network.trr.exclude-etc-hosts", false); +defaultPref( + "network.trr.excluded-domains", + "http.badssl.com,norwegianwifi.com,mywifiext.net,tplinkrepeater.net,router.asus.com", +); + +// Default UI scale +defaultPref("layout.css.devPixelsPerPx", "1.5"); + +// Keep cache on both disk & memory. This is required for +// https://github.com/JimmXinu/FanFicFare/wiki/BrowserCacheFeature +defaultPref("browser.cache.disk.enable", true); +defaultPref("browser.cache.memory.enable", true); + +// Start from homepage, don't restore the previous session (excluding pinned tabs)' +defaultPref("browser.startup.page", 1); +// Simplified DDG experience without prompts for extension and all +defaultPref("browser.startup.homepage", "https://start.duckduckgo.com"); + +// vim: filetype=javascript diff --git a/conf/librewolf.overrides.cfg.js b/conf/librewolf.overrides.cfg.js deleted file mode 100644 index 4e3e9f03..00000000 --- a/conf/librewolf.overrides.cfg.js +++ /dev/null @@ -1,107 +0,0 @@ -// ~/.{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/ -//defaultPref("extensions.webextensions.restrictedDomains", ""); -//defaultPref("privacy.resistFingerprinting.block_mozAddonManage", true); - -// Block cookie banners. Warning: may result to auto-accepting cookies. -// https://www.ghacks.net/2022/12/24/configure-firefox-to-reject-cookie-banners-automatically/ -defaultPref("cookiebanners.service.mode", 2); -defaultPref("cookiebanners.service.mode.privateBrowsing", 2); -defaultPref("cookiebanners.bannerClicking.enabled", true); - -// https://globalprivacycontrol.org/ the successor of DNT -defaultPref("privacy.globalprivacycontrol.enabled", true); -defaultPref("privacy.globalprivacycontrol.functionality.enabled", true); -// and DNT itself -defaultPref("privacy.donottrackheader.enabled", true); -defaultPref("privacy.donottrackheader.value", 1); - -// ----- - -// 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). -defaultPref("privacy.resistFingerprinting", true); -// Or I could excempt things from it? Other than it not overriding timezone. -defaultPref("privacy.resistFingerprinting.testGranularityMask", 4); -defaultPref( - "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", -); - -// Enable letterboxing -defaultPref("privacy.resistFingerprinting.letterboxing", true); - -// Enable Firefox accounts -defaultPref("identity.fxaccounts.enabled", true); - -// Settings on what to clear on quit -// - Goal: let Element Web & co stay logged in -defaultPref("privacy.clearOnShutdown.cache", false); -defaultPref("privacy.clearOnShutdown.cookies", false); -defaultPref("privacy.clearOnShutdown.history", false); -defaultPref("privacy.clearOnShutdown.offlineApps", false); -defaultPref("privacy.clearOnShutdown.openWindows", false); -defaultPref("privacy.clearOnShutdown.sessions", false); -defaultPref("privacy.clearOnShutdown.siteSettings", false); - -// Don't resume from crash (SSD) -defaultPref("browser.sessionstore.resume_from_crash", false); - -// Stricter autoplay -defaultPref("media.autoplay.blocking_policy", 2); - -// No corporate CA MITM -defaultPref("security.certerrors.mitm.auto_enable_enterprise_roots", false); - -// Decrease animations -defaultPref("image.animation_mode", "once"); - -// Punycode -defaultPref("network.IDN_show_punycode", true); - -// Enforce reader mode enabling? -defaultPref("reader.parse-on-load.force-enabled", true); - -// TRR & ECH -// Mode 2 allows fallback to system resolver, 3 is TTR-only -//defaultPref("network.trr.mode", 2); -defaultPref("network.trr.mode", 3); -defaultPref("network.trr.early-AAAA", true); -defaultPref("network.trr.uri", "https://dns0.eu"); -//defaultPref("network.trr.uri", "https://dns.adguard-dns.com/dns-query"); -// NOTE: ECH requires TRR, so mode 2 may not use it. -defaultPref("network.trr.disable-ECS", false); -defaultPref("network.dns.echconfig.enabled", true); -defaultPref("network.dns.use_https_rr_as_altsvc", true); -defaultPref("network.trr.exclude-etc-hosts", false); -defaultPref( - "network.trr.excluded-domains", - "http.badssl.com,norwegianwifi.com,mywifiext.net,tplinkrepeater.net,router.asus.com", -); - -// Default UI scale -defaultPref("layout.css.devPixelsPerPx", "1.5"); - -// Keep cache on both disk & memory. This is required for -// https://github.com/JimmXinu/FanFicFare/wiki/BrowserCacheFeature -defaultPref("browser.cache.disk.enable", true); -defaultPref("browser.cache.memory.enable", true); - -// Start from homepage, don't restore the previous session (excluding pinned tabs)' -defaultPref("browser.startup.page", 1); -// Simplified DDG experience without prompts for extension and all -defaultPref("browser.startup.homepage", "https://start.duckduckgo.com"); - -// vim: filetype=javascript diff --git a/conf/librewolf.overrides.cfg.js b/conf/librewolf.overrides.cfg.js new file mode 120000 index 00000000..b03b3860 --- /dev/null +++ b/conf/librewolf.overrides.cfg.js @@ -0,0 +1 @@ +librewolf.overrides.cfg \ No newline at end of file