webOS Nation Forums >  Homebrew >  webOS patches > iPhone User Agent Spoof - How to make all mobile websites display perfectly
iPhone User Agent Spoof - How to make all mobile websites display perfectly

  Reply
Like Tree7Likes

 
LinkBack Thread Tools Display Modes
Old 12/14/2009, 03:53 PM   #421 (permalink)
Member
 
Join Date: Jun 2009
Posts: 46
Likes Received: 0
Thanks: 1
Thanked 8 Times in 4 Posts
Default

the negative side effect of switching the user agent is that web developers will be encouraged to code only for IPHONES
for most sites you could just modify your url
for www.google.com
m.google.com
mobile.google.com
iphone.google.com
wap.google.com
www.google.com/mobile
www.google.com/iphone
www.google.com/wap

cool example: http://www.starrynight.com/widget/iphone
no user agent required...

Last edited by larryflynt2k; 12/14/2009 at 04:03 PM. Reason: tried to remove auto formatting... for links
larryflynt2k is offline   Reply With Quote
Old 12/14/2009, 08:19 PM   #422 (permalink)
Member
 
Join Date: Feb 2008
Posts: 48
Likes Received: 0
Thanks: 27
Thanked 13 Times in 7 Posts
Default

Quote:
Originally Posted by d.moss View Post
can this be done through the terminal app on the pre?
Yes, once you've put the file on the phone.
stflush is offline   Reply With Quote
Old 12/14/2009, 09:27 PM   #423 (permalink)
Member
 
hofs1's Avatar
 
Join Date: Sep 2004
Posts: 461
Likes Received: 0
Thanks: 20
Thanked 23 Times in 20 Posts
Default

Quote:
Originally Posted by jakelaw View Post
I found this patch posted on a thread on the Sprint Family Locator. I was hoping it would help fix the locator not working since the last OS update. No luck, but other sites work great!
I was the guy who posted over at sprint locator...i thought the problem was u would get 3 tiny thumbnails when u tried to locate another phone using the pre's browser and they didnt zoom properly.


I getthe larger thumbnail and 2 smaller ones and if i double tap on any it fills the screen nicely.

Maybe i misunderstood what the issue was.

I attached what my screen looks like using the patch.....of course ive had it patched so long i dont remeber using sfl without it.
Attached Images
File Type: jpg browser_2009-14-12_221720.JPG (19.2 KB, 61 views) Email Attachment
__________________
T300 - T600 - T650 - T700p - T755p - T800w - Pre
hofs1 is offline   Reply With Quote
Old 12/14/2009, 09:30 PM   #424 (permalink)
Member
 
hofs1's Avatar
 
Join Date: Sep 2004
Posts: 461
Likes Received: 0
Thanks: 20
Thanked 23 Times in 20 Posts
Default

Quote:
Originally Posted by larryflynt2k View Post
the negative side effect of switching the user agent is that web developers will be encouraged to code only for IPHONES
If u look back towards the beginning of this patch You can see that there is plenty of reference to webos in the user agent. so anyone searching browser hits will see webos as well as iphone.
__________________
T300 - T600 - T650 - T700p - T755p - T800w - Pre
hofs1 is offline   Reply With Quote
Old 12/15/2009, 03:03 PM   #425 (permalink)
Member
 
Join Date: Jan 2005
Location: Bay Area, CA
Posts: 950
Likes Received: 4
Thanks: 89
Thanked 492 Times in 94 Posts
Default

Quote:
Originally Posted by larryflynt2k View Post
the negative side effect of switching the user agent is that web developers will be encouraged to code only for IPHONES

...
No, not really. Web sites use two different methods to determine the user's browser. When you actually hit the web site and it sends you a page it is doing a simple and fast string search on the fly to determine your browser. In this case, usually the web site is simply looking for the substring "iPhone" in the user agent string. However, when web sites analyze their traffic to determine what browsers users are using they use much more sophisticated log analyzers that would see this unique user agent string and easily know that it's not an iPhone. After all, this user agent string still prominently contains the substrings "Pre" and "webOS."

Also, this is the way it's always been done throughout the history of web browsers and the World Wide Web. Heck, even today Firefox, Safari, Internet Explorer, webOS, iPhone and nearly every other web browser you could care to name still have the substring "Mozilla" in their user agent strings to show web sites they are compatible with the ancient Netscape web browser. If you don't think the way this is done is correct then what you really need to do is invent a time machine and change the last 15 years of history!

Hopefully this response will put this issue to rest once and for all.
clipcarl is offline   Reply With Quote
Old 12/15/2009, 07:39 PM   #426 (permalink)
Member
 
Join Date: Oct 2009
Posts: 3
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

just a note:
/sbin/shutdown -r now

will work more reliably than 'reboot'
xaiki is offline   Reply With Quote
Old 12/15/2009, 08:22 PM   #427 (permalink)
Member
 
Join Date: Jan 2005
Location: Bay Area, CA
Posts: 950
Likes Received: 4
Thanks: 89
Thanked 492 Times in 94 Posts
Default

Quote:
Originally Posted by xaiki View Post
just a note:
/sbin/shutdown -r now

will work more reliably than 'reboot'
In what case does /sbin/reboot not work?
clipcarl is offline   Reply With Quote
Old 12/16/2009, 11:19 AM   #428 (permalink)
Member
 
Join Date: Nov 2003
Posts: 334
Likes Received: 0
Thanks: 20
Thanked 22 Times in 9 Posts
Default

Caused a boot hangup for me as it has for others (stuck on palm screen). I can still connect using WOSQI, but I never get into Luna. Tried manually stopping and starting it from the command line in WOSQI, but to no avail. Repair utility gives me error 5 when I agree to replace a file.
dirtygreek is offline   Reply With Quote
Old 12/16/2009, 12:37 PM   #429 (permalink)
Member
 
cheburashka's Avatar
 
Join Date: Jul 2009
Posts: 124
Likes Received: 6
Thanks: 11
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by DefinedByClass13 View Post
Weird, this is still not working for me. I've tried with Terminal and WOSQI. All I get is "folder not found."
i had same exact problem so what i did was - when in USB mode, i put the change-user-agent file into any SUBfolder (i used DCIM... random choice). then disconnected and used INTERNALZ to move the file from /media/internal/DCIM to /media/internal/ and ran the command in the phone's terminal app. worked beautifully!

i hope this will help :-)
cheburashka is offline   Reply With Quote
Old 12/16/2009, 01:14 PM   #430 (permalink)
Member
 
Join Date: Sep 2009
Posts: 94
Likes Received: 0
Thanks: 23
Thanked 3 Times in 3 Posts
Default

Any chance this lands on Preware?
BozackJenkins is offline   Reply With Quote
Old 12/16/2009, 01:19 PM   #431 (permalink)
Member
 
cheburashka's Avatar
 
Join Date: Jul 2009
Posts: 124
Likes Received: 6
Thanks: 11
Thanked 2 Times in 2 Posts
Question

i noticed that when the 'spoof' is applied i am unable to download anything: apps from catalog, utube videos, streaming/downloading audio from sites...

when uninstall the spoof everything works nicely again. i've done the install/uninstall a couple of times so im 100% confident its caused by the change-user-agent patch.

any1 else having this issue?

thanx
cheburashka is offline   Reply With Quote
Old 12/16/2009, 04:06 PM   #432 (permalink)
Member
 
Join Date: Mar 2009
Location: MD
Posts: 75
Likes Received: 0
Thanks: 30
Thanked 13 Times in 10 Posts
Default

Not sure if this was mentioned, but the iPhone spoof is not 100%. For example, going to Zinio Labs | iPhone should allow you to view all the magazines on the site free, if you are using an iPhone. Spoofing the user agent on Safari works with this site, but the spoof for WebOS does not work. Is there any reason why this might be?
jedwardmiller is offline   Reply With Quote
Old 12/16/2009, 08:48 PM   #433 (permalink)
Member
 
Join Date: Jan 2005
Location: Bay Area, CA
Posts: 950
Likes Received: 4
Thanks: 89
Thanked 492 Times in 94 Posts
Default

Quote:
Originally Posted by jedwardmiller View Post
Not sure if this was mentioned, but the iPhone spoof is not 100%. For example, going to Zinio Labs | iPhone should allow you to view all the magazines on the site free, if you are using an iPhone. Spoofing the user agent on Safari works with this site, but the spoof for WebOS does not work. Is there any reason why this might be?
If I make the Pre's user agent closer to that of the iPhone in order to make sites like this one work it breaks Google Maps on the Pre. This version works on almost every site but keeps Google Maps working.
clipcarl is offline   Reply With Quote
Old 12/16/2009, 10:11 PM   #434 (permalink)
Member
 
Join Date: Mar 2009
Location: MD
Posts: 75
Likes Received: 0
Thanks: 30
Thanked 13 Times in 10 Posts
Default

Quote:
Originally Posted by clipcarl View Post
If I make the Pre's user agent closer to that of the iPhone in order to make sites like this one work it breaks Google Maps on the Pre. This version works on almost every site but keeps Google Maps working.
Is there a reason why this does that? Is it an issue with the Pre itself or limitations with the coding?
jedwardmiller is offline   Reply With Quote
Old 12/17/2009, 06:20 AM   #435 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
Default

clipcarl, I notice when I go to m.radioreference.com with the patch applied I get an error trying to stream the police scanner file is this happening because of the same reason you reference above? When I unapply the patch it streams but it just takes a long time to stream, with the patch applied I get the unable to stream immediately message. Great patch if there is nothing that can be done that is fine, I use the patch way more than listen to police scanners just thought you might want to know.
mamouton is offline   Reply With Quote
Old 12/20/2009, 12:56 PM   #436 (permalink)
Member
 
glenada's Avatar
 
Join Date: Jan 2004
Location: New York City
Posts: 777
Likes Received: 0
Thanks: 8
Thanked 10 Times in 8 Posts
Default

Is this installed in Preware for download?
__________________
Current Phone(s): HTC Inspire "4G" & Pre 2
glenada is offline   Reply With Quote
Old 12/29/2009, 10:23 AM   #437 (permalink)
Member
 
Join Date: Jul 2009
Posts: 323
Likes Received: 9
Thanks: 42
Thanked 81 Times in 44 Posts
Default

Just got around to looking at the new patch ClipCarl... excellent work again and, as usual, I learn a lot by reading your code. Makes me miss the days when I used to work on Unix all the time.

Just installed the patch on 1.3.5 and it works great. Thanks again for all your hard work!
ALuckyGuy is offline   Reply With Quote
Old 12/29/2009, 12:24 PM   #438 (permalink)
Member
 
Join Date: Jun 2006
Posts: 314
Likes Received: 0
Thanks: 14
Thanked 10 Times in 10 Posts
Default

Quote:
Originally Posted by wtgreen View Post
Just got around to looking at the new patch ClipCarl... excellent work again and, as usual, I learn a lot by reading your code. Makes me miss the days when I used to work on Unix all the time.

Just installed the patch on 1.3.5 and it works great. Thanks again for all your hard work!
Is this the patch in the first post or is there another for 1.3.5?
todivefor is offline   Reply With Quote
Old 12/30/2009, 05:58 AM   #439 (permalink)
Member
 
Join Date: Jan 2005
Location: Bay Area, CA
Posts: 950
Likes Received: 4
Thanks: 89
Thanked 492 Times in 94 Posts
Default

Quote:
Originally Posted by todivefor View Post
Is this the patch in the first post or is there another for 1.3.5?
Yes, the universal patch in the first post works on 1.3.5.
clipcarl is offline   Reply With Quote
Old 12/31/2009, 10:48 AM   #440 (permalink)
Member
 
Join Date: Apr 2007
Location: Pennsylvania, USA (GMT-5)
Posts: 412
Likes Received: 0
Thanks: 41
Thanked 55 Times in 36 Posts
Default

Two minor suggestions for the opening page sticky:

1. New users might find it easier to access the Linux command line to run the script by using the dialog box available in WebOS Quick Install. This sidesteps the need to install the dev kit or a SSH program.

2. After copying the install file to /media/internal I think you need to to shift from USB mode to Just Charge. In USB mode, I got a file not found error (or some similar text) when attempting to run the script. Don't think the instructions mention this.
dwhitman is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0