Useragent question

  • 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?

  • There are extensions. A quick search gives this:

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

  • 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?

  • 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.

  • 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) 😉

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.