MozillaZine

Useful prefs

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 17:00, 27 July 2004
Asqueella (Talk | contribs)

<-- Previous diff
Revision as of 13:34, 4 October 2004
Asqueella (Talk | contribs)

Next diff -->
Line 1: Line 1:
-Add these prefs to user.js (in your [[Profile Folder | Profile]]):+These prefs may be useful for people writing Mozilla extensions. They should be added to [[user.js]] or [[about:config]].
- // [[Dev : Tips : Disable XUL cache|Disable XUL cache]] (so you don't have to restart everytime you change a XUL file)+<pre>
- user_pref("nglayout.debug.disable_xul_cache", true);+// [[Dev : Tips : Disable XUL cache|Disable XUL cache]] (so you don't
 +// have to restart everytime you change a XUL file)
 +user_pref("nglayout.debug.disable_xul_cache", true);
- // Enable dump() ([[Dev : Tips : Enabling dump |read more]])+// Enable dump() output ([[Dev : Tips : Enabling dump|read more]])
- user_pref("browser.dom.window.dump.enabled", true);+user_pref("browser.dom.window.dump.enabled", true);
- // Show chrome errors in the JS console+// Show chrome errors in the JavaScript console
- user_pref("javascript.options.showInConsole", true);+user_pref("javascript.options.showInConsole", true);
- // Enable strict JS warnings+// Enable strict JavaScript warnings. (Note, that since most people have it
- user_pref("javascript.options.strict", true);+// turned off, you will see dozens of warnings in their code. Use with caution).
 +user_pref("javascript.options.strict", true);
 +</pre>

Revision as of 13:34, 4 October 2004

These prefs may be useful for people writing Mozilla extensions. They should be added to user.js or about:config.

// [[Dev : Tips : Disable XUL cache|Disable XUL cache]] (so you don't 
// have to restart everytime you change a XUL file)
user_pref("nglayout.debug.disable_xul_cache", true);

// Enable dump() output ([[Dev : Tips : Enabling dump|read more]])
user_pref("browser.dom.window.dump.enabled", true);

// Show chrome errors in the JavaScript console
user_pref("javascript.options.showInConsole", true);

// Enable strict JavaScript warnings. (Note, that since most people have it 
// turned off, you will see dozens of warnings in their code. Use with caution).
user_pref("javascript.options.strict", true);