Monday, June 13, 2011

Run your chrome browser in Android / iPad mode on a windows machine

Change the user agent of your chrome browser in Windows 7

Good for testing your web application quickly for mobile domains.

iPad
C:\Users\\AppData\Local\Google\Chrome\Application\chrome.exe --user-agent="Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10"

Android
C:\Users\\AppData\Local\Google\Chrome\Application\chrome.exe --user-agent="Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"

No comments: