fix: split stealth scripts by browser engine, add Firefox stealth #72
Reference in New Issue
Block a user
Delete Branch "fix/69-firefox-stealth-scripts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
stealthInitScriptsinto three engine-aware categories:stealthCommonScripts(4),stealthChromiumScripts(8), andstealthFirefoxScripts(5 new)browser_init.gonow selects common + engine-specific scripts based onopt.Browser, so Chromium-only scripts (window.chrome, ANGLE WebGL, CDP cleanup, HeadlessChrome UA strip) no longer get injected into FirefoxgetOwnPropertyDescriptorhardening, Mesa/Intel WebGL spoof,mozInnerScreenX/Yfix,hardwareConcurrencynormalization, PDF.js plugin listCloses #69
Relates to #68
Test plan
go build ./...succeedsgo test ./...all passgo vet ./...clean🤖 Generated with Claude Code