Compare commits

..

4 Commits

2 changed files with 40 additions and 36 deletions

View File

@ -8,7 +8,7 @@
lockPref("autoadmin.failover_to_cached", true); lockPref("autoadmin.failover_to_cached", true);
lockPref( lockPref(
"autoadmin.global_config_url", "autoadmin.global_config_url",
"https://codeberg.org/Aminda/shell-things/raw/branch/cxefa/conf/firefox-forbidden-policies.js", "https://raw.githubusercontent.com/Mikaela/shell-things/refs/heads/cxefa/conf/firefox-forbidden-policies.js",
); );
lockPref("autoadmin.offline_failover", true); lockPref("autoadmin.offline_failover", true);
lockPref("autoadmin.refresh_interval", 120); lockPref("autoadmin.refresh_interval", 120);
@ -20,38 +20,41 @@ lockPref("cookiebanners.service.mode.privateBrowsing", 2);
// I can set my preferred fonts in an order! :O // I can set my preferred fonts in an order! :O
// but obviously this is forbidden in policies.json! // but obviously this is forbidden in policies.json!
// lockPref( lockPref(
// "font.name-list.monospace.x-cyrillic", "font.name-list.monospace.x-cyrillic",
// "Comic Shanns Mono, Roboto Mono, Liberation Mono, Noto Sans Mono, monospace", "Atkinson Hyperlegible Mono, Comic Shanns Mono, Roboto Mono, Liberation Mono, Noto Sans Mono, monospace",
// ); );
// lockPref( lockPref(
// "font.name-list.monospace.x-western", "font.name-list.monospace.x-western",
// "Comic Shanns Mono, Roboto Mono, Liberation Mono, Noto Sans Mono, monospace", "Atkinson Hyperlegible Mono, Comic Shanns Mono, Roboto Mono, Liberation Mono, Noto Sans Mono, monospace",
// ); );
// // REMEMBER! OpenDyslexic won't work here for some reason, use the extension // REMEMBER! OpenDyslexic won't work here for some reason, use the extension
// // once it returns to Firefox! https://github.com/OpenDyslexic/extension/issues/75 // once it returns to Firefox! https://github.com/OpenDyslexic/extension/issues/75
// lockPref( // TODO: Is the above correct when -FontVisibilityRestrictGenerics ?
// "font.name-list.sans-serif.x-cyrillic", lockPref(
// "OpenDyslexic, Inclusive Sans, Roboto, Liberation Sans, Noto Sans, sans-serif", "font.name-list.sans-serif.x-cyrillic",
// ); "Atkinson Hyperlegible Next, OpenDyslexic, Inclusive Sans, Roboto, Liberation Sans, Noto Sans, sans-serif",
// lockPref( );
// "font.name-list.sans-serif.x-western", lockPref(
// "OpenDyslexic, Inclusive Sans, Liberation Sans, Comic Neue, Roboto, Noto Sans, sans-serif", "font.name-list.sans-serif.x-western",
// ); "Atkinson Hyperlegible Next, OpenDyslexic, Inclusive Sans, Liberation Sans, Comic Neue, Roboto, Noto Sans, sans-serif",
// lockPref( );
// "font.name-list.serif.x-cyrillic", lockPref(
// "OpenDyslexic, Inclusive Sans, Liberation Serif, Roboto Serif, Noto Serif, serif", "font.name-list.serif.x-cyrillic",
// ); "Atkinson Hyperlegible Next, OpenDyslexic, Inclusive Sans, Liberation Serif, Roboto Serif, Noto Serif, serif",
// lockPref( );
// "font.name-list.serif.x-western", lockPref(
// "OpenDyslexic, Inclusive Sans, Liberation Serif, Roboto Serif, Noto Serif, serif", "font.name-list.serif.x-western",
// ); "Atkinson Hyperlegible Next, OpenDyslexic, Inclusive Sans, Liberation Serif, 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"); // Uncomment when giving up on messing up with fonts
clearPref("font.name-list.sans-serif.x-western"); //clearPref("font.name-list.monospace.x-cyrillic");
clearPref("font.name-list.serif.x-cyrillic"); //clearPref("font.name-list.monospace.x-western");
clearPref("font.name-list.serif.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");
// Play animated images only once, accessibility. // Play animated images only once, accessibility.
lockPref("image.animation_mode", "once"); lockPref("image.animation_mode", "once");
@ -63,9 +66,10 @@ lockPref("javascript.use_us_english_locale", true);
// Refer to https://searchfox.org/mozilla-central/source/toolkit/components/resistfingerprinting/RFPTargets.inc // Refer to https://searchfox.org/mozilla-central/source/toolkit/components/resistfingerprinting/RFPTargets.inc
lockPref("privacy.fingerprintingProtection", true); lockPref("privacy.fingerprintingProtection", true);
lockPref("privacy.fingerprintingProtection.pbmode", true); lockPref("privacy.fingerprintingProtection.pbmode", true);
// -FontVisibilityRestrictGenerics should allow fonts set in preferences to appear
lockPref( lockPref(
"privacy.fingerprintingProtection.overrides", "privacy.fingerprintingProtection.overrides",
"+AllTargets,-KeyboardEvents,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-JSDateTimeUTC", "+AllTargets,-KeyboardEvents,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-JSDateTimeUTC,-FontVisibilityRestrictGenerics,-FontVisibilityBaseSystem,-FontVisibilityLangPack",
); );
pref("browser.display.use_document_fonts", 0); pref("browser.display.use_document_fonts", 0);

View File

@ -605,7 +605,7 @@
"Comment": "Preference not allowed for stability reasons. :(", "Comment": "Preference not allowed for stability reasons. :(",
"Status": "locked", "Status": "locked",
"Type": "string", "Type": "string",
"Value": "https://codeberg.org/Aminda/shell-things/raw/branch/cxefa/conf/firefox-forbidden-policies.js" "Value": "https://raw.githubusercontent.com/Mikaela/shell-things/refs/heads/cxefa/conf/firefox-forbidden-policies.js"
}, },
"autoadmin.offline_failover": { "autoadmin.offline_failover": {
"Comment": "Preference not allowed for stability reasons. :(", "Comment": "Preference not allowed for stability reasons. :(",
@ -1143,7 +1143,7 @@
"Comment": "Preference not allowed for stability reasons. :( https://searchfox.org/mozilla-central/source/toolkit/components/resistfingerprinting/RFPTargets.inc - If you adjust this, see also use_document_fonts to not increase fingerprinting surface excessively", "Comment": "Preference not allowed for stability reasons. :( https://searchfox.org/mozilla-central/source/toolkit/components/resistfingerprinting/RFPTargets.inc - If you adjust this, see also use_document_fonts to not increase fingerprinting surface excessively",
"Status": "locked", "Status": "locked",
"Type": "string", "Type": "string",
"Value": "+AllTargets,-KeyboardEvents,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-JSDateTimeUTC" "Value": "+AllTargets,-KeyboardEvents,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-JSDateTimeUTC,-FontVisibilityRestrictGenerics,-FontVisibilityBaseSystem,-FontVisibilityLangPack"
}, },
"privacy.fingerprintingProtection.pbmode": { "privacy.fingerprintingProtection.pbmode": {
"Comment": "Preference not allowed for stability reasons. :(", "Comment": "Preference not allowed for stability reasons. :(",