ray-lothian / UserAgent-Switcher

A User-Agent spoofer browser extension that is highly configurable
https://webextension.org/listing/useragent-switcher.html
Mozilla Public License 2.0
949 stars 145 forks source link

[bug] Error injecting userAgentData data #139

Open ttttmr opened 2 years ago

ttttmr commented 2 years ago

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgentData

userAgentData only exists in https websites. If a chrome ua is set using UserAgent-Switcher, userAgentData still exists when visiting http websites

image

https://github.com/ray-lothian/UserAgent-Switcher/blob/18b2fbadb775d6c9da66ee6a43fb59f81cd30339/extension/firefox/common.js#L265-L272

ttttmr commented 2 years ago

At the same time, if you choose chrome ua, the version is too old, userAgentData should not be injected, because the old version of chrome does not support this api

YesTrustMe commented 2 years ago

I believe this extension is no longer being supported.