accept-language-per-site icon indicating copy to clipboard operation
accept-language-per-site copied to clipboard

Change navigator.language in addition to Accept-Language header

Open DDoerner opened this issue 1 year ago • 2 comments

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.

DDoerner avatar Oct 27 '23 10:10 DDoerner

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.

sorz avatar Nov 15 '23 07:11 sorz

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

SaltfishAmi avatar Mar 20 '24 22:03 SaltfishAmi