diff --git a/content/buffer.js b/content/buffer.js index 31cdb564..7203dfef 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -169,14 +169,14 @@ liberator.Buffer = function () //{{{ } ); - liberator.options.add(["showstatuslinks", "ssli"], + liberator.options.add(["showstatuslinks", "ssli"], "Show the destination of the link under the cursor in the status bar", "number", 1, { validator: function (value) { return (value >= 0 && value <= 2); } }); - liberator.options.add(["usermode", "um"], + liberator.options.add(["usermode", "um"], "Show current website with a minimal style sheet to make it easily accessible", "boolean", false, { @@ -189,7 +189,7 @@ liberator.Buffer = function () //{{{ /////////////////////////////////////////////////////////////////////////////{{{ var modes = liberator.config.browserModes || [liberator.modes.NORMAL]; - + liberator.mappings.add(modes, ["i", ""], "Start caret mode", function () @@ -416,7 +416,7 @@ liberator.Buffer = function () //{{{ /////////////////////////////////////////////////////////////////////////////}}} ////////////////////// COMMANDS //////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////{{{ - + liberator.commands.add(["ha[rdcopy]"], "Print current document", function () { getBrowser().contentWindow.print(); }); @@ -433,7 +433,7 @@ liberator.Buffer = function () //{{{ "Save current document to disk", function (args, special) { - var file = liberator.io.getFile(args || ""); + var file = liberator.io.getFile(args || ""); // we always want to save that link relative to the current working directory liberator.options.setPref("browser.download.lastDir", liberator.io.getCurrentDirectory()); //if (args) @@ -451,7 +451,7 @@ liberator.Buffer = function () //{{{ liberator.commands.add(["vie[wsource]"], "View source code of current document", - function (args, special) { liberator.buffer.viewSource(args, special) }); + function (args, special) { liberator.buffer.viewSource(args, special); }); liberator.commands.add(["zo[om]"], "Set zoom value of current web page", @@ -510,7 +510,7 @@ liberator.Buffer = function () //{{{ { window.content.document.pageIsFullyLoaded = value; }, - + // used to keep track of the right field for "gi" get lastInputField() { @@ -589,7 +589,7 @@ liberator.Buffer = function () //{{{ // argument "args" is something like: @id='myid' or @type='text' (don't forget the quotes around myid) getElement: function (args, index) { - return liberator.buffer.evaluateXPath("//*[" + (args || "") + "]").snapshotItem(index || 0) + return liberator.buffer.evaluateXPath("//*[" + (args || "") + "]").snapshotItem(index || 0); }, // artificially "clicks" a link in order to open it @@ -1231,7 +1231,7 @@ liberator.Buffer = function () //{{{ if (window.content.frames.length != 0) { retVal = followFrameRelationship(relationship, window.content); - if (!retVal) + if (!retVal) { // only loop through frames if the main content didnt match for (var i = 0; i < window.content.frames.length; i++) @@ -1251,7 +1251,7 @@ liberator.Buffer = function () //{{{ liberator.beep(); }, - viewSelectionSource: function () + viewSelectionSource: function () { // copied (and tuned somebit) from browser.jar -> nsContextMenu.js var focusedWindow = document.commandDispatcher.focusedWindow; @@ -1405,7 +1405,7 @@ liberator.Marks = function () //{{{ /////////////////////////////////////////////////////////////////////////////}}} ////////////////////// MAPPINGS //////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////{{{ - + var modes = liberator.config.browserModes || [liberator.modes.NORMAL]; liberator.mappings.add(modes, diff --git a/content/hints.js b/content/hints.js index a2cf92b0..a8e7b91f 100644 --- a/content/hints.js +++ b/content/hints.js @@ -338,8 +338,8 @@ liberator.Hints = function () //{{{ case "V": liberator.buffer.viewSource(loc, true); break; case "w": liberator.buffer.followLink(elem, liberator.NEW_WINDOW); break; case "W": liberator.commandline.open(":", "winopen " + loc, liberator.modes.EX); break; - case "y": setTimeout(function () { liberator.util.copyToClipboard(loc, true) }, timeout + 50); break; - case "Y": setTimeout(function () { liberator.util.copyToClipboard(elem.textContent || "", true) }, timeout + 50); break; + case "y": setTimeout(function () { liberator.util.copyToClipboard(loc, true); }, timeout + 50); break; + case "Y": setTimeout(function () { liberator.util.copyToClipboard(elem.textContent || "", true); }, timeout + 50); break; default: liberator.echoerr("INTERNAL ERROR: unknown submode: " + submode); } @@ -384,7 +384,7 @@ liberator.Hints = function () //{{{ function contains(textOfLink) { - for (var i = 0; i < tokens.length; i++) + for (var i = 0; i < tokens.length; i++) { if (textOfLink.indexOf(tokens[i]) < 0) return false; @@ -413,7 +413,7 @@ liberator.Hints = function () //{{{ var wcIdx = 0; // Check if the current word matches same characters as the previous word. - // Each already matched word has matched at least one character. + // Each already matched word has matched at least one character. if (charIdx > numMatchedWords) { var matchingStarted = false; @@ -445,7 +445,7 @@ liberator.Hints = function () //{{{ // the word doesn't match additional characters, now check if the // already matched characters are equal to the next characters for matching, // if yes, then consume them - if (prevCharIdx == charIdx) + if (prevCharIdx == charIdx) { for (var i = 0; i < wcIdx && charIdx < chars.length; i++, charIdx++) { @@ -594,7 +594,7 @@ liberator.Hints = function () //{{{ /////////////////////////////////////////////////////////////////////////////}}} ////////////////////// MAPPINGS //////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////{{{ - + liberator.mappings.add(modes, ["f"], "Start QuickHint mode", function () { liberator.hints.show(liberator.modes.QUICK_HINT); }); diff --git a/content/muttator.js b/content/muttator.js index 148ce52e..c8cd04f7 100644 --- a/content/muttator.js +++ b/content/muttator.js @@ -130,6 +130,6 @@ liberator.config = { }, true);*/ } } -} +}; // vim: set fdm=marker sw=4 ts=4 et: