Friday, September 23, 2011

User Agent Switching with Google Chrome

I prefer the Chrome development tools to Firefox/Firebug for development, but found myself forced to use Firefox just so I could use the User Agent Switcher plug-in. Fortunately, Chrome allows user agent switching albeit from the command line. All Google tools rock the command line, because Google is old-school like that.

To mimic the iOS Safari browser, construct a shortcut with the following path:

C:\Users\{user}\AppData\Local\Google\Chrome\Application\chrome.exe --user-agent="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528"

Update: Nevermind, I guess.

No comments:

Post a Comment