From c0eb0bfb4a783c14228d08a643d6c269ae021792 Mon Sep 17 00:00:00 2001 From: sev Date: Wed, 13 Dec 2023 16:45:29 -0600 Subject: [PATCH] add librewolf --- librewolf/chrome/userChrome.css | 19 +++++++++++++++++++ librewolf/librewolf.overrides.cfg | 30 ++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 librewolf/chrome/userChrome.css create mode 100644 librewolf/librewolf.overrides.cfg diff --git a/librewolf/chrome/userChrome.css b/librewolf/chrome/userChrome.css new file mode 100644 index 0000000..89bae4b --- /dev/null +++ b/librewolf/chrome/userChrome.css @@ -0,0 +1,19 @@ +/* hide tabs */ +#main-window[tabsintitlebar="true"]:not([extradragspace="true"]):not([customizing]) #tabbrowser-tabs, +#main-window[tabsintitlebar="true"]:not([extradragspace="true"]):not([customizing]) #alltabs-button, +/* hide tst header */ +#main-window:not([customizing]) #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] > #sidebar-header { + visibility: collapse !important; +} + +/* Hide sidebar with one tab */ +#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] { + transition: all 0.2s ease; +} +#main-window:not([customizing]) + #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:not(:has([data-current-uri="about:newtab"])):not(:hover) { + z-index: 2 !important; + overflow: hidden; + min-width: 2px !important; + max-width: 2px !important; +} diff --git a/librewolf/librewolf.overrides.cfg b/librewolf/librewolf.overrides.cfg new file mode 100644 index 0000000..08fac47 --- /dev/null +++ b/librewolf/librewolf.overrides.cfg @@ -0,0 +1,30 @@ +// enable sync +pref("identity.fxaccounts.enabled", true); + +// enable session saving +pref("privacy.clearOnShutdown.history", false); +pref("privacy.clearOnShutdown.downloads", false); +pref("privacy.clearOnShutdown.cookies", false); +pref("browser.startup.page", 3); + +// remember more undos +pref("browser.sessionstore.max_tabs_undo", 50); +pref("browser.sessionstore.max_windows_undo", 3); + +pref("browser.tabs.closeWindowWithLastTab", false); + +pref("browser.altClickSave", true); +pref("zoom.minPercent", 10); + +// prefer FPP over RFP an allow color-scheme and timezone +// NOTE: this does not work toward preventing unique fingerprint, but FPP is +// still better than nothing and might fool simple trackers. advanced +// ones are probably not beatable regardless so it's not a big deal. +pref("privacy.resistFingerprinting", false); +pref("privacy.resistFingerprinting.pbmode", false); +pref("privacy.fingerprintingProtection", true); +pref("privacy.fingerprintingProtection.pbmode", true); +pref("privacy.fingerprintingProtection.overrides", "+AllTargets,-CSSPrefersColorScheme,-JSDateTimeUTC"); + +// enable chrome +pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); -- 2.47.0