mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 11:12:48 +01:00
116 lines
5.1 KiB
JavaScript
116 lines
5.1 KiB
JavaScript
/** @format */
|
|
|
|
//
|
|
// 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");
|
|
//lockPref("font.default.x-western", "serif");
|
|
lockPref("font.default.x-western", "sans-serif");
|
|
// lockPref(
|
|
// "font.name-list.monospace.x-cyrillic",
|
|
// "Noto Shanns Mono, monospace",
|
|
// );
|
|
// lockPref("font.name-list.monospace.x-western", "Noto Shanns Mono, monospace");
|
|
// lockPref("font.name-list.sans-serif.x-cyrillic", "Noto Sans, sans-serif");
|
|
lockPref(
|
|
"font.name-list.sans-serif.x-western",
|
|
"Comic Neue Angular, Liberation Sans, Arimo, Arial, Noto Sans, sans-serif",
|
|
);
|
|
// lockPref("font.name-list.serif.x-cyrillic", "Noto Serif, serif");
|
|
// lockPref("font.name-list.serif.x-western", "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");
|
|
lockPref("font.name.monospace.x-cyrillic", "Liberation Mono");
|
|
lockPref("font.name.monospace.x-western", "Liberation Mono");
|
|
//
|
|
//lockPref("font.name.sans-serif.el", "Liberation Sans");
|
|
clearPref("font.name.sans-serif.el");
|
|
lockPref("font.name.sans-serif.x-cyrillic", "Liberation Sans");
|
|
lockPref("font.name.sans-serif.x-western", "Liberation Sans");
|
|
//
|
|
lockPref("font.name.serif.el", "Liberation Serif");
|
|
lockPref("font.name.serif.x-cyrillic", "Liberation Serif");
|
|
lockPref("font.name.serif.x-western", "Liberation Serif");
|
|
// 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",
|
|
);
|
|
|
|
// 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);
|
|
|
|
// TODO: Consider removing this when ESR updates as only it needs this for
|
|
// ECH, which is otherwise the default=
|
|
lockPref("security.tls.ech.grease_http3", true);
|
|
|
|
// New sidebar
|
|
lockPref("sidebar.revamp", true);
|
|
|
|
// No making configuration on the last line of the file!
|
|
//
|