Pre-Configuring Mozilla

This document describes how to manually configure Mozilla, however all configuration described here can be automated using TWEAK (The Windows Environment and Application Konfigurator)

Introduction

As with most software applications, we are able to change the look and feel and workings of Mozilla, once its installed, to behave better than the way its authors have decided it should behave by default. The look and feel and workings are defined in a set of plain text files, usually these are edited by individuals pulling down menus and clicking on check boxes, without ever being aware of how these actual changes are being recorded by Mozilla. To ease administration when configuring Mozilla for multiple people, these plain text files can be edited by hand, and often only once for everyone, which is far more efficient.

A Mozilla profile is created automatically the first time a user who hasn't run Mozilla before does so. More profiles can be created using the Profile Manager.

Of this set of files, some of them exist as a single file that remains in the Mozilla program directory and is applied to every user, others are copied completely to a directory specific to each user (by default in that user's Windows profile directory), when they first run Mozilla. The collection of these per-user files is known as their Mozilla profile. By utilising these techniques we are able to edit the collection of plain text files just the once, so as to pre-configure the browser for each user there-after. Users can change their preferences if they wish. This can be useful whether there are multiple people using a single copy of the application from a server, or multiple people using it on the one machine, or one person who has it setup for them by someone else and the pre-configuration ensures their Mozilla environemt remains consistant if they have need to create new profiles.

Other than for the initial profile (atleast as far as we know), the Mozilla profile location can be chosen manually. The location of each person's profile(s) is written into %APPDATA%\Mozilla\registry.dat.

Background information for reading this document

In Windows, if the default location and default profile name have been kept, the profile directory will be in %APPDATA%\Mozilla\Profiles\default\xxxxxxxx.slt\. Similarly the Mozilla program directory will be in c:\Program files\Mozilla.org\Mozilla\ but all our pre-configured files that have a Mozilla program directory hard coded in them instead use our preferred location of d:\programs\mozilla\, which you'll have to change if this is not the location of your Mozilla program directory.

Currently this document is only concerned with pre-configuring the Mozilla browser and Mozilla Composer, not other paerts of the suite or the stand-alone versions of these applications. This document is also currently fairly Windows-specific in its descriptions.

The quick step-by-step approach to do this without actually learning whats going on

This will work in most cases, but we recommend you use it as a reminder after you've read the details further on, because you're better equipped for differing situations if you more fully understand what it is you're working with.

Windows registry settings

Quick Launch is worth turning on if you have enough RAM. Manually you choose:

Advanced -> Enable features that increase performance -> Enable Quick Launch [Mozilla pre 1.3]

Advanced -> Quick Launch -> Keep Mozilla in memory to improve startup performance [Mozilla 1.3+]

The installer asks and turns this on if you choose it only for the user that runs the installer. Mozilla doesn't have a preference for this in one of its own preference files, insteas it uses the Windows registry directly. If you want to automate adding it for other users of the same machine you must add a key to each user's Windows registry section directly, for example:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
"Mozilla Quick Launch"="D:\PROGRAMS\MOZILLA\MOZILLA.EXE" -turbo

This can be automated using Microsoft's reg.exe like this:

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "Mozilla Quick Launch" /t REG_SZ /d """"D:\PROGRAMS\MOZILLA\MOZILLA.EXE""" -turbo" /f

all-custom.js (for versions prior to 1.7)
browser-custom.js (for version 1.7 and onwards)

Pre-configure Mozilla browser preferences for multiple users/profiles

Location: mozilla-program-directory\defaults\pref\

Copy this configuration to the file and location described above. Mozilla will apply these settings after its own all.js / browser-prefs.js. Be sure to edit in this configuration example that which is labeled as likely to differ in your situation

// ***********************************************************************
// * If you set your disk cache location in here rather than in user.js  *
// * you should change it to the location that suits your situation in : *
// * 'browser.cache.disk.parent_directory'                               *
// *                                                                     *
// * You should change the path to the search engine to match your path  *
// *                                                                     *
// * string values have quotes, true and false don't                     *
// *                                                                     *
// * as this file is used by JavaScript, you cannot use Windows          *
// * environment variables such as %USERNAME%                            *
// *                                                                     *
// * we assume its ok to use pref settings Mozilla doesn't understand,   *
// * making it possible to use the same prefs file to pre-configure      *
// * different ver of Mozilla - or does Mozilla stop when it hits one?   *
// ***********************************************************************
//
// CURRENT BUGS TO BE WORKED OUT:
// http://lxr.mozilla.org/seamonkey/source/xpfe/components/winhooks/nsWindowsHooks.cpp
// includes jpg/gif/etc "Implementation of method that checks whether the settings match what's in the 297
// Windows registry."
// - checkout CCK in CVS: http://www.mozilla.org/cvs.html
//
// CHANGE LOG:
// 0.9.0 - 11-Jun-2004	- changed 'Check for updates' from 'off' to 'on' and 'monthly'
//				- added 'Resize large images to fit in the browser window' - on
//				- added 'Allow scripts to: Disable or replace context menus' - off
//				- updated descriptions for Mozilla 1.7 and 1.8a1
//				- improved comment for 'prevent links opening in a new window'
// 0.8.6 - 13-Mar-2004	- fixed 'pref("browser.tabs.opentabfor.urlbar", true);' lost its terminating ';'
//				- removed comments to indicate which all.js prefs don't work with Mozilla 1.6, see above
// 0.8.5 - 14-Feb-2004	- comments to indicate which all.js prefs don't work with Mozilla 1.6
// 0.8.4 - 28-Jan-2004	- cleanup of comments
// 0.8.3 - 21-Oct-2003	- removed setting that defined the size of the memory cache as Mozilla now uses an 
//				algorithm to choose the best amount of RAM for the individual system
// 0.8.2 - 8-Oct-2003	- removed pref("browser.cache.memory.capacity", 16384); as Mozilla now employs an 
//				algorithm to choose the best amount of RAM for a system
//				- tidied up comments, adding different text to reflect differences in different 
//				versions of Mozilla, and some comments hadn't reflected the changes made to the prefs
// 0.8.1 - 8-Jul-2003	- suppressing popups now works - using dom.disable_open_during_load instead of 
//				privacy.popups.policy as its deprecated
// 0.8.0 - 24-Jun-2003	- (tidyup of settings not working or not implemented; enabling new Mozilla 1.4 features)
// 				- added Allow scripts to: Hide the status bar - off - 
//				pref("dom.disable_window_open_feature.status", true);
// 				- changed dom.disable_image_src_set from true to false so 'Change images' is on, as was 
//				supposed to be, rather than off
// 				- changed dom.disable_cookie_set from true to false so 'Create or change cookies' is on, 
//				as was supposed to be, rather than off
// 				- added don't display the reminder that Mozilla is still in memory when QuickLaunch enabled - 
//				browser.turbo.showDialog
// 				- added pref("browser.startup.homepage", ""); to set Navigator -> Home Page -> Location blank 
//				rather than http://mozilla.org/start
// 				- added Navigator -> Display on -> New Window - Blank page (browser.windows.loadOnNewWindow)
// 				- added Navigator -> Display on -> New Tab - Blank page (browser.tabs.loadOnNewTab)
// 0.7.3			- pref("privacy.popups.policy", 1); was mis-spelled pref("privacy.popus.policy", 1);
//
// NOTES:
// - Add the following to the bottom of the mozilla-program-directory\defaults\pref\all.js file:
// - The cache setting has been removed so that you can use this file with an individual cache setting in user.js

// ***********************************************************************
// Navigator -> Internet Search -> Default Search Engine -> Search using : Google (or your preferred)
// this relates to D:\programs\Mozilla\searchplugins\google.src **SO YOU SHOULD EDIT IT IF YOUR PATH DIFFERS**
// (Mozilla 1.7 defaults to Google, so this could be removed for that version, which would remove the D: dependency)
pref("browser.search.defaultengine", "engine://D%3A%5Cprograms%5CMozilla%5Csearchplugins%5Cgoogle.src");
// ***********************************************************************

// Default Search Engine name
// **** is this worth using? ****
// pref("browser.search.defaultenginename", "Google");

// minimum (Western) font size
// ? Appearance -> Fonts -> Minimum font size -> 13
// pref("font.minimum-size.x-western", 13);

// Appearance - Resize large images to fit in the browser window - on
pref("browser.enable_automatic_image_resizing", true);

// Navigator -> When Navigator starts up, display : Blank Page
// Navigator -> Display on - Navigator startup : Blank Page (Mozilla 1.4+)
pref("browser.startup.page", 0);

// Navigator -> Display on -> New Window - Blank page (Mozilla 1.4+)
pref("browser.windows.loadOnNewWindow", 0);

// Navigator -> Display on -> New Tab - Blank page (Mozilla 1.4+)
pref("browser.tabs.loadOnNewTab", 0);

// Navigator -> Home Page -> Location - none
pref("browser.startup.homepage", "");

// Navigator -> Select the buttons you want to see in the toolbars: - Bookmarks - off
// (this also needs a corresponding setting making in localstore.rdf)
pref("browser.toolbars.showbutton.bookmarks", false);

// Navigator -> Select the buttons you want to see in the toolbars: - Home - off
// (this also needs a corresponding setting making in localstore.rdf)
pref("browser.toolbars.showbutton.home", false);

// Navigator -> Select the buttons you want to see in the toolbars: - Search - on
// (this also needs a corresponding setting making in localstore.rdf)
pref("browser.toolbars.showbutton.search", true);

// Navigator -> Smart Browsing -> Internet Keywords - Enable Internet Keywords - on
pref("keyword.enabled", true);

// Navigator -> Smart Browsing -> Location Bar Autocomplete -> Automatically complete text typed into 
// Location bar - on
pref("browser.urlbar.autocomplete.enabled", true);

// Navigator -> Smart Browsing -> Location Bar Autocomplete > Advanced... -> Autocomplete Preferences -> 
// Show list of matching results - on
pref("browser.urlbar.showPopup", true);

// Navigator -> Smart Browsing -> Location Bar Autocomplete > Advanced... -> Autocomplete Preferences -> 
// Show internet search engine - on
pref("browser.urlbar.showSearch", true);

// Navigator -> Internet Search -> Search Results -> Open the Search tab in the Sidebar when search results are 
// available - off
pref("browser.search.opensidebarsearchpanel", false);

// Navigator -> Tabbed Browsing -> Tab Display -> Hide the tab bar when only one tab is open - on
pref("browser.tabs.autoHide", true);

// Navigator -> Tabbed Browsing -> Tab Display -> load links in the background - on
pref("browser.tabs.loadInBackground", true);

// Navigator -> Tabbed Browsing -> Open tabs instead of windows for -> Middle-click or control-click of 
// links in a web page - on
pref("browser.tabs.opentabfor.middleclick", true);

// perhaps before Mozilla 1.6: Navigator -> Tabbed Browsing -> Open tabs instead of windows for -> 
// Control+Enter in the URL bar - on
// atleast Mozilla 1.6+: Navigator -> Tabbed Browsing -> Open tabs instead of windows for -> Control+Enter 
// in the Location bar - on
pref("browser.tabs.opentabfor.urlbar", true);

// Mozilla 1.4: Privacy & Security -> Popups -> Suppress popups - on
// Mozilla 1.5+: Privacy & Security -> Popup Windows -> Popup Windows -> Block unrequested popup windows - on
// (does this setting still require Mozilla 1.3 or greater to work?)
// (Mozilla 1.4 doesn't have the 'Allow popups' option)
// (used to use 'privacy.popups.policy' where 1 was on, 2 was off)
pref("dom.disable_open_during_load", true);

// Mozilla 1.3: ? Privacy & Security -> Popup Windows -> Suppress popups -> Exceptions...
// Mozilla 1.4: Privacy & Security -> Popups -> When websites attempt to open new windows without being // asked - Use custom settings // Mozilla 1.5+: ? Privacy & Security -> Popup Windows -> Popup Windows -> Block unrequested popup windows -> // Allowed Sites // (this setting requires Mozilla 1.3 or greater to work) pref("privacy.popups.usecustom", true); // Mozilla prior to 1.7: Privacy & Security -> Cookies - Enable all cookies (0) (you might instead want // 'Enable cookies for the originating web site only (1)') // Mozilla 1.7+: Privacy & Security -> Cookies - Allow all cookies (you might instead want 'Allow cookies // for the originating web site only') pref("network.cookie.cookieBehavior", 0); // Privacy & Security -> Images -> Image Acceptance Policy -> Accept images that come from the originating // server only (set this if you want to be especially careful, but some sites won't work as expected) // pref("network.image.imageBehavior", 1); // Privacy & Security -> Images -> Animated images should loop : Once // (turns off the tedium of moving images whilst trying to read. but some sites won't work as expected) pref("image.animation_mode", "once"); // Privacy & Security -> Passwords -> Password Manager -> Remember Passwords - on // (this can be a really useful time saving feature but depending on your security concerns you may not want it. // if you don't want it you certainly don't want to repeatedly be asked if you want to save a password) pref("signon.rememberSignons", true); // Privacy & Security -> Passwords -> Encrypting versus Obscuring : use encryption when storing sensitive // data - off (with this on, and if you don't use certificates, you'll be asked for your master password // only when the newly launched browser first uses the Password Manager or Form Manager to fill in personal // information. for maximum ease of use leave it off but if you are concerned enough with security then // turn it on) note: this is off by default pref("wallet.crypto", false); // don't display the reminder that Mozilla is still in memory when QuickLaunch enabled pref("browser.turbo.showDialog", false); // Mozilla before 1.5: Advanced -> Enable features that help interpret web pages -> Enable Java: on // Mozilla 1.5+: Advanced -> Features that help interpret web pages -> Enable Java: on // (on by default. you might choose to turn it off to increase security and performance) // ? // Mozilla before 1.5: Advanced -> Scripts & Windows -> Enable JavaScript for: Navigator - on // Mozilla 1.5: Advanced -> Scripts & Plugins -> Enable JavaScript for: Navigator - on // Mozilla 1.6+: Advanced -> Scripts & Plug-ins -> Enable JavaScript for: Navigator - on pref("javascript.enabled", true); // Mozilla before 1.5: Advanced -> Scripts & Windows -> Enable JavaScript for: Mail & News - off // Mozilla 1.5: Advanced -> Scripts & Plugins -> Enable JavaScript for: Mail & News - off // Mozilla 1.6+: Advanced -> Scripts & Plug-ins -> Enable JavaScript for: Mail & News - off pref("javascript.allow.mailnews", false); // Advanced -> Scripts & Windows -> Allow scripts to: Open unrequested windows - off // in Mozilla 1.3 and onwards, this preference is best left false and the pop-up // blocking instead handled by Privacy & Security -> Popup Windows -> ... // Mozilla 1.5, atleast, no longer has a UI option for changing this, tho it can probably still be // changed using this setting. // if you're using Mozilla 1.1/1.2, turn this on as Mozilla 1.1/1.2 doesn't have the extra popup // blocking feature // pref("dom.disable_open_during_load", true); // This should prevent links opening in a new window, instead opening in the same window (bug 78037). // Web pages can use 'target="_blank"' or 'window.open' to do this but Mozilla cannot yet override // 'window.open' (bug 64560) so the user interface option to turn this on/off was removed and hasn't // yet returned because it would indicate such links could be thwarted but wouldn't actually work // in all cases. pref("browser.block.target_new_window", true); // Mozilla 1.3/1.4: Advanced -> Scripts & Windows -> Allow scripts to: Move or resize existing windows - off // Mozilla 1.5: Advanced -> Scripts & Plugins -> Allow scripts to: Move or resize existing windows - off // Mozilla 1.6+: Advanced -> Scripts & Plug-ins -> Allow scripts to: Move or resize existing windows - off pref("dom.disable_window_move_resize", true); // Mozilla 1.3/1.4: Advanced -> Scripts & Windows -> Allow scripts to: raise or lower windows - off // Mozilla 1.5: Advanced -> Scripts & Plugins -> Allow scripts to: raise or lower windows - off // Mozilla 1.6+: Advanced -> Scripts & Plug-ins -> Allow scripts to: raise or lower windows - off pref("dom.disable_window_flip", true); // Mozilla 1.3/1.4: Advanced -> Scripts & Windows -> Allow scripts to: Hide the status bar - off // Mozilla 1.5: Advanced -> Scripts & Plugins -> Allow scripts to: Hide the status bar - off // Mozilla 1.6+: Advanced -> Scripts & Plug-ins -> Allow scripts to: Hide the status bar - off pref("dom.disable_window_open_feature.status", true); // Mozilla 1.3/1.4: Advanced -> Scripts & Windows -> Allow scripts to: Change status bar text - off // Mozilla 1.5: Advanced -> Scripts & Plugins -> Allow scripts to: Change status bar text - off // Mozilla 1.6+: Advanced -> Scripts & Plug-ins -> Allow scripts to: Change status bar text - off pref("dom.disable_window_status_change", true); // Mozilla 1.3/1.4: Advanced -> Scripts & Windows -> Allow scripts to: Change images - on // Mozilla 1.5: Advanced -> Scripts & Plugins -> Allow scripts to: Change images - on // Mozilla 1.6+: Advanced -> Scripts & Plug-ins -> Allow scripts to: Change images - on pref("dom.disable_image_src_set", false); // Mozilla 1.3/1.4: Advanced -> Scripts & Windows -> Allow scripts to: Create or change cookies - on // Mozilla 1.5: Advanced -> Scripts & Plugins -> Allow scripts to: Create or change cookies - on // (this option not present in Mozilla 1.6+'s UI) pref("dom.disable_cookie_set", false); // Mozilla 1.3/1.4: Advanced -> Scripts & Windows -> Allow scripts to: Read cookies - on // Mozilla 1.5: Advanced -> Scripts & Plugins -> Allow scripts to: Read cookies - on // (this option not present in Mozilla 1.6+'s UI) pref("dom.disable_cookie_get", false); // Mozilla 1.7+: Advanced -> Scripts & Plug-ins -> Allow scripts to: Disable or replace context menus - off // (see Mozilla bugs 86193, 117532 and 236666) pref("dom.event.contextmenu.enabled", false); // Advanced -> Software Installation -> Update Notifications -> Check for updates - on, monthly pref("update_notifications.enabled", true); pref("update_notifications.provider.0.frequency", 30); // configurable security policies // ============================== // put them in here if you need them, using this syntax: // pref("capability.policy.default.xxxxxx", "xxxxxx");

composer-custom.js

Pre-configure Mozilla Composer preferences for multiple users/profiles

Location: mozilla-program-directory\defaults\pref\

Copy this configuration to the file and location described above. Mozilla will apply these settings after its own editor.js / composer.js.

Configuration version 0.2.0:

// Composer -> When Saving or Publishing Pages -> Always show Publish dialog when publishing pages - on
pref("editor.always_show_publish_dialog", true);

// Composer -> When Saving or Publishing Pages -> Retain original source formatting - on
pref("editor.prettyprint", false);

user.js

Pre-configure / configure preferences which over-ride other preferences on an individual basis

Location for pre-configuration: mozilla-program-directory\defaults\profile\US\ (replace the 'US' with your own locale if different)

Location for configuration once user profile is created: mozilla-profile-directory\

Use this file to define preferences specific to each user. Note that once these preferences have been made here they cannot be changed using the browser's user interface. If created in the Mozilla program directory described above they'll be copied to each user's profile directory when a new profile is created, though if they then need to contain user-specific settings they'll need to either be edited in the program directory before the new user profile is created, then the original restored, or edited after they've been copied to the user profile.
This file can also be used to define the same settings as previously described for all-custom.js/browser-prefs.js (but with the amendment that all 'pref' statements are instead 'user_pref') but this wouldn't provide a centralised configuration where only the single easily accessable copy of configuration can be changed for all users.

mozilla shouldn't overwrite these preference settings.

This is our user.js configuration, version 0.4.2, for use with our all-custom/browser-custom.js (it includes the cache setting - be sure to edit it if it differs to your situation):


// ***********************************************************************
// * - you should change the diskcache location to match your own        *
// *   situation in the preference browser.cache.disk.parent_directory   *
// *                                                                     *
// * - because these settings are written to PREFS.JS, and if you set    *
// *   non-default values, removing them from here may not change the    *
// *   browser's state so instead of removing them you should instead    *
// *   switch their value                                                *
// *                                                                     *
// * - settings made in here over-ride changes made in the GUI           *
// *                                                                     *
// * - to use these in ALL.JS replace 'user_pref' with 'pref'            *
// *                                                                     *
// * - as this file is used by JavaScript, you cannot use Windows        *
// *   environment variables such as %USERNAME%                          *
// ***********************************************************************
//
// Advanced -> Cache -> Disk Cache Folder -> Choose Folder... (and set to wherever is appropriate, preferably local)
//  (in Windows, by default the disk cache is stored in %WINDIR%\Application Data\Mozilla\Profiles\profile name. 
//  if you have your disk partitioned or are spreading Windows over multiple disks for different functions then 
//  you don't want the browser cache growing in the Windows partition. so, locate it in your temp partition, or 
//  wherever you store profiles/caches. this menu option relates to the following in the PREFS.JS file
//  ("see also network.http.use-cache")
//  **CHANGE THE DRIVE LETTER AND USERNAME IN THE EXAMPLE BELOW TO WHICHEVER IS APPROPRIATE TO YOU**
//;user_pref("browser.cache.disk.enable", true);	
//;user_pref("browser.cache.disk.parent_directory", "PUT_USER_TEMP_LOCATION_HERE\\mozilla");

bookmarks.html

Pre-configure bookmarks for each new user/profile

Location: mozilla-program-directory\defaults\profile\US\ (replace the 'US' with your own locale if different)

You can pre-define the bookmarks given to all profiles by copying a new one over Mozilla's.

This is our complete bookmarks.html:

<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
Do Not Edit! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>

<DL><p>
<DT><H3 ADD_DATE="961112773" LAST_MODIFIED="0" PERSONAL_TOOLBAR_FOLDER="true" ID="NC:PersonalToolbarFolder">Personal Toolbar Folder</H3>
<DL><p>
</DL><p>
<HR>
</DL><p>

localstore.rdf

Pre-configure toolbar buttons for each new user/profile

Location: mozilla-program-directory\defaults\profile\US\ (replace the 'US' with your own locale if different)

You can pre-define toolbar buttons for all profiles by adding your own settings to the bottom of Mozilla's localstore.rdf, before the end-of-file marker ' < / RDF:RDF>'.

our insert for localstore.rdf for Mozilla 1.3:

<RDF:Description about="chrome://navigator/content/navigator.xul">
  <NC:persist resource="chrome://navigator/content/navigator.xul#home-button" />
  <NC:persist resource="chrome://navigator/content/navigator.xul#go-button" />
  <NC:persist resource="chrome://navigator/content/navigator.xul#bookmarks-button" />
</RDF:Description>
<RDF:Description about="chrome://navigator/content/navigator.xul#home-button"
                 hidden="true" />
<RDF:Description about="chrome://navigator/content/navigator.xul#go-button"
                 hidden="true" />
<RDF:Description about="chrome://navigator/content/navigator.xul#bookmarks-button"
                 hidden="true" />

Our insert for localstore.rdf for Mozilla 1.4 - 1.7 (Mozilla 1.4 added the 'sidebar-box' and 'sidebar-splitter' parts as seen here) (note: Mozilla 1.5 has a bug where-by a blank Personal Toolbar will causes the browser window to bounce up and down continuously (see bug 221503)):

These two sections not in italics, insert above and between the lines already existing in localstore.rdf that are shown here in italics:

<RDF:Description about="chrome://navigator/content/navigator.xul#sidebar-box">
  <hidden>true</hidden>
</RDF:Description>
<RDF:Description about="chrome://navigator/content/navigator.xul#sidebar-splitter">
  <hidden>true</hidden>
</RDF:Description>

<RDF:Description about="chrome://navigator/content/navigator.xul">
  <NC:persist resource="chrome://navigator/content/navigator.xul#sidebar-panels"/>

  <NC:persist resource="chrome://navigator/content/navigator.xul#sidebar-box"/>
  <NC:persist resource="chrome://navigator/content/navigator.xul#sidebar-splitter"/>

</RDF:Description>

And this goes at the bottom:

<RDF:Description about="chrome://navigator/content/navigator.xul">
  <NC:persist resource="chrome://navigator/content/navigator.xul#home-button" />
  <NC:persist resource="chrome://navigator/content/navigator.xul#go-button" />
  <NC:persist resource="chrome://navigator/content/navigator.xul#bookmarks-button" />
</RDF:Description>
<RDF:Description about="chrome://navigator/content/navigator.xul#home-button"
                 hidden="true" />
<RDF:Description about="chrome://navigator/content/navigator.xul#go-button"
                 hidden="true" />
<RDF:Description about="chrome://navigator/content/navigator.xul#bookmarks-button"
                 hidden="true" />

panels.rdf

Pre-configure the Sidebar's panels for each new user/profile

mozilla-program-directory\defaults\profile\US\ (replace the 'US' with your own locale if different)

You can remove information from panels.rdf to remove Sidebar panels. We remove the following from Panels.rdf for Mozilla 1.3 and 1.4 (later versions removed by default the panels we were removing) - this is our version 0.1.1:

<RDF:li resource="urn:sidebar:panel:tinderbox"/>
<RDF:li resource="urn:sidebar:panel:tinderbox-ports"/>

<RDF:Description about="urn:sidebar:panel:tinderbox">
  <NC:title>&sidebar.tinderbox-seamonkey.label;</NC:title>
  <NC:content>http://tinderbox.mozilla.org/SeaMonkey/panel.html</NC:content>
</RDF:Description>

<RDF:Description about="urn:sidebar:panel:tinderbox-ports">
  <NC:title>&sidebar.tinderbox-ports.label;</NC:title>
  <NC:content>http://tinderbox.mozilla.org/SeaMonkey-Ports/panel.html</NC:content>
</RDF:Description>

userChrome.css

customize the look of Mozilla's user interface

Location: mozilla-profile-directory\chrome\

We don't currently have any preferences which we put in here

userContent.css

apply a style to all web pages you view

Location: mozilla-profile-directory\chrome\

We don't currently have any preferences which we put in here

More info on this stuff elsewhere on the web

http://www.gemal.dk/mozilla/files.html