mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
130 lines
5.4 KiB
JavaScript
130 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://codeberg.org/Aminda/shell-things/raw/branch/cxefa/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",
|
|
"Arimo, Comic Neue, Comic Neue Angular, Comic Neue Angular Light, Comic Neue Angular Light Italic, Comic Neue Light, Cousine, Liberation Mono, Liberation Sans, Liberation Serif, Noto Color Emoji, Noto Emoji, Noto Math, Noto Mono, Noto Sans, Noto Sans CJK JP, Noto Music, Roboto, Roboto Flex, Roboto Mono, Roboto Serif, Tinos, Twemoji Mozilla",
|
|
);
|
|
//clearPref("font.system.whitelist");
|
|
|
|
// 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!
|
|
//
|