• 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

    Useragent question

    Opera for Windows
    4
    5
    2408
    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.
    • operabop
      operabop last edited by

      Is the only way to modify the useragent is to do it on the fly right when it gets sent to a website, using the webrequest api?

      Reply Quote 0
        1 Reply Last reply
      • sgunhouse
        sgunhouse Moderator Volunteer last edited by

        There are extensions. A quick search gives this:

        https://addons.opera.com/en/search/?query=agent

        Reply Quote 0
          1 Reply Last reply
        • operabop
          operabop last edited by

          There are extensions. A quick search gives this:
          https://addons.opera.com/en/search/?query=agent

          Yes I'm quite aware that opera has extensions which can modify the useragent.

          But what I want to know if theres any way to set the useragent manually for example opera:flags. Or if the only way is to modify it via an extension - is the only access to the useragent through the webrequest api?

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

            I want to know if theres any way to set the useragent manually

            Nope.

            Or if the only way is to modify it via an extension

            Afaik, yes.

            Reply Quote 0
              1 Reply Last reply
            • l33t4opera
              l33t4opera last edited by

              Hi @operabop, you can change the UA by adding the --user-agent switch at the end of the shortcut to the launcher.exe, for example:

              "path\to\the\launcher.exe" --user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36"
              

              Alternatively, if you want to set the UA for temporary use (it only persists, while you have the Dev Tools window open), copy your custom UA string, and press Ctrl+Shift+I (opens the Dev Tools), press Ctrl+Shift+M (toggles Device Mode), and on the right of "UA" click on "No override", paste the UA string (Ctrl+V, or right-click on the field, and select "Paste" from the context menu) 😉

              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-