forked from AmineB/ycombinator-keys
Compare commits
3 Commits
da49811d97
...
c1fcffa943
| Author | SHA1 | Date | |
|---|---|---|---|
|
c1fcffa943
|
|||
|
f7bd78189a
|
|||
|
ffc97281ad
|
@@ -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 9
|
// @version 8
|
||||||
// @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