Skip to content

Commit 7cf552c

Browse files
committed
firefox: user agent spoof
1 parent 5cc4d02 commit 7cf552c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

home-manager/apps/firefox.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,17 @@ in
111111
# about:config
112112
settings = {
113113
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
114+
"svg.context-properties.content.enabled" = true;
114115

115-
# Spoof Windows Chrome user agent
116+
# Spoof Windows Firefox (NOT Chrome) to match TLS handshake
116117
"general.useragent.override" =
117-
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36";
118+
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0";
118119

119-
# Disable some password stuff of firefox
120+
# Override Javascript platform detection to match User Agent
121+
"general.platform.override" = "Win32";
122+
"general.oscpu.override" = "Windows NT 10.0; Win64; x64";
123+
124+
# Disable password stuff
120125
"browser.contextual-password-manager.enabled" = false;
121126
"services.sync.engine.passwords" = false;
122127
"privacy.cpd.passwords" = false;

0 commit comments

Comments
 (0)