mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 04:07:59 +01:00
Add comments, because comments are cool.
This commit is contained in:
@@ -1275,6 +1275,7 @@ var Hints = Module("hints", {
|
|||||||
options.add(["extendedhinttags", "eht"],
|
options.add(["extendedhinttags", "eht"],
|
||||||
"XPath or CSS selector strings of hintable elements for extended hint modes",
|
"XPath or CSS selector strings of hintable elements for extended hint modes",
|
||||||
"regexpmap", {
|
"regexpmap", {
|
||||||
|
// Make sure to update the docs when you change this.
|
||||||
"[iI]": "img",
|
"[iI]": "img",
|
||||||
"[asOTvVWy]": [":-moz-any-link", "area[href]", "img[src]", "iframe[src]"],
|
"[asOTvVWy]": [":-moz-any-link", "area[href]", "img[src]", "iframe[src]"],
|
||||||
"[A]": ["[id]", "a[name]"],
|
"[A]": ["[id]", "a[name]"],
|
||||||
@@ -1299,6 +1300,7 @@ var Hints = Module("hints", {
|
|||||||
|
|
||||||
options.add(["hinttags", "ht"],
|
options.add(["hinttags", "ht"],
|
||||||
"XPath or CSS selector strings of hintable elements for Hints mode",
|
"XPath or CSS selector strings of hintable elements for Hints mode",
|
||||||
|
// Make sure to update the docs when you change this.
|
||||||
"stringlist", ":-moz-any-link,area,button,iframe,input:not([type=hidden]),select,textarea," +
|
"stringlist", ":-moz-any-link,area,button,iframe,input:not([type=hidden]),select,textarea," +
|
||||||
"[onclick],[onmouseover],[onmousedown],[onmouseup],[oncommand]," +
|
"[onclick],[onmouseover],[onmousedown],[onmouseup],[oncommand]," +
|
||||||
"[tabindex],[role=link],[role=button],[contenteditable=true]",
|
"[tabindex],[role=link],[role=button],[contenteditable=true]",
|
||||||
|
|||||||
@@ -394,7 +394,7 @@ var Buffer = Module("Buffer", {
|
|||||||
|
|
||||||
function a(regexp, elem) regexp.test(elem.textContent) === regexp.result ||
|
function a(regexp, elem) regexp.test(elem.textContent) === regexp.result ||
|
||||||
Array.some(elem.childNodes, function (child) regexp.test(child.alt) === regexp.result);
|
Array.some(elem.childNodes, function (child) regexp.test(child.alt) === regexp.result);
|
||||||
function b(regexp, elem) regexp.test(elem.title);
|
function b(regexp, elem) regexp.test(elem.title) === regexp.result;
|
||||||
|
|
||||||
let res = Array.filter(frame.document.querySelectorAll(selector), Hints.isVisible);
|
let res = Array.filter(frame.document.querySelectorAll(selector), Hints.isVisible);
|
||||||
for (let test in values([a, b]))
|
for (let test in values([a, b]))
|
||||||
@@ -2020,7 +2020,7 @@ var Buffer = Module("Buffer", {
|
|||||||
mappings.add([modes.NORMAL], ["[[", "<previous-page>"],
|
mappings.add([modes.NORMAL], ["[[", "<previous-page>"],
|
||||||
"Follow the link labeled 'prev', 'previous' or '<' if it exists",
|
"Follow the link labeled 'prev', 'previous' or '<' if it exists",
|
||||||
function (args) {
|
function (args) {
|
||||||
buffer.findLink("previous", options["previouspattern"], (args.count || 1) - 1, true);
|
buffer.findLink("prev", options["previouspattern"], (args.count || 1) - 1, true);
|
||||||
},
|
},
|
||||||
{ count: true });
|
{ count: true });
|
||||||
|
|
||||||
@@ -2230,6 +2230,7 @@ var Buffer = Module("Buffer", {
|
|||||||
options.add(["linenumbers", "ln"],
|
options.add(["linenumbers", "ln"],
|
||||||
"Patterns used to determine line numbers used by G",
|
"Patterns used to determine line numbers used by G",
|
||||||
"sitemap", {
|
"sitemap", {
|
||||||
|
// Make sure to update the docs when you change this.
|
||||||
"view-source:*": '[id^=line]',
|
"view-source:*": '[id^=line]',
|
||||||
"code.google.com": '#nums [id^="nums_table"] a[href^="#"]',
|
"code.google.com": '#nums [id^="nums_table"] a[href^="#"]',
|
||||||
"github.com": '.line_numbers>*',
|
"github.com": '.line_numbers>*',
|
||||||
|
|||||||
Reference in New Issue
Block a user