For cross-browser testing and to emulate sites on other devices till now we relied on extensions (like The User-Agent Switcher for Chrome) and by adding command line switches to chrome to change user-agent string in Google Chrome, now you don’t need all this since it’s built right into dev tools of Chrome now, current dev version has it.
Built-in User-Agent Switcher for Chrome
All you need to do is open dev tools (use Ctrl +Shift+I shortcut instead) from the wrench menu and click settings icon at the bottom, select or enable override user agent and select the browser or device you want to emulate and reload the page.
[Thanks to François Beaufort]
| SHARE |
|
|
|

{ 3 comments }
As a follow up, turns out this new feature is in the dev channel for Chrome 17, so it’s NOT in the current version. Can’t wait until it is, but I don’t generally bother with non-release stuff
This is a temporary setting. It is not persistent.
Is there a way to modify the UA so it stays at what I set it to?
Who said its a temp setting, it’s still available in dev version of Chrome am using. I don’t know or think there is a way to stay the UA sting same when you exit and relaunch the browser.
Comments on this entry are closed.