Skip to content

Instantly share code, notes, and snippets.

@ruario

ruario/chrome-ua-test.md

Last active Feb 6, 2020
Embed
What would you like to do?
Launching Google Chrome with a Vivaldi User Agent

The following will allow you to test Chrome with a Vivaldi user agent. Shutdown Chrome and start a Terminal (or cmd.exe on Windows), then paste in the code that is relevant for your platform and press “Enter”–you can triple-click to select an entire line.

Testing with Chrome

NOTE: There is little point testing in Vivaldi because old versions already had workarounds for these specific issues and from 2.10 onwards we use a Chrome User Agent string.

Windows

"%PROGRAMFILES(X86)%\Google\Chrome\Application\chrome.exe" --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.94 Safari/537.36 Vivaldi/2.10.1745.21"

macOS

open -a Google\ Chrome.app --args --user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.94 Safari/537.36 Vivaldi/2.10.1745.21'

Linux

google-chrome-stable --user-agent='Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.94 Safari/537.36 Vivaldi/2.10.1745.21'

Examples

Now try any of the websites listed in the Vivaldi User Agent video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.