Compare commits

..

3 Commits

Author SHA1 Message Date
9a2b786bae Bump ver 2025-05-13 18:15:03 -04:00
d2ec8dbb62 Set branch-specific URIs 2025-05-13 18:14:37 -04:00
40a6265c53 Rewrite 2025-05-13 18:14:04 -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 7
// @version 6
// @author AmineB
// @description Ycombinator keyboard nav.
// @downloadURL https://gitea.amine-bouabdallaoui.fr/brian6932/ycombinator-keys/raw/branch/main/keyboard-watcher.user.js
@ -43,8 +43,6 @@ const
query[selected].style.boxShadow = ''
while (selected < query.length && query[++selected].classList.contains('noshow'));
if (!query[selected].classList.contains('noshow'))
highlightSelected()
return
case 'k':
@ -53,8 +51,6 @@ const
query[selected].style.boxShadow = ''
while (selected >= 0 && query[--selected].classList.contains('noshow'));
if (!query[selected].classList.contains('noshow'))
highlightSelected()
return
case 'h':
@ -66,8 +62,7 @@ const
}
else
query[selected].nextSibling.querySelector('a.clicky.hider')?.click()
if (selected + 1 <= query.length && !query[selected].classList.contains('noshow'))
if (selected + 1 <= query.length)
highlightSelected()
return
case 'c':