User-Agent-Switching Extensions do not work in Opera?
-
A Former User last edited by
I created an WebExtension to force Facebook into the old layout - OldLayout.com
It's very simple, but it doesn't seem to work in Opera. So I tested other extensions that change the user-agent header in requests, and none of them seem to work either! I'm using https://manytools.org/http-html-text/http-request-headers/ to look at the actual request headers being sent, and the user-agent header is never being modified, by any extension.
My code is extremely simple, and uses chrome.webRequest.onBeforeSendHeaders.addListener() to intercept headers and change user-agent. Full source is here: https://github.com/matt-kruse/old-layout/tree/master/extension
I can't find any documentation that says webRequest is broken in Opera. But, I am also not a regular Opera user so I don't know if I'm missing a setting or something that is required for these to run? Any tips at all?
-
A Former User last edited by
@leocg Is there anything special needed to enable them? I believe I've done everything needed, yet headers still don't seem to get modified.
I'm using the very latest Opera, not sure if that makes a difference.
-
A Former User last edited by
@leocg According to another tester, changing user-agent header in an extension is broken in Opera back to earlier in 2020. I have tested several other user-agent switcher extensions in Opera, and none of them work. It definitely seems to be a bug in Opera.
-
A Former User last edited by
Have you found a solutions to this yet, most of the things I use like streaming services will not work with the new facebook. Thanks