pyllyukko / user.js

user.js -- Firefox configuration hardening
MIT License
2.73k stars 233 forks source link

Can't change useragent #512

Closed OliverTrust closed 3 years ago

OliverTrust commented 3 years ago

Use this "profile" in selenium python and can't change useragent. Problem in this profile. With another profile changing work

fgeek commented 3 years ago

What was the exact workflow? What problem? Give use case where you had an issue, thanks.

OliverTrust commented 3 years ago

Ok. profile = webdriver.FirefoxProfile() profile.set_preference('general.useragent.override', 'any_useragent') This perfectly work with default firefox profile. But with this user.js useragent all time "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" p.s. general.oscpu.override general.platform.override general.buildID.override not work too