From 23ab331d5f702290e38361221d24ef76e7021335 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 19 Jul 2023 10:31:09 +0200 Subject: firefox: Add a few more prefs from Betterfox I roughly went through the preferences set by Betterfox[1] and checked whether they'd make sense for my Firefox version. While most of these options are pretty straightforward, the captive and connectivity services are features for convenience, eg. when travelling. However, since the only thing they do is giving UI hints that otherwise can be found out via a quick detour to the shell or visiting a random "http://" URL I don't think the convenience outweights repeatedly pinging detectportal.firefox.com. [1]: https://github.com/yokoffing/Betterfox Signed-off-by: aszlig --- pkgs/aszlig/firefox/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pkgs') diff --git a/pkgs/aszlig/firefox/default.nix b/pkgs/aszlig/firefox/default.nix index 3ae44e4a..05e0a095 100644 --- a/pkgs/aszlig/firefox/default.nix +++ b/pkgs/aszlig/firefox/default.nix @@ -65,14 +65,28 @@ in wrapFirefox firefoxNoSigning { lockPref('browser.newtab.privateAllowed', false); lockPref('browser.newtabpage.enabled', false); lockPref('browser.rights.3.shown', true); + lockPref('browser.safebrowsing.downloads.remote.enabled', false); lockPref('browser.safebrowsing.malware.enabled', false); lockPref('browser.safebrowsing.phishing.enabled', false); lockPref('browser.shell.checkDefaultBrowser', false); lockPref('devtools.theme', 'dark'); + lockPref('extensions.getAddons.cache.enabled', false); + lockPref('extensions.blocklist.enabled', false); lockPref('extensions.webextensions.restrictedDomains', ""); + lockPref('network.captive-portal-service.enabled', false); + lockPref('network.connectivity-service.enabled', false); lockPref('privacy.donottrackheader.enabled', true); lockPref('privacy.query_stripping.enabled', true); lockPref('privacy.query_stripping.enabled.pbmode', true); + lockPref('privacy.query_stripping.strip_list', '${toString [ + # Stolen from : + "__hsfp" "__hssc" "__hstc" "__s" "_hsenc" "_openstat" "dclid" "fbclid" + "gbraid" "gclid" "hsCtaTracking" "igshid" "mc_eid" "ml_subscriber" + "ml_subscriber_hash" "msclkid" "oft_c" "oft_ck" "oft_d" "oft_id" + "oft_ids" "oft_k" "oft_lk" "oft_sk" "oly_anon_id" "oly_enc_id" + "rb_clickid" "s_cid" "twclid" "vero_conv" "vero_id" "wbraid" "wickedid" + "yclid" + ]}'); lockPref('privacy.trackingprotection.enabled', true); lockPref('privacy.trackingprotection.socialtracking.enabled', true); lockPref('reader.color_scheme', 'dark'); -- cgit 1.4.1