12. Creating webpages
HTML-info
Below are similar instructions for Firefox 2.
In the following, $FIREFOX will denote the directory in which the
configuration files of Firefox are installed (e.g. in Ubuntu this
is /usr/share/firefox).
- In order to make shift-click do "Save As", open the file
$FIREFOX/chrome/browser/content/browser/browser.js
and replace in the function handleLinkClick(event, href, linkNode)
if (event.shiftKey) {
openNewWindowWith(href, docURL, null, false);
event.stopPropagation();
return true;
}
if (event.altKey) {
by
if (event.shiftKey) {
/*
openNewWindowWith(href, docURL, null, false);
event.stopPropagation();
return true;
}
if (event.altKey) {
*/
or simply remove the part between /* and */.
- In order to be able to close Firefox using the "Ctrl+Q" shortcut,
two files must be modified. First open
$FIREFOX/chrome/en-US/locale/browser/browser.dtd
and add the line
<!ENTITY quitApplicationCmd.key "Q">
Secondly open the file
$FIREFOX/chrome/browser/content/browser/browser.xul
and as a child of <commandset id="mainCommandSet">
or wherever you find a tag similar to
<command id="cmd_newNavigator" oncommand="OpenBrowserWindow()"/>
add
<command id="cmd_quitApplication" oncommand="goQuitApplication();"/>
In the same file, as a child of <keyset id="mainKeyset">
or wherever you find a tag similar to
<key id="key_newNavigator" key="&newNavigatorCmd.key" command="cmd_newNavigator" modifiers="accel"/>
add
<key id="key_quit" key="&quitApplicationCmd.key;" command="cmd_quitApplication" modifiers="accel"/>
Still in the same file, replace
<menuitem id="menu_FileQuitItem"
label="&quitApplicationCmd.label;"
accesskey="&quitApplicationCmd.accesskey;"
oncommand="goQuitApplication();"/>
by
<menuitem id="menu_FileQuitItem"
label="&quitApplicationCmd.label;"
accesskey="&quitApplicationCmd.accesskey;"
key="key_quit"
oncommand="goQuitApplication();"/>
Making good webpages
CGI scripting
XSL
DocBook
XML Schema
RDF
[ Top ]