Change navigator.language in addition to Accept-Language header
DDoerner opened this issue · 2 comments
DDoerner commented
I know that this extends the original scope, but since more and more websites switch to recognizing the users language not via the header but via the Navigator API, it would be useful if this extension could also manipulate this API on the set domains.
sorz commented
By a quick skimming of extension document, I can't found a quick way to intercept/modify browser API with extension. Injecting a script that create a proxy object of navigator may work? I'm not sure about it.
SaltfishAmi commented
Maybe you can get some inspiration from this other extension that does the same job?
https://github.com/locale-switcher/locale-switcher/blob/main/src/background/index.ts