Open Location in iPhone Mode in Firefox

I have been hacking Firefox. Here is a simple iPhone mode add-on. This is very basic mode. You can type an address in the address field and hit ENTER. You can use the Reload button to reload the page. You can use Go Back and Go Forward buttons to navigate the history. You can use Add Bookmark button to add a bookmark to the current page. You can use the Show Bookmarks button to show the Bookmarks window. Just lkie the iPhone - the address bar is hidden when the document loads. You can reshow the address bar by clicking on the battery indicator bar.

Any URL can be invoked in the iPhone mode from command line by using the -iphone command line argument.

> firefox -iphone URL

Use the File:OpenLocation in iPhone Mode... menu item to launch the iPhone mode.

Open Location in iPhone Mode

iPhone ModeiPhone mode collapsed address bar

Talk about recursive :)

Download the add-on.

Download the NetBeans 6.1 project.

DISCLAIMER: This add-on is experimental. So no guarantees. Use the add-on at your own risk.



Posted by guest on April 22, 2008 at 05:18 PM PDT #

Very cool. Just tried it.

Posted by Winston Prakash on April 23, 2008 at 03:40 AM PDT #

I have updated the build script in the NetBeans 6.1 project. Now it builds and installs the iphone.xpi.

Posted by Sandip on April 26, 2008 at 03:11 AM PDT #

Now any URL can be invoked in the iPhone mode by using the:

> firefox -iphone URL

command line argument.

Posted by Sandip on April 27, 2008 at 01:25 AM PDT #

How do I rotate it?

Posted by me on April 30, 2008 at 06:55 AM PDT #

Not yet. I am working on it.

Posted by Sandip on April 30, 2008 at 06:59 AM PDT #

Is there is a way to enable the Phone keyboard.

Posted by mpselvam on July 25, 2008 at 01:38 AM PDT #

Nice. Need the ability to rotate as most websites would be viewed in landscape.

Posted by toddv on August 03, 2008 at 11:46 PM PDT #

i could'nt open the XPI file. and WHAT am i supposed to do with the ZIP file?????

Posted by Jerry on August 10, 2008 at 03:59 AM PDT #

i found it out.

Posted by Jerry on August 10, 2008 at 04:31 AM PDT #

Maybe it uses the gecko rendering engine?

Posted by Marco on August 21, 2008 at 12:12 AM PDT #

Shit tool!

it uses not the iphone user agent

Posted by Horst on August 23, 2008 at 09:15 PM PDT #

This is an awesome tool. How about you learn to use firefox plugins, such as the "User Agent Switcher", and switch it yourself?

Here is the User-Agent info for the iPhone:
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en)

Thats all you need. Stop your bitching unless you're paying for it.

Posted by bsprogs on August 26, 2008 at 09:18 AM PDT #

thank you, this is helpful.

Posted by ford152 on August 26, 2008 at 10:41 PM PDT #

Nice tool - though I'm sure Flash isn't supported by iPhone yet? I was looking for something which didn't play Flash - as I'm developing a mobile video community!

Posted by Adam on September 15, 2008 at 01:44 AM PDT #


Posted by guest on October 28, 2008 at 12:40 AM PDT #

Looks like a great tool. For the less knowledgeable (me) could anyone please give a little more guidance as to how to install this? Much Appreciated!

Posted by guest on October 29, 2008 at 05:41 AM PDT #

Sorry - that last comment was by Doug!

Posted by Doug on October 29, 2008 at 07:07 AM PDT #

I did install the User Agent plug-in mentioned above and entered the iPhone info(not sure if this is needed), I then went into Start > Run in Windows and entered this to run the app:
"C:\\Program Files\\Mozilla Firefox\\firefox.exe" -iphone yourURL

Posted by c on November 04, 2008 at 10:05 PM PST #

Above mentioned "User Agent" add-in not needed.

Posted by c on November 04, 2008 at 10:18 PM PST #

Also, to install the .xpi file, just open Windows Explorer and drag it into Firefox, it will then start installing.

Posted by c on November 04, 2008 at 10:20 PM PST #

Tho I've noticed I do get this error(even after un-installing the "User Agent") when using this iPhone plug-in:
"Error calling method on NPObject!"
Any ideas?

Posted by c on November 04, 2008 at 10:22 PM PST #

This is what I've been lookin for

Posted by guest on December 03, 2008 at 03:59 AM PST #

I tried your command in the address window, but I didn't get the expected results. How do I invoke the emulator? Thank you in advance for your help.

Posted by Scott Miller on December 08, 2008 at 11:57 PM PST #

I think that the missing user-agent makes the emulator unuseful.

I agree that the previous comment "Shit tool!" is very unpolite, at the same time I think that having people not to being able to tell something is uneseful only because it's free does not make sense.

However, it's "better than nothing", but still not likely to be more interesing than a frame in a html page.

Posted by Julien on December 24, 2008 at 10:58 PM PST #

Shit tool!

Posted by iphone on February 05, 2009 at 04:54 AM PST #

A useful tool for PC based web-developers. It's good enough for basic testing to ensure that navigation menus and such like will be visible to iphone users.
A rotate feature will definitely be a welcome improvement.

Posted by Andy Gee on February 17, 2009 at 10:29 PM PST #

Sorry - that last comment was by Doug!

Posted by wow power leveling on March 11, 2009 at 04:56 PM PDT #

No able to succeed!!!! Pls help me my friend call me at +393460021907. Thx very much
Filippo Conte Cabassi
Reggio emilia

Posted by Filippo Conte Cabassi on March 28, 2009 at 05:12 PM PDT #

This is a very useful tool! The user agent switcher extension must be installed, and firefox restarted to truly emulate the iphone/itouch. Once you add an iphone agent to the switcher extension and switch the user agent to iphone(tools > user agent switcher > iphone), it emulates as it should. Great work Sandip!

Question: how close does it emulate the real device? I have a 320x60 pixel header image on a mobilepress blog and that image goes off the screen on the emulator but fits perfect on an actual itouch. I would love to hear comments on this.

Also, are you still developing this? the rotate feature would be fantastic. I did check and



Posted by Eric McQuaid on April 17, 2009 at 01:01 AM PDT #


Posted by xp registry on June 26, 2009 at 03:41 AM PDT #

Great Job ! Thanks !

Posted by dispy on July 13, 2009 at 02:43 AM PDT #


Posted by guest on August 07, 2009 at 01:52 AM PDT #

Too bad it is not compatible with 3.5.5...

Posted by Matt on November 09, 2009 at 05:55 AM PST #

Please update for the latest version of Firefox... (3.5.4 here). Thanks

Posted by Tomaz on November 09, 2009 at 07:40 AM PST #

<a href=<>adfa</a>

Posted by sunny on November 15, 2009 at 02:00 PM PST #

should not be used as a real-world test, and is therefore not particularly useful
Without using the exact rendering engine of the iphone and without blocking flash in the same way you can't be sure that what you're seeing on here is an accurate representation of what an iphone will see.
little more use than resizing your window

Posted by jim on November 15, 2009 at 06:39 PM PST #

In the game the [url=]Maple Story Mesos[/url] is very important, if you had enough [url=]MS Mesos[/url] in the game, i think you will had a tall level, but if you do not had enough [url=]Cheap Maple Story Mesos[/url], i think now you already worried about how to play the game. so if you need [url=]buy Mesos[/url], you can come here and that in here you can [url=]Buy Maple Story Mesos[/url] much cheaper.

Posted by Cheap Maple Story Mesos on January 02, 2010 at 08:47 AM PST #

To install just drag iphone.xpi into the addon manager window

Posted by Doug on January 03, 2010 at 08:54 AM PST #

Hi Sandip,

Nice work.

You can find an updated version (firefox 3.5.x) here, it was a very simple metadata change.

I have tested it on 3.5.6/Linux and it works a treat.


Posted by Antony Jones on January 04, 2010 at 07:52 PM PST #

hello, welcome to our game gold website

Posted by aion money on January 06, 2010 at 02:31 PM PST #

<a href="">mabinogi gold</a> is important in this game. If you do not want to be bullied by the high level of players, you should ear more <a href="">mabinogi money</a> which can you get a high level in short time. But it is difficulty for a new player to do this. Yet you are lucky because we sell the <a href="">cheap mabinogi gold</a>. You can <a href="">buy mabinogi gold</a> from us. I believe that you can play happier with enough <a href="">mabinogi online gold</a>.

Posted by mabinogi money on January 07, 2010 at 09:14 AM PST #

Do you know that the <a href="">Cabal Online Alz </a> in the game had an important part, in the game if you had enough <a href=""> Cabal Alz</a> then I think you will had an tall level, if you do not had enough <a href="">cabal Gold</a>, then I think if you do not want to spend some money to <a href="">buy Cabal Online Alz</a>, then you need effort to play the game and to make the <a href="">Cabal money</a>.

Posted by cabal Gold on January 15, 2010 at 09:47 AM PST #

If you need <a href="">Eve isk</a>, you can <a href="">buy eve isk</a> from <a href="">eve online isk</a> shop, <a href="">buy isk</a> in this way, you can get cheaper <a href="">isk</a> than anywhere.

Posted by eve online isk on January 15, 2010 at 09:49 AM PST #

Good post, interesting to hear the reasoning behind people not going by bike. I'm glad there is a documentary exploring this issue a bit more. I like the whole if you want to know how bike friendly a city is just count the number of girls on bikes

Posted by acne treatment on February 17, 2010 at 07:25 PM PST #

There are definitely a lot of cosmetic surgeries out there that have gone wrong. That's why you need to talk to an experienced professional before getting anything done. A doctor that has experience will know what the effects of each procedure could be, and which procedure a person really needs.

Posted by website design services on February 17, 2010 at 07:26 PM PST #

example of a Word Press comment, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many comments like this one or sub-comments as you like and manage all of your content inside of
Word Press.

Posted by pest control las vegas on February 22, 2010 at 02:06 PM PST #

"fifa2gold" will bring a player after a century of war, the collapse of the world, to go, in such a world must learn self-protection and look for the <a href="">fifa2 gold</a>, restoration there are fighting. Player first and foremost task is to rebuild the social order and make enough <a href="">fifa2 online gold</a>. They also need to take care of their <a href="">buy fifa2 gold</a>. The game also allows players to carry <a href="">cheap fifa2 gold</a>, which can be controlled vehicle will also appear in the game. Camp, the game is now known to have <a href="">fifa2 money</a>, from trying to restore the old constitution's “Enforcer”.

Posted by buy fifa2 gold on March 09, 2010 at 04:31 PM PST #

Unfortunately it doesn't compatible with FireFox 3.6. Will you update your plugin?

Posted by Monica on March 11, 2010 at 11:17 PM PST #

Thanks! Looking good.... there are more solution like this... anything new you know ?

Posted by סקס on March 15, 2010 at 06:51 PM PDT #

ma funziona con firefox 3.6.3

Posted by skull on May 29, 2010 at 03:42 AM PDT #

Please update this plugin for Firefox 3.6.8. Thanks.

Posted by Gemma on August 18, 2010 at 01:36 AM PDT #


Posted by viva on August 30, 2010 at 06:09 PM PDT #

Please update this plugin for Firefox 3.6.8. Thanks.

Posted by Craig on September 07, 2010 at 09:53 PM PDT #

i tried to use this but it is not compatible with my version of firefox (3.6.8) :(

Posted by lee terry on November 30, 2010 at 05:10 AM PST #

não tem versão atualizada do iphone simulate ai ???

Posted by nuvenus chovendus on January 11, 2011 at 09:24 PM PST #


Posted by fabrizio on February 05, 2011 at 10:44 PM PST #

This is a useful post.please give me the details of installing this feature in firefox.

Thanks & Regards,

Posted by Nithya on March 17, 2011 at 05:08 PM PDT #

Post a Comment:
Comments are closed for this entry.



« June 2016