removing/changing "mozilla/4.0" in IE Useragent

Red Squirrel

No Lifer
May 24, 2003
70,392
13,697
126
www.anyf.ca
Is it possible to modify or remove the mozilla/4.0 string in MSIE 6? I've searched for all sorts of registry hacks, but none to change the entire string, only the parts after. I need to change it as a script on the corporate network uses the navigator.appVersion to get the browser version, but that variable seems to simply look for the first number it finds in the U/A string, which happends to be 4.0, so it reports as IE being 4. This is a script that loads HOD for the right browser. So if it's IE 6, it's suppost to load the HOD for java2, as the other one does not work.

I'm trying to get them to fix the script but I doubt it will happen, so I need to find a workaround at our end. Basically I want to add MSID 6.0 before the mozilla/4.0 part. Then it will be the first number and report correctly.

My take on this is that they should of made the java applet work in all browsers, simpler that way then using user agent checking.
 

dukdukgoos

Golden Member
Dec 1, 1999
1,319
0
76
I think you'd have to change the UA string on every single installed computer. Just getting them to rewrite their script, that's where the problem is...