Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-16-2009, 07:11 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
Firefox user platform masquerading

system configuration: Ubuntu 8.10 GNU/Linux Firefox 3.0.6 i386

I wanna masquerade my os details from browser scripts and http header.
I did manage to override browser defaults by:

editing about:config
general.useragent.override="//The user agent string"
similarly vendor and extra.firefox values were edited..

but how to masquerade values like appName,platform which can be retrieved
by navigator.platform and navigator.appName etc

I tried putting in values user_pref("general.useragent.platform","Win32")
or pref("general.useragent.platform","Win32")
in ~/mozilla/firefox/<random>/pref.js
and /usr/lib/firefox-3.0.6/default/preferences/ubuntu-useragent.js
and /usr/lib/firefox-3.0.6/default/preferences/firefox.js

etc..but hard luck

Help Please
Old 02-16-2009, 07:48 AM   #2
LQ Newbie
Registered: Mar 2008
Posts: 4

Original Poster
Rep: Reputation: 0
At last I got it.. sorry guys for wasting your time..
I edited .mozilla/firefox/<random>/prefs.js
and inserted the following entries:
user_pref("general.appname.override", "xxxxxxxxxxx");
user_pref("general.appversion.override", "xxxxxxxx");
user_pref("general.platform.override", "xxxxx");
and it worked..on url location like "javascript:navigator.platform"
but I used Firefox "Error Console" to check the entries ..and it always gave the "original" i guess Error Console might be using system calls to get the data..
rather than browser's javascript sandbox..

sop..thanks anyway..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Single User Masquerading akvino Linux - Enterprise 4 07-03-2008 11:17 AM
LXer: Cross platform javascript vulnerability leaves IE, Firefox open LXer Syndicated Linux News 0 06-08-2006 05:21 AM
would Firefox be faster if it wouldn't be cross-platform? exit3219 General 17 03-02-2006 04:05 PM
Firefox - specify platform - Linux not allowed SirAeryn Linux - Software 8 09-16-2005 12:12 AM
Convert Windows2003 ftp server to linux platform with user and password hitesh187 Linux - Networking 1 03-07-2005 07:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration