How To Emulate A Mobile Web Browser In Firefox?

Posted By Keith Dsouza On February 24, 2009 @ 12:07 pm In Tips And Tricks | 10 Comments

There are several times when you may want to test out a mobile website, or use mobile websites to save bandwidth, since they load pretty fast and do not use heavy images, which in turn can use up more bandwidth from your ISP.

mobile_web_browser

However many mobile websites redirect users back to a regular website, when you visit it using browsers such as Firefox [1], Google Chrome [2], Opera [3] or Internet Explorer.

Also Read: Monitor Your Bandwidth Usage [4]

If you are looking to test a website or save some bandwidth while surfing your favorite social networking site, a simple Firefox add-on [5] could help you emulate a mobile web browser and let you surf the website, like you would do in a actual mobile web browser.

The trick involves changing the user agent string, that is sent out to website, to make them think, that the request is coming from a actual mobile web browser, you can practically emulate default system browsers from any phone.

Steps To Emulate A Mobile Web Browser In Firefox

Step 1: Download the User Agent Switcher [6] Add-on for Firefox

Step 2: Restart Firefox [7] for the add-on change to take place.

Step 3: To emulate a mobile web browser, you will need to change the user agent string that is sent out, we recommend finding a appropriate user agent string from this huge list of mobile browser strings [8].

Step 4: Once you have identified your favorite mobile browser string, go to Tools > User Agent Switcher > Options > Options in Firefox.

select_user_agent_switcher_options

Step 5: In the options window for user agent switcher, select User Agents and click on the add button.

add_new_user_agent

Step 6: In the new Add User Agent dialog box, give a appropriate name to the user agent and copy the user agent string you got from step 3 into the second text box, for example we are creating a user agent string for iPhone, so we named it as iPhone emulator and added the default user agent for iPhone in the User Agent text box.

create_iphone_emulator

You can leave the other options provided as blank, once you have entered the details, click on the Ok button.

Step 7: To start a new browsing session using a emulated web browser, go to Tools > User Agent Switcher and select the appropriate mobile web browser you want to emulate, to switch back to normal browsing, just select the default option from the same menu.

iphone_emulator

This tip will allow you to browse mobile web sites or test them out from your PC, however this trick cannot be used to test out mobile applications, that require you to install something to the mobile phone, however you can still use this trick and save on bandwidth too.

Image Credit [9]


Article printed from Techie Buzz: http://techie-buzz.com

URL to article: http://techie-buzz.com/tips-and-tricks/emulate-mobile-browser-in-firefox.html

URLs in this post:

[1] Firefox: http://techie-buzz.com/tag/firefox

[2] Google Chrome: http://techie-buzz.com/tag/google-chrome

[3] Opera: http://techie-buzz.com/tag/opera

[4] Monitor Your Bandwidth Usage: http://techie-buzz.com/utilites/monitor-your-bandwidth-usage-with-bitmeter.html

[5] Firefox add-on: http://techie-buzz.com/tag/firefox-extensions

[6] User Agent Switcher: https://addons.mozilla.org/en-US/firefox/addon/59

[7] Restart Firefox: http://techie-buzz.com/firefox/option-to-restart-firefox.html

[8] mobile browser strings: http://www.zytrax.com/tech/web/mobile_ids.html

[9] Image Credit: http://img.cellular-news.com/story/27708/Windows_Mobile_Smartphones_to_get_Firefox_Mobile_Web_Browser_1.jpg

Copyright © 2006-20011 Techie Buzz. All rights reserved.