vytal-io / vytal-extension

Browser extension to spoof timezone, geolocation, locale and user agent.
https://vytal.io
GNU General Public License v3.0
1.79k stars 94 forks source link

Service worker support #10

Open NDevTK opened 2 years ago

NDevTK commented 2 years ago

In the worker context navigator.userAgent still works.

z0ccc commented 2 years ago

How are you testing that? Thanks

NDevTK commented 2 years ago

I have very limited time at the moment... Went to https://ndev.tk/ then in devtools console changed the context from "top" to "sw.js" and did console.log(navigator.userAgent)

The Target Domain may be helpful to automatically attach to new targets not sure if the debug api can use it. https://chromedevtools.github.io/devtools-protocol/1-3/Target/#method-setDiscoverTargets Latest even has https://chromedevtools.github.io/devtools-protocol/tot/Target/#method-setAutoAttach