Tuesday, May 22, 2012

Fake a mobile device with Chrome

To make Chrome identify as another browser see the comment from Alexander Pavlov here:

http://stackoverflow.com/questions/7561271/user-agent-switcher-for-chrome

I'll repeat it: Open developer tools (Ctrl+Shift+J or Ctrl+Shift+I) and click the small gear icon bottom right to open settings. Check 'Override User Agent' and select the one you want.

This is very useful for testing mobile web pages as you can use chrome to test instead of on a physical device.

Note: This only works as long as you have the developer tools window open, and only in the tab you opened them in.

No comments:

Post a Comment