mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 00:38:00 +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"],
|
||||
"XPath or CSS selector strings of hintable elements for extended hint modes",
|
||||
"regexpmap", {
|
||||
// Make sure to update the docs when you change this.
|
||||
"[iI]": "img",
|
||||
"[asOTvVWy]": [":-moz-any-link", "area[href]", "img[src]", "iframe[src]"],
|
||||
"[A]": ["[id]", "a[name]"],
|
||||
@@ -1299,6 +1300,7 @@ var Hints = Module("hints", {
|
||||
|
||||
options.add(["hinttags", "ht"],
|
||||
"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," +
|
||||
"[onclick],[onmouseover],[onmousedown],[onmouseup],[oncommand]," +
|
||||
"[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 ||
|
||||
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);
|
||||
for (let test in values([a, b]))
|
||||
@@ -2020,7 +2020,7 @@ var Buffer = Module("Buffer", {
|
||||
mappings.add([modes.NORMAL], ["[[", "<previous-page>"],
|
||||
"Follow the link labeled 'prev', 'previous' or '<' if it exists",
|
||||
function (args) {
|
||||
buffer.findLink("previous", options["previouspattern"], (args.count || 1) - 1, true);
|
||||
buffer.findLink("prev", options["previouspattern"], (args.count || 1) - 1, true);
|
||||
},
|
||||
{ count: true });
|
||||
|
||||
@@ -2230,6 +2230,7 @@ var Buffer = Module("Buffer", {
|
||||
options.add(["linenumbers", "ln"],
|
||||
"Patterns used to determine line numbers used by G",
|
||||
"sitemap", {
|
||||
// Make sure to update the docs when you change this.
|
||||
"view-source:*": '[id^=line]',
|
||||
"code.google.com": '#nums [id^="nums_table"] a[href^="#"]',
|
||||
"github.com": '.line_numbers>*',
|
||||
|
||||
Reference in New Issue
Block a user