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 08/30/2009, 03:52 AM   #21 (permalink)
Member
 
trim81's Avatar
 
Join Date: Jul 2005
Location: 626, Los Angeles
Posts: 2,726
Likes Received: 0
Thanks: 381
Thanked 197 Times in 129 Posts
Default

sweeeeeeeeeet thanks,ill be installing it now
trim81 is offline   Reply With Quote
Old 08/30/2009, 04:23 AM   #22 (permalink)
Member
 
Join Date: Jan 2009
Posts: 613
Likes Received: 0
Thanks: 63
Thanked 65 Times in 41 Posts
Default

I don't know if clipcarl's hack works (I'd bet it does) on Netflix, but the trick mentioned by jbg7474 does.

Go to mobile.nytimes.com, or m.forums.precentral.net first. Rotate to landscape and back (Must do), then go to many a mobile site afterword.

The Pre remembers the zoom scale of the former site (both of which are now optimized for the Pre) and renders the subsequent sites beautifully, especially in landscape (Page down gesture!).

Consider this a bump clipcarl, and good work. I too would like to be able to do this without rooting if possible.
galavanter is offline   Reply With Quote
Thanked by RafRol, smartphoney, zenaa96
Old 08/30/2009, 05:48 AM   #23 (permalink)
Member
 
Join Date: Jul 2009
Posts: 111
Likes Received: 0
Thanks: 17
Thanked 21 Times in 9 Posts
Default

loading it onto preware would be awesome.
Clipse is offline   Reply With Quote
Old 08/30/2009, 08:25 AM   #24 (permalink)
Member
 
Join Date: Jul 2009
Posts: 126
Likes Received: 0
Thanks: 7
Thanked 8 Times in 8 Posts
Default

Quote:
Originally Posted by Clipse View Post
loading it onto preware would be awesome.
Or perhaps as a Quick Install Tweak?
Ecode is offline   Reply With Quote
Old 08/30/2009, 08:37 AM   #25 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

Quote:
Originally Posted by Ecode View Post
Or perhaps as a Quick Install Tweak?
I'll be adding this to 2.04 of WeboS Quick Install's Tweaks

@clipcarl, what files does your script install?

Last edited by Jason Robitaille; 08/30/2009 at 10:24 AM.
Jason Robitaille is offline   Reply With Quote
Old 08/30/2009, 09:04 AM   #26 (permalink)
Member
 
Join Date: Jul 2009
Posts: 10
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

great job!
peatrosspools@aol.com is offline   Reply With Quote
Old 08/30/2009, 09:25 AM   #27 (permalink)
Member
 
hofs1's Avatar
 
Join Date: Sep 2004
Posts: 461
Likes Received: 0
Thanks: 20
Thanked 23 Times in 20 Posts
Default

It appears to have messed up mlb.com i only get a plain generic page plus i cant login to mlb premium. it looks the same as when i look at the mobile site in firefox.

I uninstalled.....went to mlb premium login page saved as a bookmark......reinstalled patch...tried bookmark and i get "not supported device message".

all other sies work fine.
__________________
T300 - T600 - T650 - T700p - T755p - T800w - Pre

Last edited by hofs1; 08/30/2009 at 09:57 AM.
hofs1 is offline   Reply With Quote
Old 08/30/2009, 10:43 AM   #28 (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 Jason Robitaille View Post
I'll be adding this to 2.04 of WeboS Quick Install's Tweaks

@clipcarl, what files does your script install?
This is a patch; it modifies /usr/lib/libWebKitLuna.so and backs up the original. You can see what it does by running
/media/internal/change-user-agent extract-only
and looking in /tmp/change-user-agent.install .

If you add this to the quick install thing, please be sure to give me credit for the patch. Thanks!
clipcarl is offline   Reply With Quote
Old 08/30/2009, 03:03 PM   #29 (permalink)
Member
 
Join Date: Jun 2009
Posts: 3
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The installation just isn't working for me. Copied "change-user-agent" to the root drive of my Pre. Put the Pre in developer mode and connect to USB. Select USB mode. Run Novaterm. Type "/media/internal/change-user-agent" and get a "not found" message. There are no files in the "/media/internal" folder for one thing, and even a linux "locate" or "find" doesn't turn up "change-user-agent" anywhere in the sytem. What am I doing wrong?

Edit: Nevermind... I made the mistake of following your instructions. DO NOT put the Pre in USB Drive mode. Everything works find if you just plug in and go.

Last edited by fundrazor; 08/30/2009 at 03:16 PM.
fundrazor is offline   Reply With Quote
Old 08/30/2009, 03:45 PM   #30 (permalink)
Member
 
Join Date: Aug 2009
Posts: 236
Likes Received: 0
Thanks: 42
Thanked 241 Times in 58 Posts
Default

Exactly how similar is the Pre browser compared to the iPhone or Android browsers? I know they're both based on WebKit, but many iPhone or Android mobile sites still don't work very well in the Pre's browser.

For instance, the Google Books Mobile site simply doesn't work even with this user-agent patch applied.
Leathal is offline   Reply With Quote
Old 08/30/2009, 03:52 PM   #31 (permalink)
Member
 
Join Date: Jul 2009
Posts: 299
Likes Received: 0
Thanks: 7
Thanked 25 Times in 22 Posts
Default

I have one big question. Since this is a PATCH, i will have to remove it before i update the pre when an update comes out right?
Dabigappledadon is offline   Reply With Quote
Old 08/30/2009, 03:55 PM   #32 (permalink)
Member
 
Join Date: Jan 2009
Posts: 613
Likes Received: 0
Thanks: 63
Thanked 65 Times in 41 Posts
Default

Quote:
Originally Posted by Jason Robitaille View Post
I'll be adding this to 2.04 of WeboS Quick Install's Tweaks
Great!
galavanter is offline   Reply With Quote
Old 08/30/2009, 04:11 PM   #33 (permalink)
Member
 
Join Date: Jul 2009
Posts: 126
Likes Received: 0
Thanks: 7
Thanked 8 Times in 8 Posts
Default

Quote:
Originally Posted by Jason Robitaille View Post
I'll be adding this to 2.04 of WeboS Quick Install's Tweaks

@clipcarl, what files does your script install?
Awesome!

Quote:
Originally Posted by Dabigappledadon View Post
I have one big question. Since this is a PATCH, i will have to remove it before i update the pre when an update comes out right?
Safe bet would be yes.
Ecode is offline   Reply With Quote
Old 08/30/2009, 05:10 PM   #34 (permalink)
Moderator
 
Gaurav's Avatar
 
Join Date: Nov 2002
Location: All over the place
Posts: 8,301
Likes Received: 7
Thanks: 216
Thanked 267 Times in 146 Posts
Default

Quote:
Originally Posted by galavanter View Post
I don't know if clipcarl's hack works (I'd bet it does) on Netflix, but the trick mentioned by jbg7474 does.

Go to mobile.nytimes.com, or m.forums.precentral.net first. Rotate to landscape and back (Must do), then go to many a mobile site afterword.

The Pre remembers the zoom scale of the former site (both of which are now optimized for the Pre) and renders the subsequent sites beautifully, especially in landscape (Page down gesture!).

Consider this a bump clipcarl, and good work. I too would like to be able to do this without rooting if possible.


WOW!! THAT WORKS PERFECTLY!!
__________________
_________________
aka Gfunkmagic

Current device: Palm Pre
Device graveyard: Palm Vx, Cassiopeia E100, LG Phenom HPC, Palm M515, Treo 300, Treo 600, Treo 650, Treo 700p, Axim X50v, Treo 800w



Please don't PM me about my avatar. For more info go here.

Restore your Pre to factory settings using webos doctor and follow these instructions
Gaurav is offline   Reply With Quote
Old 08/30/2009, 06:57 PM   #35 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
Default

Quote:
Originally Posted by clipcarl View Post
This is a patch; it modifies /usr/lib/libWebKitLuna.so and backs up the original. You can see what it does by running
/media/internal/change-user-agent extract-only
and looking in /tmp/change-user-agent.install .

If you add this to the quick install thing, please be sure to give me credit for the patch. Thanks!
I've been getting "ERROR: This is not Palm webOS 1.1.0" on the emulator. Anything you can do about that? The emulator is my primary way of testing (I have no device myself).
Jason Robitaille is offline   Reply With Quote
Old 08/30/2009, 08:51 PM   #36 (permalink)
Member
 
Join Date: May 2009
Posts: 8
Likes Received: 0
Thanks: 4
Thanked 1 Time in 1 Post
Default

So my first post and my first root attempt. Seems straight forward. Installed SDK from palm, running 64 bit vista. downloaded file, plugged in pre via usb, chose usb device, copied file to pre (just hit copy of the file and "pasted" it to the phone which showed up as a drive on my vista. I put it in the main directory...not in any folder. Unplugged the phone, plugged it back in and chose, "just charge" then launched a command prompt, then typed

cd \program files (x86)\palm\sdk\bin

And it changed to

C:\program files (x86)\palm\sdk\bin\>

then I typed

novacom -t open tty://

and my prompt changed to:

root@castle:/#

then I typed

/media/internal/change-user-agent

and it said applying patch, phone will reboot when done and my phone rebooted normally. I then went to usa today mobile website and my page still looks tiny tiny tiny. I then went to yahoo news...still tiny tiny...then craigslist still tiny. So is this not working on my phone? Oh yes I forgot...I am still in developer mode...haven't turned it off. however I did go through the entire process again and it now says ERROR. Patch already installed. So I think everything is right except it isn't changed anything my browser was doing?

If I am just plain stupid...tell me...I don't mind hearing it. Or if this patch isn't doing anything how can I tell?
JBoever is offline   Reply With Quote
Old 08/30/2009, 08:55 PM   #37 (permalink)
Member
 
Join Date: Aug 2009
Posts: 236
Likes Received: 0
Thanks: 42
Thanked 241 Times in 58 Posts
Default

You can see if it worked by going to whatsmyuseragent dot com from your Pre. If you see something about iPhone in there, then the patch applied correctly.
Leathal is offline   Reply With Quote
Old 08/30/2009, 09:10 PM   #38 (permalink)
Member
 
Join Date: May 2009
Posts: 8
Likes Received: 0
Thanks: 4
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Leathal View Post
You can see if it worked by going to whatsmyuseragent dot com from your Pre. If you see something about iPhone in there, then the patch applied correctly.
Ok, Thanks, Did that. I get this info:

The elements of your user agent are:
mozilla/5.0
webos/1.1
U
en-US
applewebkit/525.27.1
KHTML, like Gecko
version/1.0
Safari/525.27.1 iPhone

So does that mean it is working but I guess it just doesn't work on many pages. As an example...does anyone's work on craigslist or mobile craigslist.

mobile.craigslist dot org
www dot craigstlist dot org
mobile.aol dot com/news
mobile.yahoo dot com/news

None of these work: Just tried each of them. I mean they work but they are super small text...not like my brothers iphone which brings them up perfectly. I like my pre better but this is a real negative of the pre and I thought this fixed it????
JBoever is offline   Reply With Quote
Old 08/30/2009, 09:33 PM   #39 (permalink)
Member
 
kenford's Avatar
 
Join Date: Jan 2005
Location: Washington DC Area
Posts: 35
Likes Received: 0
Thanks: 13
Thanked 2 Times in 1 Post
Default

Great job, clipcarl! Thanks much.
kenford is offline   Reply With Quote
Old 08/30/2009, 10:08 PM   #40 (permalink)
Member
 
jrstinkfish's Avatar
 
Join Date: Jul 2008
Posts: 589
Likes Received: 95
Thanks: 16
Thanked 64 Times in 46 Posts
Default

Works fine, but I've run a weird glitch, maybe someone else who has installed it can try it out and see if it's just me. Walmart.com won't load after I installed the patch -- the Pre gives me an error "Cannot find an application that can load this file." Not a dealbreaker, and it may be unrelated since I haven't tried it in a while before this. But it did load fine last time I tried before this.
jrstinkfish is offline   Reply With Quote
Thanked By: sandrshe
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0