maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] User Agent Tool - change Maemo Browser's user agent (https://talk.maemo.org/showthread.php?t=86714)

marmistrz 2013-09-26 08:45

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by macey (Post 1376874)
What Is this supposed to do?
I understand sed but can't understand what this is supposed to do... Anyway, tried it & facebook still fails....

It'd set the general.useragent.vendor instead of general.useragent.override

Just edits the file

macey 2013-09-26 08:57

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1376875)
Just edits the file
[/FONT][/COLOR]

See prev post, please. sorry......

taixzo 2013-09-26 09:58

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Would it be possible to do this for Harmattan?

peterleinchen 2013-09-26 11:41

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by taixzo (Post 1376894)
Would it be possible to do this for Harmattan?

iirc there is already such possibility, but only with MeeFox.
So I'd like to have this also (in general).

marmistrz 2013-09-26 14:55

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by macey (Post 1376879)
Sere prev post, please. sorry......

Just look at this: http://kb.mozillazine.org/User.js_file
And try to tune it to your needs. When you find something that works great, let me know, and I'll add it to uat.

macey 2013-09-26 16:56

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1376965)
just look at this: http://kb.mozillazine.org/user.js_file
and try to tune it to your needs. When you find something that works great, let me know, and i'll add it to uat.

very interesting!

macey 2013-09-26 17:45

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1376965)
Just look at this: http://kb.mozillazine.org/User.js_file
And try to tune it to your needs. When you find something that works great, let me know, and I'll add it to uat.

I have had a play around with this....
As stated earlier, no matter what you enter in general.useragent.vendor, it gets overriden back to Firefox/3.5 Maemo Browser 1.7.48 RX-51 N900 on browser start.
I have created s user.js script, with:-
Code:

user_pref("general.useragent.vendor", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0");
and killed browserui.

about:config
shows general.useragent.vendor unchanged @ Firefox/3.5.....

Changing user.js to:-
Code:

user_pref("general.useragent.override", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0");
Gets implemented as an override ok, leaving vendor as Firefox/3.5....

Back to the drawing board...:

marmistrz 2013-09-26 17:47

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by macey (Post 1377006)
I have had a play around with this....
As stated earlier, no matter what you enter in general.useragent.vendor, it gets overriden back to Firefox/3.5 Maemo Browser 1.7.48 RX-51 N900 on browser start.
I have created s user.js script, with:-
Code:

user_pref("general.useragent.vendor", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0");
and killed browserui.

about:config
shows general.useragent.vendor unchanged @ Firefox/3.5.....

Changing user.js to:-
Code:

user_pref("general.useragent.override", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0");
Gets implemented as an override ok, leaving vendor as Firefox/3.5....

Back to the drawing board...:

grep for vendor in the same directory as user.js

macey 2013-09-26 18:05

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Quote:

Originally Posted by marmistrz (Post 1377007)
grep for vendor in the same directory as user.js

Loads of them, all in the various versions of prefs.js pref-n.js etc...
You are getting up to speed now;);)
Yesterday, I went through ALL of the pref*.js files I could find....
Manually editing all of the vendor entres to my desired value. Only
to see they had changed back miraculously to Firefox/3/5.......
:confused::confused:

marmistrz 2013-12-04 14:05

Re: [Announce] User Agent Tool - change Maemo Browser's user agent
 
Version 1.2.0 is in extras-devel!

The news: you can create your presets as you wish ;)


All times are GMT. The time now is 08:11.

vBulletin® Version 3.8.8