Operating Systems > Linux and UNIX

How to: User Agent Hacking

(1/4) > >>

MrX:
hey all, and its the first time Mr X has posted something 'usefull'

i hacked my user agent on mozilla 0.9.3 to say
from BeOS Mr X: j00 |^|4\/3 |233|\| 0\^/n3D !!

and this just makes me cool.
here is how to do it on mozilla:
search for prefs.js open it, and copy all data.
make a new file in that same folder, name it user.js
now just paste all the info into it. enter this line at the end:
user_pref("general.useragent.override", "Mozilla/4.0 (compatible;MSIE 5.5; Windows 98)");
and in the quotes where it contains the user agent string, (starts with Mozilla) change it to say what ever you want, like some hacker lingo, taunts, or that you are george bush or bill gates and i am going to hack up your server. now save and exit the file. restart mozilla, and test with this page:
http://macfaq.org/hacks/useragent.html

it should spit out what ever you wrote in the browser agent setting  ;)

Mr X

Orethrius:
Or you could just browse to about:config, create a new string value for general.useragent.override, and enter "blah-de-blah-blah" in the Value field...
  :cool:

[ January 24, 2005: Message edited by: Midnight Candidate/BOB ]

MrX:
oh man... outsmarted. oh well- i posted this before you!  

Refalm:
Old

http://prefbar.mozdev.org/

KernelPanic:

quote:Originally posted by Refalm / BOB:
Old

http://prefbar.mozdev.org/
--- End quote ---


word.

and, might I add, 'lame' considering what he changed it to...

Navigation

[0] Message Index

[#] Next page

Go to full version