Scripts for the USER.JS File


Back up prefs.js X number of times, where X is some number...
user_pref("backups.number_of_prefs_copies", 1);

Override the default user-agent string:
user_pref("general.useragent.override", "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1");
user_pref("general.useragent.override", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016");
user_pref("general.useragent.override", "Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2b) Gecko/20021016");

Privacy Patch
user_pref("capability.policy.default.Window.onunload", "noAccess");
user_pref("network.http.sendRefererHeader", 1);
NOTE:   not needed for Netscape 7.02

Deactivate popup windows:
This entry disables 99% of all javscript popups:
user_pref("dom.disable_open_during_load", true);

Turn that annoying autocomplete popup REALLY off:
user_pref("browser.urlbar.autocomplete.enabled", false);
user_pref("browser.urlbar.showPopup", false);
user_pref("browser.urlbar.showSearch", false);
NOTE:   not needed for Netscape 7.02

Prevent web pages from opening new windows - this applies to all websites:
user_pref("capability.policy.default.Window.open", "noAccess");

Prevent specific websites only:
user_pref("capability.policy.popupsites.sites", "http://www.website1.com http://www.website2.com");
user_pref("capability.policy.popupsites.Window.open","noAccess");

Disable javascript for websites:
user_pref("capability.policy.nojs.sites", "http://site1.com http://site2.com");
user_pref("capability.policy.nojs.javascript.enabled", "noAccess");

Allow this page to bypass the window.open restriction by setting the Window.open policy back to its default value, sameOrigin:

user_pref("capability.policy.policynames", "trustable");
user_pref("capability.policy.trustable.sites", "http://www.usefulsite.net");
user_pref("capability.policy.trustable.Window.open", "sameOrigin");

The name of the policy can be anything you want; trustable was used in this example.

Prevent websites from resizing the windows:
user_pref("capability.policy.default.Window.innerWidth.set", "noAccess");
user_pref("capability.policy.default.Window.innerHeight.set", "noAccess");
user_pref("capability.policy.default.Window.outerWidth.set", "noAccess");
user_pref("capability.policy.default.Window.outerHeight.set", "noAccess");
user_pref("capability.policy.default.Window.sizeToContent", "noAccess");
user_pref("capability.policy.default.Window.resizeTo", "noAccess");
user_pref("capability.policy.default.Window.resizeBy", "noAccess");

Prevent websites from changing the status bar text:
user_pref("capability.policy.default.Window.status", "noAccess");

Disable the JavaScript window.open() method when it is not called as a result of a mouse click:
user_pref("dom.disable_open_click_delay", 1000);

Control Animated Images:
user_pref("image.animation_mode", "value");

Where "value" is either normal, once, or none. The default setting is normal, but once prevents animated images from looping after its first run, while none prevents it from animating at all.

To enable the Imageblocker in Netscape 7:
user_pref("imageblocker.enabled", true);
NOTE:   not needed for Netscape 7.02

Allow the @ sign in your email username:
user_pref("mail.allow_at_sign_in_user_name", true);

How to disable the Advance to next unread message in folder prompt.
user_pref("mailnews.nav_crosses_folders", 0);

Settings:
0 - Always go to the next folder without prompting
1 - Ask before going (default behaviour)
2 - Don't prompt and don't go to the next folder with unread messages

Check all IMAP folders simultaneously:
user_pref("mail.check_all_imap_folders_for_new", true);

This entry changes the URL when you click on the throbber:
user_pref("browser.throbber.url","http://www.google.com");
user_pref("messenger.throbber.url","http://www.google.com");
user_pref("compose.throbber.url","http://www.google.com");
user_pref("addressbook.throbber.url","http://www.google.com");

Download Manager options:
Mozilla comes with a new Download Manager. If you don't like it, you can change back to the old behaviour:
user_pref("browser.downloadmanager.behavior", x);

Change "x" to:
0 = Download Manager (new)
1 = Download Manager (classic)
2 = No Download Manager at all and no progress window

Using the default system email client with Mozilla (Windows and Mac only):
user_pref("network.protocol-handler.external.mailto", true);

This also works for other services:
For ftp:
user_pref("network.protocol-handler.external.ftp", true);

Disable FREE WEBMAIL in Messenger:
user_pref("mailnews.fakeaccount.show", false);
NOTE:   not needed for Netscape 7.02

Disable blinking text:
user_pref("browser.blink_allowed", false);


Locate Java by scanning the Sun JRE installation directory with a minimum version.
Note: Does not scan if security.enable_java is not true
user_pref("plugin.scan.SunJRE", "1.3");

Locate plugins by scanning the Adobe Acrobat installation directory with a minimum version
user_pref("plugin.scan.Acrobat", "5.0");

Locate plugins by scanning the Quicktime installation directory with a minimum version
user_pref("plugin.scan.Quicktime", "5.0");

Locate and scan the Window Media Player installation directory for plugins with a minimum version user_pref("plugin.scan.WindowsMediaPlayer", "7.0");

Controls the scanning of the Navigator 4.x directory for plugins. When pref is missing, the default is to pickup popular plugins such as Flash, Shockwave, Acrobat, and Quicktime. If set to true, ALL plugins will be picked up and if set to false the scan will not happen at all.
user_pref("plugin.scan.4xPluginFolder", false);

Mail & Newsgroups Preferences

How to customize the "Author wrote" line:
user_pref("mailnews.reply_header_authorwrote", "In infinite wisdom %s answered");
Changing the date display ("On ", or leaving it blank completely ""):
user_pref("mailnews.reply_header_ondate", "In the year %s");
Specifying the , separator (default is a comma):
user_pref("mailnews.reply_header_separator", ", ");
Replacing the colon (in "author wrote:"):
user_pref("mailnews.reply_header_colon", ":");

Mozilla defaults "Reply" to Bottom "0", Netscape defaults to Top "1":
0=bottom 1=top 2=select+bottom 3=select+top
user_pref("mailnews.reply_on_top", 0);

Show the user agent of incoming messages:
user_pref("mailnews.headers.showUserAgent", true);

Turn off the history addressbook:
user_pref("mail.collect_email_address", false);

HTML-style quoting for quoting plain text (during HTML replies):
user_pref("mail.quoteasblock", true);

Turn off abbreviated Newsgroup titles:
user_pref("mail.server.default.abbreviate",false);

Turn off Toolbar Buttons:
user_pref("mail.toolbars.showbutton.file", false);
user_pref("mail.toolbars.showbutton.next", false);
user_pref("mail.toolbars.showbutton.print", false);
user_pref("mail.toolbars.showbutton.stop", false);

Account Settings: Show Organization Line
user_pref("mailnews.headers.showOrganization", true);


08/05/03


Back to Top

Return to Netscape Solutions