1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 23:58:00 +01:00

whitespace fixes

This commit is contained in:
Doug Kearns
2008-06-02 18:11:47 +00:00
parent e49aed94df
commit 973f3e5ca3
15 changed files with 87 additions and 87 deletions

View File

@@ -110,7 +110,7 @@ liberator.Bookmarks = function () //{{{
/////////////////////////////////////////////////////////////////////////////{{{
var modes = liberator.config.browserModes || [liberator.modes.NORMAL];
liberator.mappings.add(modes, ["a"],
"Open a prompt to bookmark the current URL",
function ()
@@ -484,8 +484,8 @@ liberator.History = function () //{{{
////////////////////// PRIVATE SECTION /////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
const historyService = Components.classes["@mozilla.org/browser/nav-history-service;1"]
.getService(Components.interfaces.nsINavHistoryService);
const historyService = Components.classes["@mozilla.org/browser/nav-history-service;1"]
.getService(Components.interfaces.nsINavHistoryService);
var history = null;
@@ -807,7 +807,7 @@ liberator.QuickMarks = function () //{{{
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// COMMANDS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
liberator.commands.add(["delqm[arks]"],
"Delete the specified QuickMarks",
function (args, special)

View File

@@ -233,7 +233,7 @@ liberator.Buffer = function () //{{{
liberator.mappings.add(modes, ["gg", "<Home>"],
"Goto the top of the document",
function (count) { liberator.buffer.scrollToPercentile(count > 0 ? count : 0); },
function (count) { liberator.buffer.scrollToPercentile(count > 0 ? count : 0); },
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["G", "<End>"],
@@ -671,7 +671,7 @@ liberator.Buffer = function () //{{{
saveLink: function (elem, skipPrompt)
{
var doc = elem.ownerDocument;
var url = makeURLAbsolute(elem.baseURI, elem.href);
var url = makeURLAbsolute(elem.baseURI, elem.href);
var text = elem.textContent;
try
@@ -1084,7 +1084,7 @@ liberator.Buffer = function () //{{{
}
pageGeneral.push(["Mime-Type", content.document.contentType]);
pageGeneral.push(["Encoding", content.document.characterSet]);
pageGeneral.push(["Encoding", content.document.characterSet]);
pageGeneral.push(["Compatibility", content.document.compatMode == "BackCompat" ? "Quirks Mode" : "Full/Almost Standards Mode"]);
if (lastModVerbose)
pageGeneral.push(["Last Modified", lastModVerbose]);

View File

@@ -203,7 +203,7 @@ liberator.Completion = function () //{{{
queryURI = engine.getSubmission(query, responseType).uri.asciiSpec;
else
return;
var xhr = new XMLHttpRequest();
xhr.open("GET", queryURI, false);
xhr.send(null);
@@ -216,7 +216,7 @@ liberator.Completion = function () //{{{
completions.push([(matches ? matches[1] : "") + item, name + " suggestion"]);
});
});
return [0, completions];
},
@@ -362,14 +362,14 @@ liberator.Completion = function () //{{{
return [0, buildLongestStartingSubstring(completions, filter)];
},
mail: function (filter)
mail: function (filter)
{
var completions = [];
var folders = liberator.mail.getFolders();
for (var folder in folders)
for (var folder in folders)
{
completions.push([folders[folder].server.prettyName + ": "
+ folders[folder].name,
completions.push([folders[folder].server.prettyName + ": "
+ folders[folder].name,
"Unread: " + folders[folder].getNumUnread(false)]);
}
if (!filter)
@@ -431,7 +431,7 @@ liberator.Completion = function () //{{{
else
optionCompletions.push([[prefArray[i]], liberator.options.getPref(prefArray[i])]);
}
if (!filter)
return [0, optionCompletions];

View File

@@ -184,7 +184,7 @@ liberator.Editor = function () //{{{
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// OPTIONS /////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
liberator.options.add(["editor"],
"Set the external text editor",
"string", "gvim -f");
@@ -443,7 +443,7 @@ liberator.Editor = function () //{{{
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// COMMANDS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
addAbbreviationCommands("", "");
addAbbreviationCommands("i", "insert");
addAbbreviationCommands("c", "command line");
@@ -503,7 +503,7 @@ liberator.Editor = function () //{{{
var tempStr1 = elt.value.substring(0, rangeStart);
var tempStr2 = liberator.util.readFromClipboard();
var tempStr3 = elt.value.substring(rangeEnd);
elt.value = tempStr1 + tempStr2 + tempStr3;
elt.value = tempStr1 + tempStr2 + tempStr3;
elt.selectionStart = rangeStart + tempStr2.length;
elt.selectionEnd = elt.selectionStart;
}
@@ -1012,7 +1012,7 @@ liberator.Editor = function () //{{{
return true;
}
}
else // two abbrev's exists ( 'i' or 'c' (filter as well))
else // two abbrev's exists ( 'i' or 'c' (filter as well))
{
if (abbrev[lhs][0][0] == "c" && filter == "c")
abbrev[lhs][0] = abbrev[lhs][1];

View File

@@ -38,7 +38,7 @@ liberator.AutoCommands = function () //{{{
{
for (var item in autoCommands)
for (var i = 0; i < autoCommands[item].length; i++)
yield item + " " + autoCommands[item][i][0] + " " + autoCommands[item][i][1];
yield item + " " + autoCommands[item][i][0] + " " + autoCommands[item][i][1];
throw StopIteration;
}
@@ -48,19 +48,19 @@ liberator.AutoCommands = function () //{{{
liberator.commands.add(["au[tocmd]"],
"Execute commands automatically on events",
function (args, special)
{
function (args, special)
{
if (!args)
{
if (special) // :au!
liberator.autocommands.remove(null, null);
else // :au
liberator.autocommands.list(null, null);
}
}
else
{
// (?: ) means don't store; (....)? <-> exclamation marks makes the group optional
var [all, asterix, auEvent, regex, cmds] = args.match(/^(\*)?(?:\s+)?(\S+)(?:\s+)?(\S+)?(?:\s+)?(.+)?$/);
var [all, asterix, auEvent, regex, cmds] = args.match(/^(\*)?(?:\s+)?(\S+)(?:\s+)?(\S+)?(?:\s+)?(.+)?$/);
if (cmds)
{
@@ -238,17 +238,17 @@ liberator.Events = function () //{{{
var tabcontainer = getBrowser().mTabContainer;
if (tabcontainer) // not every VIM-like extension has a tab container
{
tabcontainer.addEventListener("TabMove", function (event)
tabcontainer.addEventListener("TabMove", function (event)
{
liberator.statusline.updateTabCount();
liberator.buffer.updateBufferList();
}, false);
tabcontainer.addEventListener("TabOpen", function (event)
tabcontainer.addEventListener("TabOpen", function (event)
{
liberator.statusline.updateTabCount();
liberator.buffer.updateBufferList();
}, false);
tabcontainer.addEventListener("TabClose", function (event)
tabcontainer.addEventListener("TabClose", function (event)
{
liberator.statusline.updateTabCount();
liberator.buffer.updateBufferList();
@@ -546,7 +546,7 @@ liberator.Events = function () //{{{
liberator.mappings.add([liberator.modes.NORMAL, liberator.modes.VISUAL, liberator.modes.CARET, liberator.modes.INSERT, liberator.modes.TEXTAREA],
["<S-Tab>"], "Rewind keyboard focus",
function () { document.commandDispatcher.rewindFocus(); });
liberator.mappings.add(liberator.modes.all,
["<C-q>"], "Temporarily ignore all " + liberator.config.name + " key bindings",
function () { liberator.modes.passAllKeys = true; });
@@ -578,7 +578,7 @@ liberator.Events = function () //{{{
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// COMMANDS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
liberator.commands.add(["delmac[ros]"],
"Delete macros",
function (arg)
@@ -596,7 +596,7 @@ liberator.Events = function () //{{{
var str = "<table>";
var macroRef = liberator.events.getMacros(arg);
for (var item in macroRef)
str += "<tr><td> " + item + " &nbsp; </td><td>" +
str += "<tr><td> " + item + " &nbsp; </td><td>" +
liberator.util.escapeHTML(macroRef[item]) + "</td></tr>";
str += "</table>";
@@ -689,7 +689,7 @@ liberator.Events = function () //{{{
if (macros[lastMacro])
{
liberator.modes.isReplaying = true;
// make sure the page is stopped before starting to play the macro
try
{
@@ -804,7 +804,7 @@ liberator.Events = function () //{{{
{
if (!waitForPageLoaded())
return;
// else // a short break between keys often helps
// else // a short break between keys often helps
// liberator.sleep(50);
}
}
@@ -1197,7 +1197,7 @@ liberator.Events = function () //{{{
// return true, with the effect that it also gets to there (for
// whatever reason). if that happens to be correct, well..
// XXX: why not just do that as well for HINTS mode actually?
if (liberator.mode == liberator.modes.CUSTOM)
return true;
@@ -1209,7 +1209,7 @@ liberator.Events = function () //{{{
else
map = liberator.mappings.get(liberator.mode, candidateCommand);
// counts must be at the start of a complete mapping (10j -> go 10 lines down)
if (/^[1-9][0-9]*$/.test(liberator.input.buffer + key))
{

View File

@@ -44,7 +44,7 @@ liberator.IO = function () //{{{
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// COMMANDS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
liberator.commands.add(["cd", "chd[ir]"],
"Change the current directory",
function (args)
@@ -135,7 +135,7 @@ liberator.IO = function () //{{{
liberator.io.writeFile(file, line);
});
liberator.commands.add(["so[urce]"],
"Read Ex commands from a file",
function (args, special)
@@ -477,7 +477,7 @@ lookup:
var extensions = environmentService.get("PATHEXT").split(";");
for (let j = 0; j < extensions.length; j++)
{
path = dirs[i] + "\\" + program + extensions[j];
path = dirs[i] + "\\" + program + extensions[j];
file.initWithPath(path);
if (file.exists())
break lookup;

View File

@@ -87,14 +87,14 @@ const liberator = (function () //{{{
},
});
liberator.options.add(["verbose", "vbs"],
liberator.options.add(["verbose", "vbs"],
"Define which type of messages are logged",
"number", 0,
{
validator: function (value) { return (value >= 0 && value <= 9); }
});
liberator.options.add(["visualbell", "vb"],
liberator.options.add(["visualbell", "vb"],
"Use visual bell instead of beeping on errors",
"boolean", false,
{
@@ -438,7 +438,7 @@ const liberator = (function () //{{{
triggerCallback: function (type, mode, data)
{
// dump("type: " + type + " mode: " + mode + "data: " + data + "\n");
// dump("type: " + type + " mode: " + mode + "data: " + data + "\n");
for (var i in callbacks)
{
var [thistype, thismode, thisfunc] = callbacks[i];
@@ -698,7 +698,7 @@ const liberator = (function () //{{{
else if (!where || !liberator.has("tabs"))
where = liberator.CURRENT_TAB;
var url = typeof urls[0] == "string" ? urls[0] : urls[0][0];
var url = typeof urls[0] == "string" ? urls[0] : urls[0][0];
var postdata = typeof urls[0] == "string" ? null : urls[0][1];
var whichwindow = window;
@@ -738,7 +738,7 @@ const liberator = (function () //{{{
// all other URLs are always loaded in background
for (var i = 1; i < urls.length; i++)
{
url = typeof urls[i] == "string" ? urls[i] : urls[i][0];
url = typeof urls[i] == "string" ? urls[i] : urls[i][0];
postdata = typeof urls[i] == "string" ? null : urls[i][1];
whichwindow.getBrowser().addTab(url, null, null, postdata);
}
@@ -843,7 +843,7 @@ const liberator = (function () //{{{
// namespace for plugins/scripts. Actually (only) the active plugin must/can set a
// v.plugins.mode = <str> string to show on v.modes.CUSTOM
// v.plugins.stop = <func> hooked on a v.modes.reset()
// v.plugins.stop = <func> hooked on a v.modes.reset()
// v.plugins.onEvent = <func> function triggered, on keypresses (unless <esc>) (see events.js)
liberator.plugins = {};

View File

@@ -119,12 +119,12 @@ liberator.Mail = function () //{{{
if (copy)
{
MsgCopyMessage(folders[0].URI);
setTimeout(function () { liberator.echo(count + " message(s) copied to " + folders[0].prettyName); }, 100);
setTimeout(function () { liberator.echo(count + " message(s) copied to " + folders[0].prettyName); }, 100);
}
else
{
MsgMoveMessage(folders[0].URI);
setTimeout(function () { liberator.echo(count + " message(s) moved to " + folders[0].prettyName); }, 100);
setTimeout(function () { liberator.echo(count + " message(s) moved to " + folders[0].prettyName); }, 100);
}
return true;
}
@@ -145,7 +145,7 @@ liberator.Mail = function () //{{{
return parent;
}
function selectUnreadFolder(backwards, count)
function selectUnreadFolder(backwards, count)
{
count = (count > 0 ) ? count : 1;
var direction = backwards ? -1 : 1;
@@ -153,19 +153,19 @@ liberator.Mail = function () //{{{
var c = tree.currentIndex;
var i = direction;
var folder;
while (count > 0 && (c + i) < tree.view.rowCount && (c + i) >= 0)
while (count > 0 && (c + i) < tree.view.rowCount && (c + i) >= 0)
{
var resource = GetFolderResource(tree, (c + i)).QueryInterface(Components.interfaces.nsIMsgFolder);
if (!resource.isServer && resource.getNumUnread(false))
if (!resource.isServer && resource.getNumUnread(false))
{
count -= 1;
folder = i;
count -= 1;
folder = i;
}
i += direction;
}
if (!folder || count > 0)
if (!folder || count > 0)
liberator.beep();
else
else
tree.view.selection.timedSelect(c + folder, tree._selectDelay);
}
@@ -258,7 +258,7 @@ liberator.Mail = function () //{{{
"Select next message, including closed threads",
function (count) { liberator.mail.selectMessage(function (msg) { return true; }, false, true, false, count); },
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["J", "<Tab>"],
"Select next unread message",
function (count) { liberator.mail.selectMessage(function (msg) { return !msg.isRead; }, true, true, false, count); },
@@ -273,7 +273,7 @@ liberator.Mail = function () //{{{
"Select previous message",
function (count) { liberator.mail.selectMessage(function (msg) { return true; }, false, true, true, count); },
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["K"],
"Select previous unread message",
function (count) { liberator.mail.selectMessage(function (msg) { return !msg.isRead; }, true, true, true, count); },
@@ -304,7 +304,7 @@ liberator.Mail = function () //{{{
catch (e) { liberator.beep(); }
},
{ flags: liberator.Mappings.flags.COUNT });
// SENDING MESSAGES
liberator.mappings.add(modes, ["m"],
@@ -313,8 +313,8 @@ liberator.Mail = function () //{{{
liberator.mappings.add(modes, ["M"],
"Compose a new message to the sender of selected mail",
function ()
{
function ()
{
try
{
var to = escapeRecipient(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor);
@@ -360,7 +360,7 @@ liberator.Mail = function () //{{{
liberator.mappings.add(modes, ["u"],
"Undo",
function ()
{
{
if (messenger.canUndo())
messenger.undo(msgWindow);
else
@@ -369,7 +369,7 @@ liberator.Mail = function () //{{{
liberator.mappings.add(modes, ["<C-r>"],
"Redo",
function ()
{
{
if (messenger.canRedo())
messenger.redo(msgWindow);
else
@@ -455,7 +455,7 @@ liberator.Mail = function () //{{{
"Go to next mailbox with unread messages",
function (count)
{
selectUnreadFolder(false, count)
selectUnreadFolder(false, count)
},
{ flags: liberator.Mappings.flags.COUNT });
@@ -479,7 +479,7 @@ liberator.Mail = function () //{{{
"Go to previous mailbox with unread messages",
function (count)
{
selectUnreadFolder(true, count)
selectUnreadFolder(true, count)
},
{ flags: liberator.Mappings.flags.COUNT });
@@ -692,7 +692,7 @@ liberator.Mail = function () //{{{
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// PUBLIC SECTION //////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
return {
get currentAccount() { return this.currentFolder.rootFolder; },
@@ -710,7 +710,7 @@ liberator.Mail = function () //{{{
params.composeFields = Components.classes["@mozilla.org/messengercompose/composefields;1"]
.createInstance(Components.interfaces.nsIMsgCompFields);
if (args)
if (args)
{
if (args.originalMsg)
params.originalMsgURI = args.originalMsg;
@@ -727,9 +727,9 @@ liberator.Mail = function () //{{{
if (args.body)
params.composeFields.body = args.body;
if (args.attachments)
if (args.attachments)
{
while (args.attachments.length > 0)
while (args.attachments.length > 0)
{
var url = args.attachments.pop();
@@ -738,7 +738,7 @@ liberator.Mail = function () //{{{
.createInstance(Components.interfaces.nsILocalFile);
file.initWithPath(url);
if (!file.exists())
if (!file.exists())
{
liberator.echoerr("Exxx: Could attach file `" + url + "'", liberator.commandline.FORCE_SINGLELINE);
continue;
@@ -747,10 +747,10 @@ liberator.Mail = function () //{{{
.createInstance(Components.interfaces.nsIMsgAttachment);
attachment.url = "file://" + url;
params.composeFields.addAttachment(attachment);
}
}
}
}
params.type = Components.interfaces.nsIMsgCompType.New
var msgComposeService = Components.classes["@mozilla.org/messengercompose;1"].getService();
@@ -879,7 +879,7 @@ liberator.Mail = function () //{{{
var thread = gDBView.db.GetThreadContainingMsgHdr(msg);
var originalCount = count;
for (let j = (i == gDBView.selection.currentIndex && !reverse) ? 1 : (reverse ? thread.numChildren - 1 : 0);
for (let j = (i == gDBView.selection.currentIndex && !reverse) ? 1 : (reverse ? thread.numChildren - 1 : 0);
reverse ? (j >= 0) : (j < thread.numChildren);
reverse ? j-- : j++)
{

View File

@@ -335,7 +335,7 @@ liberator.Mappings = function () //{{{
return matches;
},
// returns whether the user added a custom user map
// returns whether the user added a custom user map
hasMap: function (mode, cmd)
{
return user[mode].some(function (map) { return map.hasName(cmd); });
@@ -403,13 +403,13 @@ liberator.Mappings = function () //{{{
var modeSign = "";
for (var i = 0; i < modes.length; i++)
{
if (modes[i] == liberator.modes.NORMAL)
if (modes[i] == liberator.modes.NORMAL)
modeSign += "n";
if ((modes[i] == liberator.modes.INSERT || modes[i] == liberator.modes.TEXTAREA) && modeSign.indexOf("i") == -1)
if ((modes[i] == liberator.modes.INSERT || modes[i] == liberator.modes.TEXTAREA) && modeSign.indexOf("i") == -1)
modeSign += "i";
if (modes[i] == liberator.modes.COMMAND_LINE)
if (modes[i] == liberator.modes.COMMAND_LINE)
modeSign += "c";
if (modes[i] == liberator.modes.MESSAGRE)
if (modes[i] == liberator.modes.MESSAGRE)
modeSign += "m";
}
@@ -423,7 +423,7 @@ liberator.Mappings = function () //{{{
list += "<tr>";
list += "<td> " + modeSign + " " + liberator.util.escapeHTML(maps[i].names[j]) + "</td>";
if (maps[i].rhs)
list += "<td> "+ (maps[i].noremap ? "*" : " ") + "</td>"
list += "<td> "+ (maps[i].noremap ? "*" : " ") + "</td>"
+ "<td>" + liberator.util.escapeHTML(maps[i].rhs) + "</td>";
list += "</tr>";
}

View File

@@ -164,7 +164,7 @@ liberator.modes = (function () //{{{
CARET: 1 << 5, // text cursor is visible
TEXTAREA: 1 << 6, // text cursor is in a HTMLTextAreaElement
MESSAGE: 1 << 7, // for now only used in Muttator when the message has focus
COMPOSE: 1 << 8,
COMPOSE: 1 << 8,
CUSTOM: 1 << 9,
// extended modes, can include multiple modes, and even main modes
EX: 1 << 10,
@@ -204,7 +204,7 @@ liberator.modes = (function () //{{{
if (main == liberator.modes.COMMAND_LINE)
return;
liberator.commandline.echo(getModeMessage(), liberator.commandline.HL_MODEMSG,
liberator.commandline.echo(getModeMessage(), liberator.commandline.HL_MODEMSG,
liberator.commandline.DISALLOW_MULTILINE);
},
@@ -251,7 +251,7 @@ liberator.modes = (function () //{{{
//if (window.wintype == "msgcompose")
if (liberator.config.isComposeWindow)
this.set(liberator.modes.COMPOSE, liberator.modes.NONE, silent);
else
else
this.set(liberator.modes.NORMAL, liberator.modes.NONE, silent);
},

View File

@@ -297,7 +297,7 @@ liberator.Options = function () //{{{
{
if (special) // open firefox settings gui dialog
{
liberator.open("about:config",
liberator.open("about:config",
(liberator.options.newtab &&
(liberator.options.newtab == "all" || liberator.options.newtab.split(",").indexOf("prefs") != -1)) ?
liberator.NEW_TAB : liberator.CURRENT_TAB);

View File

@@ -101,7 +101,7 @@ liberator.Tabs = function () //{{{
////////////////////// OPTIONS /////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
liberator.options.add(["showtabline", "stal"],
liberator.options.add(["showtabline", "stal"],
"Control when to show the tab bar of opened web pages",
"number", liberator.config.name == "Vimperator" ? 2 : 0,
{

View File

@@ -308,11 +308,11 @@ liberator.CommandLine = function () //{{{
}
});
liberator.options.add(["showmode", "smd"],
liberator.options.add(["showmode", "smd"],
"Show the current mode in the command line",
"boolean", true);
liberator.options.add(["wildmode", "wim"],
liberator.options.add(["wildmode", "wim"],
"Define how command line completion works",
"stringlist", "list:full",
{
@@ -322,7 +322,7 @@ liberator.CommandLine = function () //{{{
}
});
liberator.options.add(["wildoptions", "wop"],
liberator.options.add(["wildoptions", "wop"],
"Change how command line completion is done",
"stringlist", "",
{
@@ -334,7 +334,7 @@ liberator.CommandLine = function () //{{{
/////////////////////////////////////////////////////////////////////////////{{{
var modes = [liberator.modes.COMMAND_LINE];
liberator.mappings.add(modes,
["<Space>"], "Expand command line abbreviation",
function () { return liberator.editor.expandAbbreviation("c"); },
@@ -347,7 +347,7 @@ liberator.CommandLine = function () //{{{
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// COMMANDS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
liberator.commands.add(["ec[ho]"],
"Display a string at the bottom of the window",
function (args)

View File

@@ -257,7 +257,7 @@ liberator.util = { //{{{
trans.addDataFlavor("text/unicode");
if (clipboard.supportsSelectionClipboard())
clipboard.getData(trans, clipboard.kSelectionClipboard);
else
else
clipboard.getData(trans, clipboard.kGlobalClipboard);
var data = {};

View File

@@ -36,7 +36,7 @@ liberator.config = { //{{{
guioptions: { m: ["toolbar-menubar"], T: ["nav-bar"], b: ["PersonalToolbar"] },
dialogs: [
["about", "About Firefox",
["about", "About Firefox",
function () { openDialog("chrome://browser/content/aboutDialog.xul", "_blank", "chrome,dialog,modal,centerscreen"); }],
["addbookmark", "Add bookmark for the current page",
function () { PlacesCommandHook.bookmarkCurrentPage(true, PlacesUtils.bookmarksRootId); }],
@@ -114,7 +114,7 @@ liberator.config = { //{{{
////////////////////////////////////////////////////////////////////////////////
////////////////////// MAPPINGS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
liberator.mappings.add([liberator.modes.NORMAL],
["y"], "Yank current location to the clipboard",
function () { liberator.util.copyToClipboard(liberator.buffer.URL, true); });