Thomas
Thomas

Reputation: 21591

How to make your browser pretend it's a mobile phone?

I would really like to check out the source code of some website. They have a mobile detection script of some sort I guess, when you visit said website it redirects you to a mobile version (nope, entering the URL that they redirect me to in my browser doesn't work).

How can I pretend my computer is an iPhone or HTC or whatever?

Upvotes: 2

Views: 22933

Answers (4)

Matt Keen
Matt Keen

Reputation: 409

The link in the accepted answer no longer exists. The recommended alternative currently:

https://addons.mozilla.org/en-GB/firefox/addon/user-agent-string-switcher/

Upvotes: 0

Larry Kosis
Larry Kosis

Reputation: 9

You may also like to try and OPEN the page in TEXT pad

Here is a simple version I did up for a client

http://www.baccus.net.au/m/index.php

NOTE that it strips the PHP and just leaves the HTML component

You can then SAVE AS html page and see what the page looks like.

You may need to do a BASE HREF to keep the full path and there are often problems with many CMS systems, but this will get you over the line quickly.

Hope this helps

Upvotes: 1

Sourav
Sourav

Reputation: 17530

if you are using PHP try this $_SERVER['HTTP_USER_AGENT'] you get phone company + model + browser info or os info !

Upvotes: 0

Vinoth
Vinoth

Reputation: 5785

Install this add-on for firefox which will let you change the user-agent string.

Upvotes: 6

Related Questions