From 0e3222c552bb8b8afc33119283b33e324d56d9c0 Mon Sep 17 00:00:00 2001 From: handlerug Date: Sun, 13 Jun 2021 13:57:40 +0700 Subject: [PATCH] Hypha shortcuts [1-9]: First 9 links in the hypha contents --- static/shortcuts.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/shortcuts.js b/static/shortcuts.js index 7cd2de3..e699aa4 100644 --- a/static/shortcuts.js +++ b/static/shortcuts.js @@ -130,5 +130,10 @@ for (let i = 1; i <= headerLinks.length && i < 10; i++) { bindElement(`g ${i}`, headerLinks[i-1], `Header link #${i}`); } + + let hyphaLinks = $$('article .wikilink'); + for (let i = 1; i <= hyphaLinks.length && i < 10; i++) { + bindElement(i.toString(), hyphaLinks[i-1], `Hypha link #${i}`); + } }); })(); \ No newline at end of file