Navigation

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    User-Agent-Switching Extensions do not work in Opera?

    Opera add-ons
    3
    6
    524
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mattkruse
      mattkruse 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?

      Reply Quote 3
        leocg 1 Reply Last reply
      • leocg
        leocg Moderator Volunteer @mattkruse last edited by

        @mattkruse I have used a few of those user agent switches extensions and they seemed to have worked. At least the user agent looked different in some testing sites.

        Reply Quote 0
          mattkruse 1 Reply Last reply
        • mattkruse
          mattkruse @leocg 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.

          Reply Quote 0
            leocg 1 Reply Last reply
          • leocg
            leocg Moderator Volunteer @mattkruse last edited by

            @mattkruse I've checked here with one extension and it didn't work. Maybe something has changed that broke those extensions.

            Would be interesting to see if they work in other Chromium based browsers.

            Reply Quote 0
              mattkruse 1 Reply Last reply
            • mattkruse
              mattkruse @leocg 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.

              Reply Quote 0
                1 Reply Last reply
              • bizzyb
                bizzyb 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

                Reply Quote 0
                  1 Reply Last reply
                • First post
                  Last post

                Computer browsers

                • Opera for Windows
                • Opera for Mac
                • Opera for Linux
                • Opera beta version
                • Opera USB

                Mobile browsers

                • Opera for Android
                • Opera Mini
                • Opera Touch
                • Opera for basic phones

                • Add-ons
                • Opera account
                • Wallpapers
                • Opera Ads

                • Help & support
                • Opera blogs
                • Opera forums
                • Dev.Opera

                • Security
                • Privacy
                • Cookies Policy
                • EULA
                • Terms of Service

                • About Opera
                • Press info
                • Jobs
                • Investors
                • Become a partner
                • Contact us

                Follow Opera

                • Opera - Facebook
                • Opera - Twitter
                • Opera - YouTube
                • Opera - LinkedIn
                • Opera - Instagram

                © Opera Software 1995-