foodotfiles/home/.librewolf/librewolf.overrides.cfg
2022-09-09 13:34:58 +03:00

49 lines
1.7 KiB
JavaScript

// vim:ft=javascript
// Enable Google safe browsing
pref("browser.safebrowsing.malware.enabled", true);
pref("browser.safebrowsing.phishing.enabled", true);
pref("browser.safebrowsing.blockedURIs.enabled", true);
pref(
"browser.safebrowsing.provider.google4.gethashURL",
"https://safebrowsing.googleapis.com/v4/fullHashes:find?$ct=application/x-protobuf&key=%GOOGLE_SAFEBROWSING_API_KEY%&$httpMethod=POST"
);
pref(
"browser.safebrowsing.provider.google4.updateURL",
"https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$ct=application/x-protobuf&key=%GOOGLE_SAFEBROWSING_API_KEY%&$httpMethod=POST"
);
pref(
"browser.safebrowsing.provider.google.gethashURL",
"https://safebrowsing.google.com/safebrowsing/gethash?client=SAFEBROWSING_ID&appver=%MAJOR_VERSION%&pver=2.2"
);
pref(
"browser.safebrowsing.provider.google.updateURL",
"https://safebrowsing.google.com/safebrowsing/downloads?client=SAFEBROWSING_ID&appver=%MAJOR_VERSION%&pver=2.2&key=%GOOGLE_SAFEBROWSING_API_KEY%"
);
// Disable letterboxing
pref("privacy.resistFingerprinting.letterboxing", false);
/*
* Disable RFP because I want automatic dark mode on websites
* that support it
*/
pref("privacy.resistFingerprinting", false);
pref("privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts", false);
// Scan downloads for suspicious files
pref("browser.safebrowsing.downloads.enabled", true);
// Disable WebGL
pref("webgl.disabled", true);
// Enable Firefox Sync
pref("identity.fxaccounts.enabled", true);
// Don't clear browsing history on shutdown
pref("privacy.clearOnShutdown.history", false);
// Clear download history on shutdown
pref("privacy.clearOnShutdown.downloads", true);