<?xml version="1.0" encoding="Shift_JIS"?>
<?xml-stylesheet href="help.css" type="text/css" title="Help Style"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<link rev="made" title="made by Piro(SHIMODA Hiroshi)" href="mailto:piro.outsider.reflex@gmail.com"/>
	<title>ContextMenu Extensions:Appendix</title>
	<link rel="start" href="help.xml.en"/>
</head>
<body>


<ul id="page-menu" class="header">
	<li><a href="help.xml.en">Contents</a></li>
	<li><a href="help-installation.xml.en">Installation Notes</a></li>
	<li><a href="help-features.xml.en">Features</a></li>
	<li><a href="help-prefs.xml.en">Preferences</a></li>
	<li>Appendix</li>
</ul>

<h1 id="top">Appendix</h1>

<ul>
	<li><a href="#shortcuts">Keyboard Shortcuts</a></li>
	<li><a href="#shortexpressions">Short Expressions for Custom Scripts</a></li>
	<li><a href="#samplescripts">Sample Scripts</a></li>
	<li><a href="#tips">Tips</a></li>
</ul>



<h2 id="shortcuts">Keyboard Shortcuts</h2>

<table border="1" summary="">
	<colgroup>
		<col class="key"/>
		<col class="description"/>
	</colgroup>
	<thead><tr><th>Keys</th><th>Features</th></tr></thead>
	<tbody>
		<tr><th colspan="2">Navigator Window</th></tr>
		<tr><td>Alt + S</td>
			<td>Open <samp>StyleSheets</samp> menu</td></tr>
		<tr><td>Alt + O</td>
			<td>Open <samp>Outline</samp> menu</td></tr>
		<tr><td>Alt + N</td>
			<td>Open <samp>Site Navigations</samp> menu</td></tr>
		<tr><td>Alt + A</td>
			<td>Open <samp>Open with Applications</samp> menu</td></tr>
		<tr><td>Alt + C</td>
			<td>Open <samp>Custom Scripts</samp> menu</td></tr>
		<tr><td>S</td>
			<td>Go to Next Heading</td></tr>
		<tr><td>W</td>
			<td>Go to Previous Heading</td></tr>
		<tr><td>A or Ctrl(Command)+Up</td>
			<td>Focus to the next link</td></tr>
		<tr><td>Q or Ctrl(Command)+Down</td>
			<td>Focus to the previous link</td></tr>
		<tr><td>Ctrl(Command) + J</td>
			<td>Copy Links List</td></tr>
		<tr><td>Alt + Back Space</td>
			<td>Up</td></tr>
		<tr><td>T</td>
			<td>Site Navigations:Top</td></tr>
		<tr><td>U</td>
			<td>Site Navigations:Up</td></tr>
		<tr><td>F</td>
			<td>Site Navigations:First page</td></tr>
		<tr><td>P</td>
			<td>Site Navigations:Previous page</td></tr>
		<tr><td>N</td>
			<td>Site Navigations:Next page</td></tr>
		<tr><td>L</td>
			<td>Site Navigations:Last page</td></tr>
		<tr><td>C</td>
			<td>Site Navigations:Contents</td></tr>
		<tr><td>1</td>
			<td>Site Navigations:Chapters</td></tr>
		<tr><td>2</td>
			<td>Site Navigations:Sections</td></tr>
		<tr><td>3</td>
			<td>Site Navigations:Subsections</td></tr>
		<tr><td>X</td>
			<td>Site Navigations:Appendixes</td></tr>
		<tr><td>G</td>
			<td>Site Navigations:Glossary</td></tr>
		<tr><td>I</td>
			<td>Site Navigations:Index</td></tr>
		<tr><td>?</td>
			<td>Site Navigations:Help</td></tr>
		<tr><td>H</td>
			<td>Site Navigations:Search</td></tr>
		<tr><td>@</td>
			<td>Site Navigations:Author</td></tr>
		<tr><td>R</td>
			<td>Site Navigations:Copyright information</td></tr>
		<tr><td>B</td>
			<td>Site Navigations:Bookmark</td></tr>
		<tr><td>O</td>
			<td>Site Navigations:Other versions</td></tr>
	</tbody>
	<tbody>
		<tr><th colspan="2">JavaScript Panel</th></tr>
		<tr><td>Ctrl(Command) + W</td>
			<td rowspan="2">Close</td></tr>
		<tr><td>Ctrl(Command) + Q</td></tr>
		<tr><td>Ctrl(Command) + R</td>
			<td>Run</td></tr>
	</tbody>
	<tbody>
		<tr><th colspan="2">Custom User Style Editor</th></tr>
		<tr><td>Ctrl(Command) + S</td>
			<td>Save</td></tr>
		<tr><td>Ctrl(Command) + W</td>
			<td rowspan="2">Close</td></tr>
		<tr><td>Ctrl(Command) + Q</td></tr>
		<tr><td>Ctrl(Command) + R</td>
			<td>Reload</td></tr>
	</tbody>
	<tbody>
		<tr><th colspan="2">StyleSheets Manager</th></tr>
		<tr><td>Ctrl(Command) + W</td>
			<td rowspan="2">Close</td></tr>
		<tr><td>Ctrl(Command) + Q</td>
			</tr>
		<tr><td>Ctrl(Command) + R</td>
			<td>Reload</td></tr>
		<tr><td>Ctrl(Command) + E</td>
			<td>Edit</td></tr>
	</tbody>
</table>




<h2 id="shortexpressions">Short Expressions for Custom Scripts</h2>

<p>In Custom Scripts and JavaScript Panel, predefined values and functions to use cross platform features of Netscape/Mozilla are available. Even if you don't know about internal specifications of Netscape/Mozilla, they will help you to make scripts easily.</p>


<h3>Defined Values, References</h3>
<dl>
	<dt><code>XHTMLNS</code></dt>
	<dt><code>XLinkNS</code></dt>
	<dt><code>XULNS</code></dt>
		<dd><p>Are strings of namespace URIs for XHTML 1.0/1.1, XLink 1.0, and XUL.</p></dd>

	<dt><code>_window</code></dt>
		<dd><p>Is the reference to the global object (Window object) of the current page (or frame).</p></dd>

	<dt><code>_window.document.navigations</code></dt>
		<dd><p>Is the array of navigation items, and they have following properties:</p>
		<dl>
			<dt><code>length</code></dt>
				<dd><p>Is the number of navigations.</p></dd>
			<dt><code>[<var>n</var>].elemType</code></dt>
				<dd><p>Is the type of the navigation item. When the navigation is provided as a LINK element, <samp>navigation</samp>. If an A element, <samp>anchor</samp>.</p></dd>
			<dt><code>[<var>n</var>].href</code></dt>
				<dd><p>Is the URI of the navigation.</p></dd>
			<dt><code>[<var>n</var>].substance</code></dt>
				<dd><p>Is the element node of the navigation.</p></dd>
		</dl></dd>

	<dt><code>_window.document.headings</code></dt>
		<dd><p>Is the array of headings, and they have following properties.</p>
		<dl>
			<dt><code>length</code></dt>
				<dd><p>Is the number of headings.</p></dd>
			<dt><code>[<var>n</var>].id</code></dt>
				<dd><p>Is the id of the heading. If there is no id, this is indicates a value of the NAME atrribute of the first children of it or <code>null</code>.</p></dd>
			<dt><code>[<var>n</var>].level</code></dt>
				<dd><p>Is the level of the heading.</p></dd>
			<dt><code>[<var>n</var>].label</code></dt>
				<dd><p>Is the content text of the heading.</p></dd>
			<dt><code>[<var>n</var>].substance</code></dt>
				<dd><p>Is the element node of the heading.</p></dd>
		</dl></dd>

	<dt><code>_contextualURI</code></dt>
		<dd><p>Is the URI of the link which the context menu is opened on, or the URI of the page (frame).</p></dd>

	<dt><code>_popupNode</code></dt>
		<dd><p>Is the reference to the node which the context menu is opened on. If the context menu is not opened, this is <code>null</code>.</p></dd>

	<dt><code>_selection</code></dt>
		<dd><p>Is the selection text. If there is no selection, this is nullstring.</p></dd>

	<dt><code>_selectionSource</code></dt>
		<dd><p>Is the HTML source of the selection. Opening and closing tags are made up if the element is selected partially.</p></dd>

	<dt><code>_selectionNodes</code></dt>
		<dd><p>Is the flat array of nodes contained in the selection.</p></dd>

	<dt><code>_focusedElement</code></dt>
		<dd><p>Is the reference to the focused node.</p></dd>

	<dt><code>_profileURI</code></dt>
	<dt><code>_profilePath</code></dt>
	<dt><code>_installedURI</code></dt>
	<dt><code>_installedPath</code></dt>
	<dt><code>_temporaryURI</code></dt>
	<dt><code>_temporaryPath</code></dt>
	<dt><code>_homeURI</code></dt>
	<dt><code>_homePath</code></dt>
		<dd><p>Are strings indicate directories: the profile directory of the current user, the directory Mozilla/Netscape is installed in, the system directory temporary filres are put in, and the home directory (like desktop).</p>
		<p>"<var>...</var>URI" is formatted as a URI like "file:///<var>...</var>". "<var>...</var>Path" is as a file path for the platform, for example, it is like "c:\..." in Windows.</p></dd>

	<dt><code>_isOnline</code></dt>
		<dd><p>Is <code>true</code> if Netscape/Mozilla is in online mode.</p></dd>

	<dt><code>_inFrame</code></dt>
		<dd><p>Is <code>true</code> if the context menu is opened on a frame.</p></dd>
</dl>


<h3>Functions</h3>
<dl>
	<dt><code>_getTopWindowOf(<var>aWindowType</var>)</code></dt>
		<dd><p>Returns the XUL window which has the specified window type, recently selected.</p></dd>

	<dt><code>_getWindowsOf(<var>aWindowType</var>)</code></dt>
		<dd><p>Returns the array of XUL windows which have the specified window type.</p></dd>

	<dt><code>_loadURI(<var>aURI</var>[, <var>aReferrerURI</var>])</code></dt>
		<dd><p>Loads the URI in the current window (tab). This returns the browser which the URI is loaded in.</p></dd>

	<dt><code>_openNewWindow(<var>aURI</var>[, <var>aReferrerURI</var>])</code></dt>
		<dd><p>Opens the URI in a new window. This returns the new XULWindow.</p></dd>

	<dt><code>_openNewTab(<var>aURI</var>[, <var>aReferrerURI</var>])</code></dt>
		<dd><p>Opens the URI in a new tab. This returns the tab.</p></dd>


	<dt><code>_loadURIAndDo(<var>aURI</var>[, <var>aReferrerURI</var>[, <var>aCallBackFunc1</var>[, <var>aCallBackFunc2</var>[, ...]]]])</code></dt>
		<dd><p>Loads the URI in the current window (tab), and executes given functions after the page is loaded. This returns the browser which the URI is loaded in.</p>
		<p>Given functions will be able to get the <code>Window</code> object of the loaded page or frame, as a first argument. And you can use these short expressions in them.</p></dd>

	<dt><code>_openNewWindowAndDo(<var>aURI</var>[, <var>aReferrerURI</var>[, <var>aCallBackFunc1</var>[, <var>aCallBackFunc2</var>[, ...]]]])</code></dt>
		<dd><p>Opens the URI in a new window, and executes given functions after the page is loaded. This returns the new XULWindow.</p>
		<p>Given functions will be able to get the <code>Window</code> object of the loaded page or frame, as a first argument. And you can use these short expressions in them.</p></dd>

	<dt><code>_openNewTabAndDo(<var>aURI</var>[, <var>aReferrerURI</var>[, <var>aCallBackFunc1</var>[, <var>aCallBackFunc2</var>[, ...]]]])</code></dt>
		<dd><p>Opens the URI in a new tab, and executes given functions after the page is loaded. This returns the tab.</p>
		<p>Given functions will be able to get the <code>Window</code> object of the loaded page or frame, as a first argument. And you can use these short expressions in them.</p></dd>


	<dt><code>_selectButton(<var>aMessage</var>, <var>aButtons</var>)</code></dt>
		<dd><p>Shows a dialog box which has multiple buttons until three, built from the specified labels. This returns the index of the pressed button (0-3).</p></dd>

	<dt><code>_selectButtonWithTitle(<var>aTitle</var>, <var>aMessage</var>, <var>aButtons</var>)</code></dt>
		<dd><p>Is a variation of the <code>_selectButton()</code>, and you can specify the title of the dialog.</p></dd>

	<dt><code>_selectList(<var>aMessage</var>, <var>aListItems</var>)</code></dt>
		<dd><p>Shows a dialog box which has a list box, built from the specified labels. This returns the index of the selected item (0-<var>n-1</var>).</p></dd>

	<dt><code>_selectListWithTitle(<var>aTitle</var>, <var>aMessage</var>, <var>aListItems</var>)</code></dt>
		<dd><p>Is a variation of the <code>_selectList()</code>, and you can specify the title of the dialog.</p></dd>

	<dt><code>_getClipBoard()</code></dt>
		<dd><p>Gets and returns a string from the clipboard. If the content of the clipboard is not a string, this returns <code>null</code>.</p></dd>

	<dt><code>_setClipBoard(<var>aString</var>)</code></dt>
		<dd><p>Copies the string to the clipboard. This returns no value.</p></dd>

	<dt><code>_getInnerText(<var>aElementNode</var>)</code></dt>
		<dd><p>Returns the inner text of the element node. If there are images, they are replaced to alternate texts.</p></dd>

	<dt><code>_convertCharset(<var>aString</var>, <var>aInputCharset</var>, <var>aOutputCharset</var>)</code></dt>
	<dt><code>_convertCharset(<var>aString</var>, <var>aOutputCharset</var>)</code></dt>
		<dd><p>Return strings with the specified encoding. If you don't specify input-encoding, this regards the string as a Unicode string.</p></dd>

	<dt><code>_addStyleSheet(<var>aURI</var>[, <var>aMIMEType</var>[, <var>aMedia</var>[, <var>aTargetWindow</var>]]])</code></dt>
		<dd><p>Applies the stylesheet. If you don't specify the MIME type, the sheet is operated as "text/css". And if there is no media, operated as "all". When an <code>Window</code> object or frame is given as the fourth argument, this works for the frame. This returns no value.</p></dd>

	<dt><code>_run(<var>aAppPath</var>[, <var>aOptions</var>])</code></dt>
		<dd><p>Runs the external applications specified by the local file path. You can hand options as a space-separated string or an array. This returns no value.</p></dd>
</dl>


<h3>File I/O</h3>
<dl>
	<dt><code>_include(<var>aFilePathOrURI</var>)</code></dt>
		<dd><p>Loads the external JavaScript and execute it. This returns no value.</p></dd>

	<dt><code>_readFrom(<var>aFilePathOrFile</var>)</code></dt>
		<dd><p>Returns the content of the file as a string.</p></dd>

	<dt id="SE_writeTo"><code>_writeTo(<var>aString</var>, <var>aFilePath</var>[, <var>aFlags</var>])</code></dt>
		<dd>
		<p>Save the string as a text file. If the file exists, it is replaced to new one without warning. This function doesn't convert encoding of strings, so you have to convert it by <code>_convertCharset()</code>.</p>
		<p>You can give following flags as the third argument, like <code>"<var>flag1</var>=yes,<var>flag2</var>=no"</code>.</p>
		<dl>
			<dt><code>CreateDirectory</code></dt>
				<dd>If you don't use this flag, a dialog to confirm (to create new directory(s)) will be shown when the directory doesn't exist. <code>yes</code> skips the dialog with <samp>Yes</samp>, <code>no</code> skips with <code>No</code>.</dd>
			<dt><code>Overwrite</code></dt>
				<dd>If you don't use this flag, a dialog to confirm (to overwrite the file with the new one) will be shown when the file exists. <code>yes</code> skips the dialog with <samp>OK</samp>, <code>no</code> skips with <code>Cancel</code>.</dd>
		</dl>
		<p>This returns the nsILocalFile object of the saved file (if you canceled, <code>null</code>).</p>
		</dd>

	<dt><code>_saveURIAs(<var>aURI</var>[, <var>aFilePath</var>[, <var>aFlags</var>]])</code></dt>
		<dd><p>Download and save a remote resource pointed by the URI, as a file. When the second argument isn't given, a dialog to choose file is shown. You can hand the third argument like <a href="#SE_writeTo"><code>_writeTo()</code></a>. This returns the nsIWebBrowserPersist object which is downloading the file (if you canceled before starting the download, <code>null</code>).</p></dd>

	<dt><code>_saveURIInBackgroundAs(<var>aURI</var>[, <var>aFilePath</var>[, <var>aFlags</var>]])</code></dt>
		<dd><p>Download and save a remote resource pointed by the URI, as a file. This doesn't show the dialog to indicate progress of downloading. When the second argument isn't given, a dialog to choose file is shown. You can hand the third argument like <a href="#SE_writeTo"><code>_writeTo()</code></a>. This returns the nsIWebBrowserPersist object which is downloading the file (if you canceled before starting the download, <code>null</code>).</p></dd>

	<dt><code>_chooseFile(<var>aTitle</var>[, <var>aDefault</var>[, <var>aFilter</var>]])</code></dt>
		<dd><p>Opens a common dialog to choose a file. You can specify the default filename and filter to show files like <code>*.txt;*.doc</code>. This returns the nsIFile object of the choosen file.</p></dd>

	<dt><code>_chooseFileToSave(<var>aTitle</var>[, <var>aDefault</var>[, <var>aFilter</var>]])</code></dt>
		<dd><p>Is a variation of the <code>_chooseFile()</code>, and this opens the common dialog to save a file.</p></dd>
</dl>


<h3>Features of ContextMenu Extensions</h3>
<dl>
	<dt><code>_cancelStyles([<var>aTargetWindow</var>])</code></dt>
		<dd><p>Kills all styles in the page. When an <code>Window</code> object or frame is given, this works for the frame. This returns no value.</p></dd>

	<dt><code>_switchStyleTo(<var>aStyleName</var>[, <var>aTargetWindow</var>])</code></dt>
		<dd><p>Switches the appearance of the page to the specified style. If the page doesn't have the style or you handed <code>null</code>, only the permanent styles are enabled. When an <code>Window</code> object or frame is given as the second argument, this works for the frame. This returns no value.</p></dd>

	<dt><code>_openStyleSheetSource(<var>aStyleName</var>[, <var>aTargetWindow</var>])</code></dt>
		<dd><p>Opens the source file of the specified style of the page. If the style has multiple sources, each resources are opened in new windows or tabs. When an <code>Window</code> object or frame is given as the second argument, this works for the frame. This returns no value.</p></dd>

	<dt><code>_editGlobalUserStyleSheet()</code></dt>
		<dd><p>Opens the Global UserStylesheet Editor. This returns no value.</p></dd>

	<dt><code>_editCustomUserStyle([<var>aTargetWindow</var>])</code></dt>
		<dd><p>Opens the custom userstyle editor for the page. When an <code>Window</code> object or frame is given, this works for the frame. This returns no value.</p></dd>

	<dt><code>_addOptionalStyleSheet(<var>aStyleIndexOrName</var>[, <var>aTargetWindow</var>])</code></dt>
	<dt><code>_removeOptionalStyleSheet(<var>aStyleIndexOrName</var>[, <var>aTargetWindow</var>])</code></dt>
		<dd><p>Enables or disables the userdefined stylesheet. You can specify the stylesheet by it's name or the index (0-<var>n-1</var>). When an <code>Window</code> object or frame is given as the second argument, this works for the frame. This returns no value.</p></dd>

	<dt><code>_getLinks([<var>aRegExp</var>[, <var>aShouldCopyResultToClipBoard</var>[, <var>aTargetWindow</var>]]])</code></dt>
		<dd><p>Collects whole link URIs of the page (, frame, or selection) and returns the result as a flat array. If the second argument is <code>true</code>, this copies the result to the clipboard. When an <code>Window</code> object or frame is given as the third argument, this works for the frame.</p></dd>

	<dt><code>_getLinksWithNode([<var>aRegExp</var>[, <var>aTargetWindow</var>]])</code></dt>
		<dd><p>Collects whole links of the page (, frame, or selection) and returns the result as a flat array. Elements of the returned array is objects which have two properties: <code>uri</code> is the URI of the link, <code>node</code> is the element node of the link. When an <code>Window</code> object or frame is given as the second argument, this works for the frame.</p></dd>

	<dt><code>_SendURITo(<var>aURI</var>, <var>aReceiverIndexOrName</var>)</code></dt>
		<dd><p>Sends a URI to the specified web service. You can specify the service by it's name or the index (0-<var>n-1</var>). This returns no value.</p></dd>

	<dt><code>_SendStringTo(<var>aString</var>, <var>aReceiverIndexOrName</var>)</code></dt>
		<dd><p>Sends a string to the specified web service. You can specify the service by it's name or the index (0-<var>n-1</var>). This returns no value.</p></dd>

	<dt><code>_OpenWithApp(<var>aURI</var>, <var>aString</var>, <var>aAppIndexOrName</var>)</code></dt>
		<dd><p>Sends a URI and a string to the specified application. You can specify the application by it's name or the index (0-<var>n-1</var>). This returns no value.</p></dd>

	<dt><code>_runCustomScript(<var>aScriptIndexOrName</var>[, <var>aTargetWindow</var>])</code></dt>
	<dt><code>_CustomScript(<var>aScriptIndexOrName</var>[, <var>aTargetWindow</var>])</code></dt>
		<dd><p>Executes an custom script and returns a value returned from the script. You can specify the script by it's name or the index (0-<var>n-1</var>). When an <code>Window</code> object or frame is given as the second argument, this works for the frame.</p></dd>

	<dt><code>_up([<var>aTargetWindow</var>])</code></dt>
	<dt><code>_goNextHeading([<var>aTargetWindow</var>])</code></dt>
	<dt><code>_goPrevHeading([<var>aTargetWindow</var>])</code></dt>
	<dt><code>_goJSPanel([<var>aTargetWindow</var>])</code></dt>
	<dt><code>_showComments([<var>aTargetWindow</var>])</code></dt>
	<dt><code>_showLinks([<var>aTargetWindow</var>])</code></dt>
	<dt><code>_showIDs([<var>aTargetWindow</var>])</code></dt>
	<dt><code>_showCites([<var>aTargetWindow</var>])</code></dt>
	<dt><code>_showTitles([<var>aTargetWindow</var>])</code></dt>
	<dt><code>_showEvents([<var>aTargetWindow</var>])</code></dt>
	<dt><code>_showAll([<var>aTargetWindow</var>])</code></dt>
		<dd><p>Executes features of ContextMenu Extensions. When an <code>Window</code> object or frame is given, they works for the frame. They return no value.</p></dd>
</dl>


<h3>Save/Load Preferences</h3>
<dl>
	<dt><code>_getPref(<var>aPrefString</var>)</code></dt>
		<dd><p>Loads preferences and returns it's value as a string, number, or boolean. If the specified preference is not saved, this returns <code>null</code>.</p></dd>

	<dt><code>_setPref(<var>aPrefString</var>, <var>aValue</var>)</code></dt>
		<dd><p>Saves the specified preference. This returns no value. The type of the value is discriminated as boolean, an integral number, or a string automatically. For example, if you would like to save a nubmer as a string, hand <code>value.<em>toString()</em></code> to this.</p></dd>

	<dt><code>_clearPref(<var>aPrefString</var>)</code></dt>
		<dd><p>Clears the specified preference to the default. If the preference is not saved, this does no action.</p></dd>

	<dt><code>_getCookie(<var>aName</var>)</code></dt>
		<dd><p>Gets the specified cookie and returns it's value. If the cookie isn't saved, this returns a nullstring.</p></dd>

	<dt><code>_putCookie(<var>aName</var>, <var>aValue</var> [, <var>aExpires</var>[, <var>aPath</var>]])</code></dt>
		<dd><p>Saves the specified cookie. The term of validity (days) and the path are optional.</p></dd>
</dl>




<h2 id="samplescripts">Sample Scripts</h2>

<p>There are sample scripts for <a href="help-features.xml.en#customScripts">Custom Scripts</a>, following. They will help you to make new scripts.</p>

<ol>
	<li>
		<h3>Create Link to the Current Page</h3>
		<p>Create a link to the current page as <code>&lt;a href="<var>URI</var>" title="<var>title of the page</var>"&gt;<var>title of the page</var>&lt;/a&gt;</code>, and copies to the clipboard.</p>
	</li>

<!--
	<li>
		<h3>&customScripts.sample2.label;</h3>
		<p>Creates a quotation as <code>&lt;q title="<var>title of the page</var>" cite="<var>URI</var>"&gt;<var>selection text</var>&lt;/q&gt;</code>, and copies to the clipboard. If the selection contains multiple lines, uses the format following: <code>&lt;qblockquote title="<var>title of the page</var>" cite="<var>URI</var>"&gt;&lt;p&gt;<var>selection text</var>&lt;/p&gt;&lt;/blockquote&gt;</code>.</p>
	</li>
-->

	<li>
		<h3>Quote Selection as HTML</h3>
		<p>Creates a quotation as <code>&lt;q title="<var>title of the page</var>" cite="<var>URI</var>"&gt;<var>selection</var>&lt;/q&gt;</code> with original markups, and copies to the clipboard. If the selection contains block level elements, uses the format following: <code>&lt;qblockquote title="<var>title of the page</var>" cite="<var>URI</var>"&gt;&lt;p&gt;<var>selection text</var>&lt;/p&gt;&lt;/blockquote&gt;</code>.</p>
	</li>

	<li>
		<h3>Create Outline List</h3>
		<p>Collects whole headings in the pages, creates an list like an outline, and copies it to the clipboard. You can use this for make a contents of pages, and so on.</p>
	</li>

	<li>
		<h3>Encode a text file to UTF-8</h3>
		<p>Converts the encoding of the file to UTF-8. This is useful if you have no application which can operate UTF-8, when you would like to create localized .dtd files.</p>
	</li>

	<li>
		<h3>Escape strings to Unicode for JavaScript</h3>
		<p>Escapes inputted string for JavaScript in Unicode format, like <code>\u<var>charcode</var></code>. This is useful to create localized .properties files in Japanese, Chinese, and so on.</p>
	</li>

	<li>
		<h3>Escape strings for CSS</h3>
		<p>Escapes inputted string to CSS format, like <code>\<var>charcode</var> &nbsp;</code>(last letter is a space). This is useful to write CSS rules only for IE6, Netscape 7/Mozilla, and so on.</p>
	</li>

	<li>
		<h3>Convert strings to XML numeric character references (in decimal)</h3>
		<p>Converts inputted string to XML numeric character reference, like <code>&amp;#<var>charcode(in decimal)</var>;</code>.</p>
	</li>

	<li>
		<h3>Convert strings to XML numeric character references (in hexadecimal)</h3>
		<p>Converts inputted string to XML numeric character reference, like <code>&amp;#x<var>charcode(in hexadecimal)</var>;</code>.</p>
	</li>

	<li>
		<h3>Show Content of NOFRAMES</h3>
		<p>Shows the content of the <code>&lt;noframes&gt;</code> in the page which has frames. This may be used to check accessibility of pages for browsers without supporting of frames.</p>
	</li>

	<li>
		<h3>Get Properties List of JS Object</h3>
		<p>Analyses whole properties of the JavaScript object, and copies the result to the clipboard.</p>
	</li>

	<li>
		<h3>Get Properties List of JS Object(2)</h3>
		<p>Analyses whole properties of the JavaScript object, and copies the result to the clipboard. This is a variation of <samp>Get Properties List of JS Object</samp>, and this analyses properties reflexively.</p>
	</li>

<!--
	<li>
		<h3>&customScripts.sample12.label;</h3>
		<p>Collapses the element node which the context menu is opened on, or currently focused. Collapsed nodes are uncollapsed with double-click.</p>
	</li>
-->

	<li>
		<h3>Create Download List for Iria</h3>
		<p>Collects whole links in the page and creates a download cue file for Iria.</p>
	</li>

	<li>
		<h3>Uninstall Package</h3>
		<p>Uninstalls the package. This is an exapmle for the library, <a href="http://piro.sakura.ne.jp/xul/lib/src/exUnregisterer.js">exUnregisterer.js</a>.</p>
	</li>

	<li>
		<h3>Resize images automatically (MSIE6 compatible)</h3>
		<p>Fits the size of the image to the window, when Navigator opens images directly and they are larger than the window. To view the image as it's original size, click <samp>Full Size</samp> button.</p>
	</li>

	<li>
		<h3>Add Page to Sidebar</h3>
		<p>Adds the current page or the link to the sidebar as a panel.</p>
	</li>

	<li>
		<h3>Add Page to Sidebar(2)</h3>
		<p>Adds the current page or the link to the sidebar as a panel. Please use this if <samp>Add Page to Sidebar</samp> fails to register new panels.</p>
	</li>

	<li>
		<h3>Custom Scripts Launcher</h3>
		<p>Is an example of combination of custom scripts.</p>
	</li>

	<li>
		<h3>Toggle XUL Cache</h3>
		<p>Is an example to toggle a boolean preference setting.</p>
	</li>

	<li>
		<h3>Remove Duplicated Emtries from installed-chrome.txt</h3>
		<p>Netscape/Mozilla adds duplicated entries to the file, <a href="resource:///chrome/installed-chrome.txt">installed-chrome.txt</a>, if you overwrite new versions with installer packages. This sample script removes duplicated entries and cleans up installed-chrome.txt. This is for idlers like me ;-)</p>
	</li>

	<li>
		<h3>Find and Highlight Links which refers to the inputted site</h3>
		<p>May be useful to find "the real entrance" of pages, links to your website, or others.</p>
	</li>

</ol>





<h2 id="tips">Tips</h2>

<ul>
	<li>You can open properties of userdefined menu items (like <a href="help-features.xml.en#customScripts">Custom Scripts</a>) directly, with middle-click or control-click (in MacIS, command-click) on the menu items in Navigator windows.</li>
	<li>You can rearrange userdefined items (like <a href="help-features.xml.en#customScripts">Custom Scripts</a>) with drag and drop, in their preference panel. And you can delete items with drag and drop to the delete button.</li>
	<li>You can operate userdefined menu items (like <a href="help-features.xml.en#customScripts">Custom Scripts</a>) as new features of the context menu, if you check <samp>Append to the context menu</samp> of items and hide parent submenus from the panel <a href="help-prefs.xml.en#contextmenu">Context Menu</a>.</li>
	<li><a href="#shortexpressions">Short expressions</a> are defined as global variable values or global functions in Navigator windows. You can use them with other XUL applications if this package is installed.</li>
</ul>







<ul id="page-menu" class="footer">
	<li><a href="help.xml.en">Contents</a></li>
	<li><a href="help-installation.xml.en">Installation Notes</a></li>
	<li><a href="help-features.xml.en">Features</a></li>
	<li><a href="help-prefs.xml.en">Preferences</a></li>
	<li>Appendix</li>
</ul>


<address>&copy; 2001-2004 <a href="mailto:piro.outsider.reflex@gmail.com">Piro(SHIMODA Hiroshi)</a>:<a href="http://piro.sakura.ne.jp/">http://piro.sakura.ne.jp/</a></address>

</body>
</html>

