firefox: explicitly configure font whitelist

I have made the mistake of installing fonts with an asterisk so I have unique fingerprint anyway and might as well have some control over which fonts I have. Plus this allows me to use OpenDyslexic with DarkReader
This commit is contained in:
Aminda Suomalainen 2024-06-09 18:39:55 +03:00
parent f6b2de3c77
commit 0bf4312c9e
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 11 additions and 0 deletions

View File

@ -50,6 +50,11 @@ 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",
);
// Play animated images only once, accessibility.
lockPref("image.animation.mode", "once");

View File

@ -539,6 +539,12 @@
"Type": "string",
"Value": "Liberation Serif"
},
"font.system.whitelist": {
"Comment": "Preference not allowed for stability reasons.",
"Status": "default",
"Type": "string",
"Value": "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"
},
"general.config.obscure_value": {
"Comment": "Required for autoconfig.",
"Status": "locked",