From 1a1aaa0d96998bce5ec83f33fc92d11e7fc4db43 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 24 Feb 2024 10:17:08 +0200 Subject: [PATCH] LibreAwoo: move pdfjs on top, explicit dark mode --- conf/librewolf.overrides.cfg | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/conf/librewolf.overrides.cfg b/conf/librewolf.overrides.cfg index ecfa0aae..ab130e0d 100644 --- a/conf/librewolf.overrides.cfg +++ b/conf/librewolf.overrides.cfg @@ -38,6 +38,14 @@ pref("privacy.fingerprintingProtection.pbmode", true); // usability. https://searchfox.org/mozilla-central/source/toolkit/components/resistfingerprinting/RFPTargets.inc pref("privacy.fingerprintingProtection.overrides", "+AllTargets,-KeyboardEvents,-SpeechSynthesis,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-JSDateTimeUTC"); +// No JavaScript allowed in internal pdf viewer +pref("pdfjs.enableScripting", false); + +// Dark mode +pref("ui.systemUsesDarkTheme", 1); +pref("prefers-color-scheme", "dark"); +pref("pdfjs.viewerCssTheme", 2); + // Enable Firefox accounts pref("identity.fxaccounts.enabled", true); @@ -191,8 +199,6 @@ pref("permissions.manager.defaultsUrl", ""); // revoke special permissions for s // Aminda stripped safebrowsing here as even in LibreWolf filtering DNS is used + the extensions. -pref("pdfjs.enableScripting", false); // disable js scripting in the built-in pdf reader - pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%"); // Although I doubt they will improve accuracy, why not? pref("geo.provider.use_gpsd", true); // [LINUX]