forked from AmineB/ycombinator-keys
Compare commits
3 Commits
c1fcffa943
...
da49811d97
Author | SHA1 | Date | |
---|---|---|---|
da49811d97
|
|||
ea50ee325e
|
|||
c5285f2461
|
@ -5,7 +5,7 @@
|
|||||||
// @match *://news.ycombinator.com/*
|
// @match *://news.ycombinator.com/*
|
||||||
// @icon https://gitea.amine-bouabdallaoui.fr/AmineB/ycombinator-keys/raw/branch/main/icons/48.png
|
// @icon https://gitea.amine-bouabdallaoui.fr/AmineB/ycombinator-keys/raw/branch/main/icons/48.png
|
||||||
// @grant none
|
// @grant none
|
||||||
// @version 8
|
// @version 9
|
||||||
// @author AmineB
|
// @author AmineB
|
||||||
// @description Ycombinator keyboard nav.
|
// @description Ycombinator keyboard nav.
|
||||||
// @downloadURL https://gitea.amine-bouabdallaoui.fr/brian6932/ycombinator-keys/raw/branch/main/keyboard-watcher.user.js
|
// @downloadURL https://gitea.amine-bouabdallaoui.fr/brian6932/ycombinator-keys/raw/branch/main/keyboard-watcher.user.js
|
||||||
@ -77,7 +77,7 @@ const
|
|||||||
else
|
else
|
||||||
query[selected].nextSibling.querySelector('a.clicky.hider')?.click()
|
query[selected].nextSibling.querySelector('a.clicky.hider')?.click()
|
||||||
|
|
||||||
if (selected + 1 <= query?.length)
|
if (selected + 1 <= query.length)
|
||||||
highlightSelected()
|
highlightSelected()
|
||||||
return
|
return
|
||||||
case 'c':
|
case 'c':
|
||||||
|
Reference in New Issue
Block a user