Compare commits

..

3 Commits

Author SHA1 Message Date
e04ab7aacc Bump ver 2025-05-16 01:04:26 -04:00
87fa270ae4 Set branch-specific URIs 2025-05-16 01:04:10 -04:00
1d291e6003 Rewrite 2025-05-16 01:04:06 -04:00

View File

@ -5,7 +5,7 @@
// @match *://news.ycombinator.com/*
// @icon https://gitea.amine-bouabdallaoui.fr/AmineB/ycombinator-keys/raw/branch/main/icons/48.png
// @grant none
// @version 11
// @version 10
// @author AmineB
// @description Ycombinator keyboard nav.
// @downloadURL https://gitea.amine-bouabdallaoui.fr/brian6932/ycombinator-keys/raw/branch/main/keyboard-watcher.user.js
@ -38,7 +38,8 @@ const
query[selected].lastChild.firstChild.firstChild.focus(focusInvisible)
},
keydown = event => {
if (!input.has(event.target.tagName))
if (input.has(globalThis.document.activeElement.tagName))
return
switch (event.key) {
case 'j':
const lastIndex = query.length - 1