Active Topics

 


Reply
Thread Tools
Posts: 542 | Thanked: 117 times | Joined on Sep 2008 @ 52 N, 6 E
#1
I installed successfully Firefox, but some sites (Facebook) show mobile sites.
How can I change the User agent ?

Adding general.useragent.override is not possible.

Any ideas on this ?
__________________
Nokia N810 FW version 5.2008.43-7
iPad 2 (iOS 4.3.2) Macbook Pro (10.6.6)
Nokia 5800 phone FW 62.0.0125
 
Posts: 542 | Thanked: 117 times | Joined on Sep 2008 @ 52 N, 6 E
#2
UPDATE:

I've got it:

/home/user/.mozilla/fennec/xxxxxxx.default/prefs.js

where xxxxxxx stands for a random base64 string

add a line

user_pref("general.useragent.override", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14");
or any other user agent you want (here the Firefox for Linux as example).
Restart Firefox and voilą !
 

The Following 8 Users Say Thank You to skatebiker For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Mar 2011
#3
Hi! How to do something similar on N900?
Thanks!
 
Posts: 313 | Thanked: 247 times | Joined on Jan 2010 @ USA
#4
Originally Posted by TheIllTemperedSampo View Post
Hi! How to do something similar on N900?
Thanks!
same as above or open about:config in firefox and then create a new key of type string - "general.useragent.override"

value can be be whatever user agent you like e.g., desktop firefox uses:

Mozilla/5.0 (X11; Linux i686; rv:2.0b11) Gecko/20100101 Firefox/4.0b11
 
Posts: 5 | Thanked: 0 times | Joined on Mar 2011
#5
That worked!! Thanks a lot
 
Posts: 26 | Thanked: 7 times | Joined on Apr 2010 @ Philly
#6
There is also an mobile addon called Phony which u can use to switch useragent on the fly.

https://addons.mozilla.org/en-US/mobile/addon/phony/
 
hordeman's Avatar
Posts: 698 | Thanked: 129 times | Joined on Oct 2007 @ CA
#7
i use phony, but it doesm't always work. will try the prefs change.
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:43.