mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 19:29:22 +01:00
Aminda Suomalainen
ea10cc08b7
Firefox ESR either was updated already or I am no longer running it anywhere, so this doesn't need to hang around here
129 lines
5.4 KiB
JavaScript
129 lines
5.4 KiB
JavaScript
//
|
|
// Remember to start writing at line 2. This is my second attempt at Firefox
|
|
// autoconfig after being taught by LibreAwoo, but this time I am trying to
|
|
// avoid duplicating my browser policy, which you can find from the same
|
|
// repository, etc/firefox/policies/policies.json
|
|
|
|
// If autoconfig is not found, fallback. Also means this file.
|
|
lockPref("autoadmin.failover_to_cached", true);
|
|
lockPref(
|
|
"autoadmin.global_config_url",
|
|
"https://gitea.blesmrt.net/mikaela/shell-things/raw/branch/master/conf/firefox-forbidden-policies.js",
|
|
);
|
|
lockPref("autoadmin.offline_failover", true);
|
|
lockPref("autoadmin.refresh_interval", 120);
|
|
|
|
// Automatically click cookiebanners although uBlock Origin might block them
|
|
lockPref("cookiebanners.bannerClicking.enabled", true);
|
|
lockPref("cookiebanners.service.mode", 2);
|
|
lockPref("cookiebanners.service.mode.privateBrowsing", 2);
|
|
|
|
// I can set my preferred fonts in an order! :O
|
|
// but obviously this is forbidden in policies.json!
|
|
lockPref("font.default.el", "serif");
|
|
lockPref("font.default.x-cyrillic", "serif");
|
|
//clearPref("font.default.el");
|
|
//clearPref("font.default.x-cyrillic");
|
|
lockPref("font.default.x-western", "serif");
|
|
//clearPref("font.default.x-western");
|
|
lockPref(
|
|
"font.name-list.monospace.x-cyrillic",
|
|
"Roboto Mono, Noto Sans Mono, monospace",
|
|
);
|
|
lockPref(
|
|
"font.name-list.monospace.x-western",
|
|
"Roboto Mono, Noto Sans Mono, monospace",
|
|
);
|
|
lockPref(
|
|
"font.name-list.sans-serif.x-cyrillic",
|
|
"Roboto, Noto Sans, sans-serif",
|
|
);
|
|
lockPref(
|
|
"font.name-list.sans-serif.x-western",
|
|
"Roboto, Noto Sans, sans-serif",
|
|
);
|
|
lockPref(
|
|
"font.name-list.serif.x-cyrillic",
|
|
"Roboto Serif, Noto Serif, serif",
|
|
);
|
|
lockPref("font.name-list.serif.x-western", "Roboto Serif, Noto Serif, serif");
|
|
//clearPref("font.name-list.monospace.x-cyrillic");
|
|
//clearPref("font.name-list.monospace.x-western");
|
|
//clearPref("font.name-list.sans-serif.x-cyrillic");
|
|
//clearPref("font.name-list.sans-serif.x-western");
|
|
//clearPref("font.name-list.serif.x-cyrillic");
|
|
//clearPref("font.name-list.serif.x-western");
|
|
//
|
|
//lockPref("font.name.monospace.el", "Liberation Mono");
|
|
clearPref("font.name.monospace.el");
|
|
//lockPref("font.name.monospace.x-cyrillic", "Liberation Mono");
|
|
clearPref("font.name.monospace.x-cyrillic");
|
|
//lockPref("font.name.monospace.x-western", "Liberation Mono");
|
|
clearPref("font.name.monospace.x-western");
|
|
//
|
|
//lockPref("font.name.sans-serif.el", "Liberation Sans");
|
|
clearPref("font.name.sans-serif.el");
|
|
//lockPref("font.name.sans-serif.x-cyrillic", "Liberation Sans");
|
|
clearPref("font.name.sans-serif.x-cyrillic");
|
|
//lockPref("font.name.sans-serif.x-western", "Liberation Sans");
|
|
clearPref("font.name.sans-serif.x-western");
|
|
//
|
|
//lockPref("font.name.serif.el", "Liberation Serif");
|
|
clearPref("font.name.serif.el");
|
|
//lockPref("font.name.serif.x-cyrillic", "Liberation Serif");
|
|
clearPref("font.name.serif.x-cyrillic");
|
|
//lockPref("font.name.serif.x-western", "Liberation Serif");
|
|
clearPref("font.name.serif.x-western");
|
|
// Allow these fonts regardless of the fingerprinting resistance
|
|
lockPref(
|
|
"font.system.whitelist",
|
|
"Liberation Serif, Tinos, Times New Roman, Liberation Sans, Arimo, Arial, Liberation Mono, Cousine, Courier New, Noto Sans, Noto Serif, Noto Mono, OpenDyslexic, Noto Emoji, Noto Color Emoji, Comic Neue, Comic Neue Angular, Comic Neue Angular Light, Comic Neue Angular Light Italic, Comic Neue Light, Twemoji Mozilla, Noto Sans CJK JP, Noto Math, Noto Music, Roboto, Roboto Serif, Roboto Mono, Roboto Flex",
|
|
);
|
|
|
|
// Play animated images only once, accessibility.
|
|
lockPref("image.animation.mode", "once");
|
|
|
|
// Spoof en-US as language to scripts
|
|
lockPref("javascript.use_us_english_locale", true);
|
|
|
|
// DNT although PrivacyBadger from policy handles this
|
|
lockPref("privacy.donottrackheader.enabled", true);
|
|
lockPref("privacy.donottrackheader.value", 1);
|
|
|
|
// More tunable privacy.resistfingerprinting. I have lost the privacy game
|
|
// many times before this point, so this is nothing. For the options,
|
|
// refer to https://searchfox.org/mozilla-central/source/toolkit/components/resistfingerprinting/RFPTargets.inc
|
|
lockPref("privacy.fingerprintingProtection", true);
|
|
// Somehow I cannot clearPref this, so...
|
|
//clearPref("privacy.fingerprintingProtection");
|
|
//lockPref("privacy.fingerprintingProtection", false);
|
|
pref(
|
|
"privacy.fingerprintingProtection.overrides",
|
|
"+AllTargets,-KeyboardEvents,-SpeechSynthesis,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-NavigatorUserAgent,-JSDateTimeUTC,-HttpUserAgent",
|
|
);
|
|
//clearPref("privacy.fingerprintingProtection.overrides");
|
|
lockPref("privacy.fingerprintingProtection.pbmode", true);
|
|
//clearPref("privacy.fingerprintingProtection.pbmode");
|
|
// (Incompatible with the above)
|
|
lockPref("privacy.resistFingerprinting", false);
|
|
//clearPref("privacy.resistFingerprinting");
|
|
lockPref("privacy.resistFingerprinting.block_mozAddonManage", true);
|
|
//clearPref("privacy.resistFingerprinting.block_mozAddonManage");
|
|
// Letterboxing from Tor Browser, I like it in general.
|
|
lockPref("privacy.resistFingerprinting.letterboxing", true);
|
|
// Still Incompatible with the above
|
|
//lockPref("privacy.resistFingerprinting.pbmode", false);
|
|
clearPref("privacy.resistFingerprinting.pbmode");
|
|
|
|
// Enables reading mode for all pages (at least in theory)
|
|
lockPref("reader.parse-on-load.force-enabled", true);
|
|
|
|
// Ensure OCSP stapling is enabled, especially if the server has it
|
|
lockPref("security.ssl.enable_ocsp_must_staple", true);
|
|
|
|
// New sidebar
|
|
lockPref("sidebar.revamp", true);
|
|
|
|
// No making configuration on the last line of the file!
|
|
//
|