2024-05-19 17:46:25 +02:00
//
2024-05-19 13:05:04 +02:00
// 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.
2024-05-19 19:38:32 +02:00
lockPref ( "autoadmin.failover_to_cached" , true ) ;
lockPref (
2024-05-19 13:05:04 +02:00
"autoadmin.global_config_url" ,
"https://gitea.blesmrt.net/mikaela/shell-things/raw/branch/master/conf/firefox-forbidden-policies.js" ,
) ;
2024-05-19 19:38:32 +02:00
lockPref ( "autoadmin.offline_failover" , true ) ;
lockPref ( "autoadmin.refresh_interval" , 120 ) ;
2024-05-19 13:05:04 +02:00
// Automatically click cookiebanners although uBlock Origin might block them
2024-05-19 19:38:32 +02:00
lockPref ( "cookiebanners.bannerClicking.enabled" , true ) ;
lockPref ( "cookiebanners.service.mode" , 2 ) ;
lockPref ( "cookiebanners.service.mode.privateBrowsing" , 2 ) ;
2024-05-19 13:05:04 +02:00
2024-05-19 19:19:35 +02:00
// I can set my preferred fonts in an order! :O
// but obviously this is forbidden in policies.json!
2024-08-03 10:31:37 +02:00
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" ,
) ;
2024-07-30 06:47:24 +02:00
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" ,
) ;
2024-06-09 20:32:52 +02:00
lockPref (
"font.name-list.sans-serif.x-western" ,
2024-07-30 06:47:24 +02:00
"Roboto, Noto Sans, sans-serif" ,
) ;
lockPref (
"font.name-list.serif.x-cyrillic" ,
"Roboto Serif, Noto Serif, serif" ,
2024-06-09 20:32:52 +02:00
) ;
2024-07-30 06:47:24 +02:00
lockPref ( "font.name-list.serif.x-western" , "Roboto Serif, Noto Serif, serif" ) ;
//clearPref("font.name-list.monospace.x-cyrillic");
2024-06-09 20:32:52 +02:00
//clearPref("font.name-list.monospace.x-western");
2024-07-30 06:47:24 +02:00
//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");
2024-05-25 10:47:29 +02:00
//
2024-07-30 06:47:24 +02:00
//lockPref("font.name.monospace.el", "Liberation Mono");
2024-08-03 10:31:37 +02:00
clearPref ( "font.name.monospace.el" ) ;
2024-07-30 06:47:24 +02:00
//lockPref("font.name.monospace.x-cyrillic", "Liberation Mono");
2024-08-03 10:31:37 +02:00
clearPref ( "font.name.monospace.x-cyrillic" ) ;
2024-07-30 06:47:24 +02:00
//lockPref("font.name.monospace.x-western", "Liberation Mono");
2024-08-03 10:31:37 +02:00
clearPref ( "font.name.monospace.x-western" ) ;
2024-05-25 10:47:29 +02:00
//
2024-06-09 20:32:52 +02:00
//lockPref("font.name.sans-serif.el", "Liberation Sans");
clearPref ( "font.name.sans-serif.el" ) ;
2024-07-30 06:47:24 +02:00
//lockPref("font.name.sans-serif.x-cyrillic", "Liberation Sans");
2024-08-03 10:31:37 +02:00
clearPref ( "font.name.sans-serif.x-cyrillic" ) ;
2024-07-30 06:47:24 +02:00
//lockPref("font.name.sans-serif.x-western", "Liberation Sans");
2024-08-03 10:31:37 +02:00
clearPref ( "font.name.sans-serif.x-western" ) ;
2024-05-25 10:47:29 +02:00
//
2024-07-30 06:47:24 +02:00
//lockPref("font.name.serif.el", "Liberation Serif");
2024-08-03 10:31:37 +02:00
clearPref ( "font.name.serif.el" ) ;
2024-07-30 06:47:24 +02:00
//lockPref("font.name.serif.x-cyrillic", "Liberation Serif");
2024-08-03 10:31:37 +02:00
clearPref ( "font.name.serif.x-cyrillic" ) ;
2024-07-30 06:47:24 +02:00
//lockPref("font.name.serif.x-western", "Liberation Serif");
2024-08-03 10:31:37 +02:00
clearPref ( "font.name.serif.x-western" ) ;
2024-06-09 17:39:55 +02:00
// Allow these fonts regardless of the fingerprinting resistance
2024-08-07 22:05:29 +02:00
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");
2024-05-19 19:19:35 +02:00
2024-05-19 13:05:04 +02:00
// Play animated images only once, accessibility.
2024-05-19 19:38:32 +02:00
lockPref ( "image.animation.mode" , "once" ) ;
2024-05-19 13:05:04 +02:00
// Spoof en-US as language to scripts
2024-05-19 19:38:32 +02:00
lockPref ( "javascript.use_us_english_locale" , true ) ;
2024-05-19 13:05:04 +02:00
// DNT although PrivacyBadger from policy handles this
2024-05-19 19:38:32 +02:00
lockPref ( "privacy.donottrackheader.enabled" , true ) ;
lockPref ( "privacy.donottrackheader.value" , 1 ) ;
2024-05-19 13:05:04 +02:00
// More tunable privacy.resistfingerprinting. I have lost the privacy game
2024-05-21 16:42:56 +02:00
// 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 ) ;
2024-05-19 19:00:31 +02:00
// Somehow I cannot clearPref this, so...
//clearPref("privacy.fingerprintingProtection");
2024-06-29 05:23:48 +02:00
//lockPref("privacy.fingerprintingProtection", false);
2024-05-21 16:42:56 +02:00
pref (
"privacy.fingerprintingProtection.overrides" ,
2024-06-22 13:02:47 +02:00
"+AllTargets,-KeyboardEvents,-SpeechSynthesis,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-NavigatorUserAgent,-JSDateTimeUTC,-HttpUserAgent" ,
2024-05-21 16:42:56 +02:00
) ;
//clearPref("privacy.fingerprintingProtection.overrides");
lockPref ( "privacy.fingerprintingProtection.pbmode" , true ) ;
//clearPref("privacy.fingerprintingProtection.pbmode");
2024-05-19 13:05:04 +02:00
// (Incompatible with the above)
2024-05-21 16:42:56 +02:00
lockPref ( "privacy.resistFingerprinting" , false ) ;
//clearPref("privacy.resistFingerprinting");
lockPref ( "privacy.resistFingerprinting.block_mozAddonManage" , true ) ;
//clearPref("privacy.resistFingerprinting.block_mozAddonManage");
2024-05-19 13:05:04 +02:00
// Letterboxing from Tor Browser, I like it in general.
2024-05-19 17:46:25 +02:00
lockPref ( "privacy.resistFingerprinting.letterboxing" , true ) ;
2024-05-19 13:05:04 +02:00
// Still Incompatible with the above
2024-05-19 19:38:32 +02:00
//lockPref("privacy.resistFingerprinting.pbmode", false);
2024-05-19 17:46:25 +02:00
clearPref ( "privacy.resistFingerprinting.pbmode" ) ;
2024-05-19 13:05:04 +02:00
// Enables reading mode for all pages (at least in theory)
2024-05-19 19:38:32 +02:00
lockPref ( "reader.parse-on-load.force-enabled" , true ) ;
2024-05-19 13:05:04 +02:00
// Ensure OCSP stapling is enabled, especially if the server has it
2024-05-19 19:38:32 +02:00
lockPref ( "security.ssl.enable_ocsp_must_staple" , true ) ;
2024-05-19 13:05:04 +02:00
2024-05-23 05:57:13 +02:00
// New sidebar
lockPref ( "sidebar.revamp" , true ) ;
2024-05-19 13:05:04 +02:00
// No making configuration on the last line of the file!
//