 |
 |
 |
 |
| Suggestions & Feedback Have suggestions, feedback or just plain questions regarding FedoraForum.org? Post them here. (We reserve the right to poke fun at you or just ignore them). |

7th June 2011, 02:58 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Re: Fedora Useragent
Found it at "Extras -> Tools -> UserAgent"
Testpost, to figure out the change
€dit:
Fine its working now, thanks
Gotta know one has to search in Extras for the tools, but else, all is mentioned in previous post by RupertPupkin
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Last edited by sea; 7th June 2011 at 03:03 PM.
|

7th June 2011, 03:56 PM
|
|
Registered User
|
|
Join Date: Sep 2004
Location: Denver, Colorado
Posts: 547

|
|
|
Re: Fedora Useragent
Great! Just checking to see if it works.
|

7th June 2011, 04:00 PM
|
|
Registered User
|
|
Join Date: Nov 2009
Posts: 75

|
|
|
Re: Fedora Useragent
Cool - there are at least two different FF user agent extensions now.
Test: I'm an msn bot.
__________________
Fedora.local 2.6.40.3-0.fc15.x86_64 | Intel® Pentium® Dual Core Processor | 64-bit, 4 GB RAM || 3.0-chakra | AMD Phenom(tm) II X4 840T Processor × 4 | 64-bit, 5.6 GB RAM
Last edited by NCCarlos; 7th June 2011 at 07:48 PM.
Reason: test
|

7th June 2011, 06:48 PM
|
 |
Techno-Womble
|
|
Join Date: Aug 2006
Location: Gloucestershire, U.K.
Posts: 1,792

|
|
|
Re: Fedora Useragent
Testing, to see if it takes.
Hmmm?
Lost my icons altogether!
Third time lucky!
__________________
To get the right answer, one must first ask the right question!
Desktop #1 F18
Desktop #2 Mint 14
Laptop: Macpup 529
Netbook: Debian ARM
Last edited by John the train; 7th June 2011 at 06:51 PM.
Reason: Still testing!
|

13th June 2011, 02:04 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Location: Nairobi Kenya
Posts: 540

|
|
|
fedoraforum.org not recognizing Fedora?
Out of curiosity, there are the tiny icons that display to the right of user posts on this forum that shows what operating system and browser they used to post. Since F15 (and a consequent upgrade to FF4) I notice that the forums just recognize that I am using a generic Linux distribution.
Is this a Linux or Firefox "problem"?
|

13th June 2011, 02:08 PM
|
 |
Retired Administrator
|
|
Join Date: Oct 2006
Posts: 21,509

|
|
|
Re: fedoraforum.org not recognizing Fedora?
Quote:
Originally Posted by Jamwa
Out of curiosity, there are the tiny icons that display to the right of user posts on this forum that shows what operating system and browser they used to post. Since F15 (and a consequent upgrade to FF4) I notice that the forums just recognize that I am using a generic Linux distribution.
Is this a Linux or Firefox "problem"?
|
Thread merged.
|

13th June 2011, 02:23 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Location: Nairobi Kenya
Posts: 540

|
|
|
Re: Fedora Useragent
Thanks leigh123linux. Allow me to post this thread to see if the fix prescribed here works
---------- Post added at 05:23 AM ---------- Previous post was at 05:22 AM ----------
Oh yes! Now thats what am talking about :-)
|

13th June 2011, 02:40 PM
|
 |
Registered User
|
|
Join Date: May 2011
Location: The Netherlands
Age: 54
Posts: 33

|
|
|
Re: Fedora Useragent
I am also posting a test message to see if I have done it the right way.
Maybe now?
Last edited by Hawk999; 13th June 2011 at 03:03 PM.
|

13th June 2011, 02:42 PM
|
 |
Retired Administrator
|
|
Join Date: Oct 2006
Posts: 21,509

|
|
|
Re: Fedora Useragent
I have to edit prefs.js to get the forum to detect redhat.
Code:
[leigh@main_pc ~]$ cat ~/.mozilla/firefox/up3sxj0v.firefox4/prefs.js |grep useragent
user_pref("general.useragent.override", "Mozilla/5.0 (X11; Linux x86_64; rv:2.0) Gecko/20100101 RedHat/4.0.1-2.el6.x86_64 Firefox/4.0.1 ");
[leigh@main_pc ~]$
Fedora 14 looks like this
Code:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.6.17-1.fc14 Firefox/3.6
F15
Code:
Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
add this to prefs.js
Code:
user_pref("general.useragent.override", "Mozilla/5.0 (X11; Linux x86_64; rv:2.0) Gecko/20100101 Fedora/firefox-4.0.1-2.fc15.x86_64 Firefox/4.0.1 ");
|

14th June 2011, 10:43 AM
|
|
Registered User
|
|
Join Date: Jan 2008
Location: Nairobi Kenya
Posts: 540

|
|
|
Re: Fedora Useragent
On rebooting or restarting Firefox, the addon seems to go back to the default generic Linux.
leigh123linux, I have tried your method but it seems not to pick. Into which file does one add the override? This is what I have:
Code:
sh-4.2$ locate -i prefs.js | grep -i firefox
~/.mozilla/firefox/60eyd7zb.default/Invalidprefs.js
~/.mozilla/firefox/60eyd7zb.default/prefs.js
~/.mozilla/firefox/60eyd7zb.default/extensions/{152455DE-7B40-4bcf-B5B4-C68A1BE85A91}/defaults/preferences/prefs.js
~/.mozilla/firefox/dkmrmwwn.default/prefs.js
~/.mozilla/firefox/dkmrmwwn.default/extensions/{152455DE-7B40-4bcf-B5B4-C68A1BE85A91}/defaults/preferences/prefs.js
~/.mozilla/firefox/dkmrmwwn.default/weave/toFetch/prefs.json
sh-4.2$ for i in `locate -i prefs.js | grep -i firefox`; do cat "$i" | grep -i useragent; done
user_pref("useragentswitcher.import.overwrite", false);
user_pref("useragentswitcher.menu.hide", false);
user_pref("useragentswitcher.version", "0.73");
sh-4.2$
Last edited by Jamwa; 14th June 2011 at 10:46 AM.
|

14th June 2011, 10:45 AM
|
|
Guest
|
|
Posts: n/a

|
|
|
Re: Fedora Useragent
does it really matter if thge icon is showing correct what Distro your using or not? cause i havent bothered changing it
|

14th June 2011, 11:02 AM
|
 |
Retired Administrator
|
|
Join Date: Oct 2006
Posts: 21,509

|
|
|
Re: Fedora Useragent
Quote:
Originally Posted by Jamwa
On rebooting or restarting Firefox, the addon seems to go back to the default generic Linux.
leigh123linux, I have tried your method but it seems not to pick. Into which file does one add the override? This is what I have:
Code:
sh-4.2$ locate -i prefs.js | grep -i firefox
~/.mozilla/firefox/60eyd7zb.default/Invalidprefs.js
~/.mozilla/firefox/60eyd7zb.default/prefs.js
~/.mozilla/firefox/60eyd7zb.default/extensions/{152455DE-7B40-4bcf-B5B4-C68A1BE85A91}/defaults/preferences/prefs.js
~/.mozilla/firefox/dkmrmwwn.default/prefs.js
~/.mozilla/firefox/dkmrmwwn.default/extensions/{152455DE-7B40-4bcf-B5B4-C68A1BE85A91}/defaults/preferences/prefs.js
~/.mozilla/firefox/dkmrmwwn.default/weave/toFetch/prefs.json
sh-4.2$ for i in `locate -i prefs.js | grep -i firefox`; do cat "$i" | grep -i useragent; done
user_pref("useragentswitcher.import.overwrite", false);
user_pref("useragentswitcher.menu.hide", false);
user_pref("useragentswitcher.version", "0.73");
sh-4.2$
|
You need to add the whole line as it doesn't exist in the default prefs.js file (you also need to shutdown firefox before editing).
I think this is the right file ~/.mozilla/firefox/60eyd7zb.default/prefs.js
|

14th June 2011, 11:43 AM
|
|
Registered User
|
|
Join Date: Apr 2011
Location: Upminster, Essex, UK
Posts: 169

|
|
Re: Fedora Useragent
Quote:
Originally Posted by leigh123linux
You need to add the whole line as it doesn't exist in the default prefs.js file (you also need to shutdown firefox before editing).
I think this is the right file ~/.mozilla/firefox/60eyd7zb.default/prefs.js
|
You can also do it from a FF "about :config" window - just type it in the address bar and ignore the silly warning
Add "general.useragent.override" as a key and your tweaked useragent string as the value - the key value is blank by default so you need an "authentic" ua to tweak as a starting point
|

14th June 2011, 12:41 PM
|
|
Registered User
|
|
Join Date: Jan 2008
Location: Nairobi Kenya
Posts: 540

|
|
|
Re: Fedora Useragent
leigh123linux, the file is .mozilla/firefox/dkmrmwwn.default/prefs.js The one in 60eyd7zb.default failed so I tried the method posted by satanselbow which now gives me this:
Code:
sh-4.2$ cat ~/.mozilla/firefox/dkmrmwwn.default/prefs.js | grep -i useragent
user_pref("general.useragent.override", "Mozilla/5.0 (X11; Linux x86_64; rv:2.0) Gecko/20100101 Fedora/firefox-4.0.1-2.fc15.x86_64 Firefox/4.0.1");
user_pref("useragentswitcher.import.overwrite", false);
user_pref("useragentswitcher.menu.hide", false);
user_pref("useragentswitcher.version", "0.73");
sh-4.2$
I wonder whether this will be reset when I reboot...
---------- Post added at 03:41 AM ---------- Previous post was at 03:31 AM ----------
Seems to be set in stone. Yaay!
Last edited by Jamwa; 14th June 2011 at 12:35 PM.
|

14th June 2011, 01:19 PM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,612

|
|
|
Re: Fedora Useragent
Quote:
Originally Posted by Jamwa
leigh123linux, the file is .mozilla/firefox/dkmrmwwn.default/prefs.js The one in 60eyd7zb.default failed so I tried the method posted by satanselbow which now gives me this:
|
part of the path name is a randomly generated string and will be different on each system.
~/.mozilla/firefox/ dkmrmwwn.default/prefs.js
The highlighted portion above is the random string. (although I do have a couple of systems that use the same string since I copied my .mozilla folder over when I first installed firefox to restore settings and have them set up the same.)
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Chromium Useragent
|
COKEDUDE |
Suggestions & Feedback |
11 |
10th June 2012 05:20 PM |
Current GMT-time: 08:36 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|