mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 15:02:26 +01:00
whitespace fixes
This commit is contained in:
@@ -487,7 +487,7 @@ liberator.Bookmarks = function () //{{{
|
|||||||
url: item[0],
|
url: item[0],
|
||||||
title: item[1],
|
title: item[1],
|
||||||
extra: [['keyword', item[2], 'red'],
|
extra: [['keyword', item[2], 'red'],
|
||||||
['tags', item[3].join(', '), 'blue']].filter(function(i) i[1])
|
['tags', item[3].join(', '), 'blue']].filter(function (i) i[1])
|
||||||
} for each (item in items)));
|
} for each (item in items)));
|
||||||
liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
|
liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -911,7 +911,7 @@ liberator.Buffer = function () //{{{
|
|||||||
elem.focus();
|
elem.focus();
|
||||||
|
|
||||||
var evt = doc.createEvent("MouseEvents");
|
var evt = doc.createEvent("MouseEvents");
|
||||||
["mousedown", "mouseup", "click"].forEach(function(event)
|
["mousedown", "mouseup", "click"].forEach(function (event)
|
||||||
{
|
{
|
||||||
evt.initMouseEvent(event, true, true, view, 1, offsetX, offsetY, 0, 0,
|
evt.initMouseEvent(event, true, true, view, 1, offsetX, offsetY, 0, 0,
|
||||||
ctrlKey, /*altKey*/0, shiftKey, /*metaKey*/ ctrlKey, 0, null);
|
ctrlKey, /*altKey*/0, shiftKey, /*metaKey*/ ctrlKey, 0, null);
|
||||||
@@ -1186,7 +1186,7 @@ liberator.Buffer = function () //{{{
|
|||||||
|
|
||||||
// put feeds rss into pageFeeds[]
|
// put feeds rss into pageFeeds[]
|
||||||
var linkNodes = doc.getElementsByTagName("link");
|
var linkNodes = doc.getElementsByTagName("link");
|
||||||
Array.forEach(linkNodes, function(link) {
|
Array.forEach(linkNodes, function (link) {
|
||||||
if (!link.href)
|
if (!link.href)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -1269,8 +1269,8 @@ liberator.Buffer = function () //{{{
|
|||||||
let nodes = [];
|
let nodes = [];
|
||||||
let i = 0;
|
let i = 0;
|
||||||
|
|
||||||
nodes = Array.map(metaNodes, function(node) [node.name || node.httpEquiv, node.content]);
|
nodes = Array.map(metaNodes, function (node) [node.name || node.httpEquiv, node.content]);
|
||||||
nodes.sort(function(a, b) String.localeCompare(a[0].toLowerCase(), b[0].toLowerCase()));
|
nodes.sort(function (a, b) String.localeCompare(a[0].toLowerCase(), b[0].toLowerCase()));
|
||||||
|
|
||||||
pageMeta = [[node[0], liberator.util.highlightURL(node[1], false)]
|
pageMeta = [[node[0], liberator.util.highlightURL(node[1], false)]
|
||||||
for each (node in nodes)];
|
for each (node in nodes)];
|
||||||
|
|||||||
Reference in New Issue
Block a user