Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Community Lounge > Suggestions & Feedback
FedoraForum Search

Forgot Password? Join Us!

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).

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 7th June 2011, 02:58 PM
sea's Avatar
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602
linuxfedorafirefox
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.
Reply With Quote
  #17  
Old 7th June 2011, 03:56 PM
RHamel Online
Registered User
 
Join Date: Sep 2004
Location: Denver, Colorado
Posts: 547
linuxfedorafirefox
Re: Fedora Useragent

Great! Just checking to see if it works.
Reply With Quote
  #18  
Old 7th June 2011, 04:00 PM
NCCarlos Offline
Registered User
 
Join Date: Nov 2009
Posts: 75
unknownunknown
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
Reply With Quote
  #19  
Old 7th June 2011, 06:48 PM
John the train's Avatar
John the train Online
Techno-Womble
 
Join Date: Aug 2006
Location: Gloucestershire, U.K.
Posts: 1,792
linuxfedorafirefox
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!
Reply With Quote
  #20  
Old 13th June 2011, 02:04 PM
Jamwa Offline
Registered User
 
Join Date: Jan 2008
Location: Nairobi Kenya
Posts: 540
linuxfirefox
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"?
Reply With Quote
  #21  
Old 13th June 2011, 02:08 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxredhatfirefox
Re: fedoraforum.org not recognizing Fedora?

Quote:
Originally Posted by Jamwa View Post
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.
Reply With Quote
  #22  
Old 13th June 2011, 02:23 PM
Jamwa Offline
Registered User
 
Join Date: Jan 2008
Location: Nairobi Kenya
Posts: 540
linuxfedorafirefox
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 :-)
Reply With Quote
  #23  
Old 13th June 2011, 02:40 PM
Hawk999's Avatar
Hawk999 Offline
Registered User
 
Join Date: May 2011
Location: The Netherlands
Age: 54
Posts: 33
linuxfirefox
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.
Reply With Quote
  #24  
Old 13th June 2011, 02:42 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxredhatfirefox
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 ");
Reply With Quote
  #25  
Old 14th June 2011, 10:43 AM
Jamwa Offline
Registered User
 
Join Date: Jan 2008
Location: Nairobi Kenya
Posts: 540
linuxfirefox
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.
Reply With Quote
  #26  
Old 14th June 2011, 10:45 AM
tox
Guest
 
Posts: n/a
linuxchrome
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
Reply With Quote
  #27  
Old 14th June 2011, 11:02 AM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxredhatfirefox
Re: Fedora Useragent

Quote:
Originally Posted by Jamwa View Post
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
Reply With Quote
  #28  
Old 14th June 2011, 11:43 AM
satanselbow Offline
Registered User
 
Join Date: Apr 2011
Location: Upminster, Essex, UK
Posts: 169
linuxfedorafirefox
Wink Re: Fedora Useragent

Quote:
Originally Posted by leigh123linux View Post
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
Reply With Quote
  #29  
Old 14th June 2011, 12:41 PM
Jamwa Offline
Registered User
 
Join Date: Jan 2008
Location: Nairobi Kenya
Posts: 540
linuxfedorafirefox
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.
Reply With Quote
  #30  
Old 14th June 2011, 01:19 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: Fedora Useragent

Quote:
Originally Posted by Jamwa View Post
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.)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

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)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat