useragent on Seamonkey browser for Slackware logo on LQ
I've searched and only found matching but obsolete and closed threads.
this topic is solved (will mark it so ASAP) this thread can also be closed as well. It's only merely for reference. HOWTO change the reported browser agent to reflect Slackware GNU/Linux. Convenient here on LQ and on distrowatch :) tested on Seamonkey 2.40 and Firefox v45.0 go to here first: online user agent checker copy and paste Your own current user agent string, have it handy (gvim comes to mind) navigate to Code:
about:config Code:
useragent right click and select new->string input: Code:
general.useragent.override mine was: Code:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 then edit it to something like this: Code:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 Slackware64/14.2 Having the appropriate correct user agent and a updated browser is a security measure. Having an wrong user agent can lead to security issues, bot positive and negative. You have been warned. Enjoy Slackware logo on our posts :) |
Sweet, I was wondering how that Slackware logo got there :hattip:
|
You could also use an addon like Custom UserAgent String to set the user-agent on a per-site basis.
|
Okay, all go edit useragent now and go hit distrowatch.com :^)
|
I just installed the user agent switcher firefox extension to add the Slackware part (because I wasn't sure what the default useragent was meant to be :) ). I am wondering what will happen when firefox is updated though? I guess I would need to change the user agent manually after each firefox upgrade.
|
Quote:
|
Or, "roll Your own" as we Slackers do ;)
|
Quote:
Quote:
|
I see, then we need dial Slackware into our speed dial plugin?
O.o |
I frequently visit this thread lately
;) |
There is another way to skin this cat.
Both Firefox and SeaMonkey recognize and will use a file, user.js, in .mozilla/firefox/*.default directory for Firefox and .mozilla/seamonkey/*.default directory for SeaMonkey. For Firefox ESR 45.4.0 (the stable version in Slackware) user.js looks like this: Code:
cat user.js The same file for SeaMonkey looks like this: Code:
cat user.js I would be nice if Slackware embedded the string in the package, but that would violate the unfooled-areound-with rule (like "branding") but that ain't gonna happen methinks. This is the easiest way I've found to get the logo to appear in LQ. Hope this helps some. |
Quote:
Code:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Interesting thing would be to extract this string from said browser? :scratch:
therefrom it would be next to trivial to forge the new one accordingly |
Thanks for the instructions.
|
Quote:
Code:
useragent=$(ls /var/log/packages/|grep -o "mozilla-firefox-[[:digit:]]*") |
All times are GMT -5. The time now is 06:31 AM. |