View Single Post
Posts: 42 | Thanked: 20 times | Joined on Feb 2010 @ Perth, WA
#951
Originally Posted by NightShift79 View Post
you're absolutly right.
It's the best browser for the n900 except the thing it links me to all those mobile sites.

could it be possible to patch the available version to use another user agent?
Maybe hexedit some file...

Originally Posted by mesho123
hello all ...

i have small problem ... when using Opera Mobile 11 and opining site such as : Facebook.com it's appears in mobile view mod(m.facebook.com) . but it's shouldn't ...

note : i'm sure about setting about mobile view mod it's off in my setting .
Came across these posts whilst looking for a way to get flash going in Opera on my N900. Anyone know?

Anyway, for the facebook mobile redirection, and other mobile redirections ... well I have one solution. There is the capability to change the user agent in the opera:config page, however the "Mobi" and "Maemo" strings remain, which is all facebook seems to need to send you to m.facebook.com/

But NightShift is right, a bit of hex editing can work around this.
Go to /opt/opera/bin and make a copy of the opera binary in case you mess it up. Then use a program like hexedit (available on N900) to edit the binary. Search for Mobi and Maemo and replace them with something or blank them out. I replaced "Mobi" with "Arse" and "Maemo" with all spaces. Then try it out.

If the hex editor seems like a hassle then drop to an xterm on the phone and run the following commands -

Code:
sudo gainroot
apt-get install rdiff
mv /opt/opera/bin/opera /opt/opera/bin/opera.orig
rdiff patch /opt/opera/bin/opera.orig opera.rpatch /opt/opera/bin/opera
chmod 755 /opt/opera/bin/opera
Where opera.rpatch is the file in the zip I attached to this post, then you too will have "Arse" in your user agent and facebook will allow you to get to the normal site

To get rdiff you'll need extras-devel enabled.
Attached Files
File Type: zip opera.rpatch.zip (1.1 KB, 157 views)

Last edited by david.hicks; 2011-10-02 at 18:10. Reason: fix opera paths
 

The Following 3 Users Say Thank You to david.hicks For This Useful Post: