Customization
Store list file
The Store list is actually an RDF file named
jsconsolestore.rdf, located in your Mozilla profile directory.
If you remove this file from its location, the Store monitor won't be able to work. Therefore, copy the original jsconsolestore.rdf from the jsconsole chrome directory (chrome/jsconsole/content/profile) to your Mozilla profile directory.
JavaScript user defined starting code
User defined JavaScript code can be automatically loaded at JS Console launch and made available in your code. This user code must be appended in the
jsconsoleuser.js file, located in the Mozilla profile directory. This file is automatically loaded in the Code panel as the default edited file.
You can, for instance add code to be inserted in the evaluation result header.
If you have removed this file from its location, copy the original jsconsoleuser.js file from the jsconsole chrome directory (chrome/jsconsole/content/profile) to your Mozilla profile directory.
Evaluation result header
After code evaluation, the result is displayed in the Output panel if no error occurs (execution time beeing indicated in the statusbar) or in the Errors panel if an exception in thrown.
The result starts with a header defined in the Preferences panel: Output header String.
This string can be anything you want and can include a JavaScript code fragment to be evaluated before beeing inserted in the header.
To delimit a JavaScript code fragment you must enclose it in backtick characters (ISO-8859/1 character set number 96), used in Unix shells to invoke command substitution (in later releases this character could be customizable).
In the default configuration, the Output header String contains such a code fragment which simply calls the __GETDATE__ function to stamp the result.
In this release, the Output header String is used both for Output and Errors panels (in later releases these headers could be independantly customized).
Use the context menu to navigate in the documentation pages