1. Home
  2. Computing & Technology
  3. Email

Creating, Editing and Using User.js in Netscape or Mozilla

By , About.com Guide

Using the configuration dialog in Netscape or Mozilla, you can tweak a lot of settings. They are written to a file called prefs.js, which is found in your profile's root directory. But while the configuration dialog is certainly comprehensive, it is not complete.

There are some hidden Netscape preferences. You can edit "prefs.js" to change these settings, but that's usually not a good idea.

Netscape or Mozilla constantly write to this file (possibly overwriting your customizations of hidden settings), and they delete all settings that do not differ from the default value.

If you use Mozilla or Netscape 6 and later, it's much better to

  • set your hidden preferences in a file called "user.js", also found in your profile's root directory.

If it does not exist, create it, and if you don't know your profile's root directory, search your disk for "prefs.js". Make sure user.js is in the same directory.

All settings in "user.js" take precedence over those found in "prefs.js", and Netscape or Mozilla cannot write to the "user.js" file, so it's save to edit it even while Netscape is running.

The format is the same for user.js and prefs.js. For an example of what settings in your Netscape user.js should look like, just take a look at prefs.js.

If you don't know what settings are available, type "about:config" in your Netscape or Mozilla address bar.

Note: in Mozilla 1.3 or later, you can tweak settings directly and comfortably in the "about:config" page. Double-click any entry to edit its value.

Explore Email
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Email
  4. Email Programs A-Z
  5. Mozilla
  6. Mozilla Tips
  7. Creating, Editing and Using User.js in Netscape or Mozilla - About Email>

©2009 About.com, a part of The New York Times Company.

All rights reserved.