Notices

Tips and Tricks Share tips that can save others time and frustration here !

Reply
 
LinkBack Thread Tools
Old 05-07-06, 02:35 PM   #1 (permalink)
Contributing Reviewer
 
Join Date: Jan 2005
Posts: 4,553
Thanked 1 Time in 1 Post
Make your Pocket PC Opera Browser look like a desktop Web Browser - a new tweak!

I’ve published several articles on modifying the way Pocket PC Web browsers identify themselves to Web servers. (For example, this article explains how this can be done to the WM5 version of Internet Explorer Mobile and this article does the same as far as pre-WM5 versions of Pocket Internet Explorer versions are concerned. I’ve also elaborated on this question, as far as other, alternate Web browsers are concerned, in my other articles – for example, the well-known Web Browser Bible, linked from this all-in-one link collection).

As you can’t do the same in the current, beta2 version of Opera in the GUI/in the configuration files (of which I’ve published several articles; see for example this), upon an AximSite user request I’ve decided to "hack" the current Opera Mobile 8.5 beta2 to enable this functionality.

First, let’s have a look at what User-Agent string Opera currently sends to Web servers. If you have read my article on the latest StowAway keyboard driver, you already know; but, of course, you may want to check it out yourself (for example, with this server-side, freely distributable, free-source program I’ve written for this purpose):

Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; PPC; 480x640) Opera 8.50 [en]

What should you send out instead of this? The following:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

In here, I used bold to denote the differences.

In the following section, I explain how the hack can be done.

Hacking

In order to "hack" Opera to send out the latter string (to identify itself as a desktop browser), you’ll need to do the following:

* transfer the 5.2 Mbytes long opera.dll to your desktop PC
* get a hexa editor; I recommend Geoffrey Prewett's free HexEdit.exe.
* start the latter, passing the former as a parameter
* Look for the first occurrence of Mozilla/4.0 with Find:

Click here for screenshot!


* It’ll be as follows in the WM2003(SE) version:

Click here for screenshot!

and the following in the WM5 version:

Click here for screenshot!


* You’ll need to overwrite the highlighted region so that it becomes the following:

in the WM2003(SE) version:

Click here for screenshot!

and, in the WM5 version:

Click here for screenshot!


* After transferring back the DLL to your PDA (overwriting the former one; make sure you don’t run Opera for this to work), a quick "return the headers" test certainly shows the client already sends out the right headers:

Click here for screenshot!

and, under WM5,

Click here for screenshot!

And, a real test with for example the AximSite forums (which automatically switch to the PDA-optimized view upon sensing a PDA client):

Click here for screenshot!

Yes, it also considers the hacked client a fully-fledged desktop IE6 one!


Tips on Usage – Easy Switching Between the Non-Hacked and the Hacked Version

Please do note that there may be cases when making your Pocket PC Web browsers tell Web server is highly disadvantageous. For example, take the example of most Pocket PC sites. They automatically switch to PDA-optimized page layout when sensing a Pocket PC browser. This will result in greatly reduced transfer and page rendering times and bandwidth usage. Also, some sites will just not work because they use for example fully-fledged JavaScript that most Pocket PC web browsers are just incapable to handle. This was (before the recent changes, of which I’ve also elaborated in my blog) the case with Yahoo Mail (see my article linked from this article on this problem).

Therefore, you may want to have the possibility of easily switching back to the original version – even without the usage of a desktop computer. It’s, actually, very-very easy: as you can have two Opera installations (if you manually copy the files around) on your PDA, you can just rename the original, say, \Program Files\Opera directory to, say, \Program Files\Opera2 directory and just recreate the directory with the same files (except for the different, "hacked" opera.dll file) in another one – for example, Opera, OperaHacked or anything. Then, you’ll only need to create new .lnk file(s) in \Windows\Start Menu\Programs to point to the two different versions. Fortunately, this all is possible because there’re only few files in the home directory of Opera and all the other files are orders of magnitude smaller than opera.dll itself, which means you won’t lose much storage memory by just duplicating the contents of the home directory. This way, it’ll be really easy to switch between the two Opera versions – you’ll only need to click one of the two icons in your Start Menu to be able to choose from the two versions, as in this screenshot:

Click here for screenshot!

If You Are Afraid of Hexa Editing...

...don’t be afraid, I’ve uploaded the modified DLL’s to here (I’ll also contact the Opera folks whether it’s OK with them; will remove the DLL’s when it’s not). The RAR file contains two DLL’s; one for the WM2003(SE) and one for the WM5 version of Opera beta2. You will only need to un-RAR the DLL you need and overwrite your original one with it.

Please note that this tutorial (and the DLL files) should NOT be used with the outdated beta1 version of Opera Mobile - only beta2!
__________________
MS MVP- Mobile Devices.

Last edited by Menneisyys; 05-07-06 at 02:42 PM.
Menneisyys is offline   Reply With Quote
Sponsor Ads
Old 05-07-06, 04:37 PM   #2 (permalink)
Aximsite Elite
 
Rishad's Avatar
Addicted Member
 
Join Date: Aug 2005
Location: Vancouver, BC
Posts: 3,677
Device: iPhone 2G (OS 3.1)
Carrier: City Fido
Thanked 1 Time in 1 Post

Awards Showcase
Aximsite Active Bronze Member Admin Medal Aximsite Contest Winner Top Notch MyPDA Red Cross 
Total Awards: 5

Very cool!

A little off topic, what do you think is the best hex editor for PPC?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

.
.
.
.
.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.




To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Rishad is offline   Reply With Quote
Old 05-07-06, 05:37 PM   #3 (permalink)
ktvyeow
Guest
 
Posts: n/a
Thanks Menneisyys, another great article. Akheron, I use Resco Registry Editor.
  Reply With Quote
Old 05-07-06, 08:03 PM   #4 (permalink)
Aximsite Prospect
 
Join Date: Jan 2006
Posts: 13
Thanked 0 Times in 0 Posts
Thanks a lot
Also can you do this with pie and if so how
I have a x51v by the way incase it matters

Last edited by mls102390; 05-07-06 at 08:11 PM.
mls102390 is offline   Reply With Quote
Old 05-07-06, 09:38 PM   #5 (permalink)
Aximsite Elite
 
Rishad's Avatar
Addicted Member
 
Join Date: Aug 2005
Location: Vancouver, BC
Posts: 3,677
Device: iPhone 2G (OS 3.1)
Carrier: City Fido
Thanked 1 Time in 1 Post

Awards Showcase
Aximsite Active Bronze Member Admin Medal Aximsite Contest Winner Top Notch MyPDA Red Cross 
Total Awards: 5

Originally Posted by ktvyeow
Akheron, I use Resco Registry Editor.
Thanks, but I was asking about hex editor not registry editor.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

.
.
.
.
.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.




To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Rishad is offline   Reply With Quote
Old 05-08-06, 01:40 AM   #6 (permalink)
Contributing Reviewer
 
Join Date: Jan 2005
Posts: 4,553
Thanked 1 Time in 1 Post
Originally Posted by mls102390
Thanks a lot
Also can you do this with pie and if so how
I have a x51v by the way incase it matters
I've linked my two PIE-related articles from the first partagparh - follow those links.
__________________
MS MVP- Mobile Devices.
Menneisyys is offline   Reply With Quote
Old 05-08-06, 01:41 AM   #7 (permalink)
Contributing Reviewer
 
Join Date: Jan 2005
Posts: 4,553
Thanked 1 Time in 1 Post
Originally Posted by akheron
Very cool!

A little off topic, what do you think is the best hex editor for PPC?
The only one I know of is SKHexEd. Haven't tetsed yet - i t can't be bad as it's been written by the S-K people.
__________________
MS MVP- Mobile Devices.
Menneisyys is offline   Reply With Quote
Old 05-08-06, 05:52 AM   #8 (permalink)
Aximsite Elite
 
Rishad's Avatar
Addicted Member
 
Join Date: Aug 2005
Location: Vancouver, BC
Posts: 3,677
Device: iPhone 2G (OS 3.1)
Carrier: City Fido
Thanked 1 Time in 1 Post

Awards Showcase
Aximsite Active Bronze Member Admin Medal Aximsite Contest Winner Top Notch MyPDA Red Cross 
Total Awards: 5

yah theres the one from SK and another free one that I haven't tried myself but looks pretty good. There is also cefilecommander that I think has hex editor built in. Hope I'm not missing any. I just want to make sure I get the best one before putting it on my ax.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

.
.
.
.
.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.




To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Rishad is offline   Reply With Quote
Reply

Tags
browser, desktop, make, opera, pocket, tweak, web

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FlashPlayer 7 for Pocket Opera browser? Danneman Windows Mobile 5 0 05-03-06 05:32 AM
which version of opera browser? twmiller Applications and Utilities 10 04-30-06 10:41 AM
Opera Web Browser Question danieldc Applications and Utilities 6 03-31-06 08:46 AM
Opera Web Browser yilmam X30 / X3 / X3i Forums 12 10-17-04 08:21 PM
Opera web browser for PDA's Mr. Mysterious Applications and Utilities 7 01-29-04 04:54 PM


All times are GMT -5. The time now is 06:46 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC