Search

4/20/2009

Yahoo! Mobile - Blueprint Blog » Blog Archive » Test your site on different phones — without the phones!

Yahoo! Mobile - Blueprint Blog » Blog Archive » Test your site on different phones — without the phones!

If you don’t have hundreds of phones but want to see how your site appears on different clients, check out Firefox’s User Agent Switcher add-on. Blueprint uses a phone’s user agent (essentially a browser ID) to determine rendering. By supplying a different user agent with each HTTP request, you can tell Blueprint to treat your desktop browser like a specific hand-held device.

Ready to try it? Follow these steps:

1. Go to https://addons.mozilla.org/en-US/firefox/addon/59 and click “Add to Firefox”. After downloading the add-on, you will need to restart Firefox.
2. You'll find a new menu item called “User Agent Switcher” in Firefox's Tools menu. The Switcher comes with three predefined user agents for desktop browsers.
3. Identify user agents you want to test. Some manufacturers provide this information in their developer documentation, and sites like Wikipedia (http://en.wikipedia.org/wiki/Listofuseragentsformobilephones) can also be a good resource. To find your phone's user agent, open http://whatsmyuseragent.com in the phone's browser.
4. Add one or more user agents to the Switcher menu. In Firefox, choose Tools > User Agent Switcher > Options > Options… > User Agents > Add…; copy a user-agent string into the “User Agent” field and supply a descriptive name. Examples:

沒有留言: