1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 16:57:59 +01:00

Sorry, minor feature that's more of a bug fix: Options/commands/mappings in :help now behave as links.

This commit is contained in:
Kris Maglione
2008-12-20 19:59:36 -05:00
parent 2c325d4043
commit 2f0132cabc
6 changed files with 37 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
document.addEventListener("click", function (event) {
let elem = event.target;
if (/^(option|mapping|command)$/.test(elem.className))
elem.setAttribute("href", "chrome://liberator/content/help.xul?" + encodeURIComponent(elem.textContent.replace(/\s.*/, "")));
}, true);