How to change user-agent in Mozilla [was: Bero goes bye bye]

Martin Stricker <[email protected]> Sat, 28 Sep 2002 00:38:52 +0200
Newsgroups gmane.linux.redhat.release.limbo
Organization http://martin-stricker.de/ http://www.surfo.net/ http://www.masterportal24.com/cgi-bin/YaBB.cgi
Message-ID <[email protected]>
John wrote:

> > Are you faking the UA in Konq?
> I haven't tried yet, but I did find the feature.
> > Why not do the same with Mozilla (http://uabar.mozdev.org)

UAbar and Java don't like each other - Mozilla will crash if both are
there.

> Because, while I've been through its settings many times, I don't
> recall seeing such a feature.

It's there for some time now, but well-hidden in the documentation. Look
in the JavaScript documentation, where the options in the prefs.js file
are explained. Add this line to the file:

user_pref("general.useragent.override","This will be the user agent!");

This should also work with Netscape 7.
Some Internet Explorer user agents from my logfile:
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
Of course this doesn't help with broken websites or incompatible
JavaScript.

Best regards,
Martin Stricker
-- 
Homepage: http://www.martin-stricker.de/
Linux Migration Project: http://www.linux-migration.org/
Red Hat Linux 7.3 for low memory: http://www.rule-project.org/
Registered Linux user #210635: http://counter.li.org/