From e44c405cc8a1d22f92d2aa009f23faa97d4e43ec Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 18 Jul 2025 20:47:16 +0300 Subject: [PATCH] firefox: quick cleanup in hopes of becoming Google approved not suspicious looking browser --- conf/firefox-forbidden-policies.js | 66 +++++++++++++++--------------- etc/firefox/policies/policies.json | 25 +---------- 2 files changed, 34 insertions(+), 57 deletions(-) diff --git a/conf/firefox-forbidden-policies.js b/conf/firefox-forbidden-policies.js index 66e1d886..725d4fe9 100644 --- a/conf/firefox-forbidden-policies.js +++ b/conf/firefox-forbidden-policies.js @@ -20,38 +20,38 @@ 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.name-list.monospace.x-cyrillic", - "Comic Shanns Mono, Roboto Mono, Liberation Mono, Noto Sans Mono, monospace", -); -lockPref( - "font.name-list.monospace.x-western", - "Comic Shanns Mono, Roboto Mono, Liberation Mono, Noto Sans Mono, monospace", -); -// REMEMBER! OpenDyslexic won't work here for some reason, use the extension -// once it returns to Firefox! https://github.com/OpenDyslexic/extension/issues/75 -lockPref( - "font.name-list.sans-serif.x-cyrillic", - "OpenDyslexic, Inclusive Sans, Roboto, Liberation Sans, Noto Sans, sans-serif", -); -lockPref( - "font.name-list.sans-serif.x-western", - "OpenDyslexic, Inclusive Sans, Liberation Sans, Comic Neue, Roboto, Noto Sans, sans-serif", -); -lockPref( - "font.name-list.serif.x-cyrillic", - "OpenDyslexic, Inclusive Sans, Liberation Serif, Roboto Serif, Noto Serif, serif", -); -lockPref( - "font.name-list.serif.x-western", - "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"); -// 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-list.monospace.x-cyrillic", +// "Comic Shanns Mono, Roboto Mono, Liberation Mono, Noto Sans Mono, monospace", +// ); +// lockPref( +// "font.name-list.monospace.x-western", +// "Comic Shanns Mono, Roboto Mono, Liberation Mono, Noto Sans Mono, monospace", +// ); +// // REMEMBER! OpenDyslexic won't work here for some reason, use the extension +// // once it returns to Firefox! https://github.com/OpenDyslexic/extension/issues/75 +// lockPref( +// "font.name-list.sans-serif.x-cyrillic", +// "OpenDyslexic, Inclusive Sans, Roboto, Liberation Sans, Noto Sans, sans-serif", +// ); +// lockPref( +// "font.name-list.sans-serif.x-western", +// "OpenDyslexic, Inclusive Sans, Liberation Sans, Comic Neue, Roboto, Noto Sans, sans-serif", +// ); +// lockPref( +// "font.name-list.serif.x-cyrillic", +// "OpenDyslexic, Inclusive Sans, Liberation Serif, Roboto Serif, Noto Serif, serif", +// ); +// lockPref( +// "font.name-list.serif.x-western", +// "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"); +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. lockPref("image.animation_mode", "once"); @@ -65,7 +65,7 @@ lockPref("privacy.fingerprintingProtection", true); lockPref("privacy.fingerprintingProtection.pbmode", true); lockPref( "privacy.fingerprintingProtection.overrides", - "+AllTargets,-KeyboardEvents,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-JSDateTimeUTC,-FontVisibilityBaseSystem,-FontVisibilityRestrictGenerics", + "+AllTargets,-KeyboardEvents,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-JSDateTimeUTC", ); pref("browser.display.use_document_fonts", 0); diff --git a/etc/firefox/policies/policies.json b/etc/firefox/policies/policies.json index a04e1cf6..cc29b33d 100644 --- a/etc/firefox/policies/policies.json +++ b/etc/firefox/policies/policies.json @@ -231,7 +231,6 @@ "DisableFirefoxScreenshots": false, "DisableFirefoxStudies": true, "DisableForgetButton": false, - "DisablePocket": true, "DisableSecurityBypass": { "InvalidCertificate": true, "SafeBrowsing": false @@ -464,21 +463,6 @@ "private_browsing": false, "restricted_domains": [] }, - "{5b22cb75-8e43-4f2a-bb9b-1da0655ae564}": { - "blocked_install_message": "archive.is extension via their homepage", - "default_area": "navbar", - "install_url": "https://addons.mozilla.org/firefox/downloads/latest/archive-page/latest.xpi", - "installation_mode": "normal_installed", - "private_browsing": false, - "restricted_domains": [] - }, - "{6003eac6-4b07-4aaf-960b-92fa006cd444}": { - "blocked_install_message": "Mozilla Orbit. AI hurts climate and the crawlers are DDoSing the internet. However the summary feature sometimes spares my mental health, so begrudgingly it's allowed and won't be normal_installed let alone force_installed.", - "default_area": "navbar", - "installation_mode": "blocked", - "private_browsing": false, - "restricted_domains": [] - }, "{6a65273e-2b26-40f5-b66e-8eed317307da}": { "blocked_install_message": "New Tab Suspender. More useful than the Firefox integrated one, which this policy should also enable (if not, autoconfig does, I don't remember and not checking right now, TODO!)", "default_area": "navbar", @@ -581,7 +565,6 @@ "Pocket": false, "Search": true, "Snippets": false, - "SponsoredPocket": false, "SponsoredTopSites": false, "TopSites": false }, @@ -1146,7 +1129,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", "Status": "locked", "Type": "string", - "Value": "+AllTargets,-KeyboardEvents,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-JSDateTimeUTC,-FontVisibilityBaseSystem,-FontVisibilityRestrictGenerics" + "Value": "+AllTargets,-KeyboardEvents,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-JSDateTimeUTC" }, "privacy.fingerprintingProtection.pbmode": { "Comment": "Preference not allowed for stability reasons. :(", @@ -1209,12 +1192,6 @@ "Type": "boolean", "Value": true }, - "security.tls.ech.grease_http3": { - "Comment": "Seems to be required for http3. This defaults to true on Nightly 128 and false on 115.11.0esr. However again not allowed to be deployed here for security :()", - "Status": "locked", - "Type": "boolean", - "Value": true - }, "sidebar.revamp": { "Comment": "Preference not allowed for stability reasons.", "Status": "default",