Compare commits

..

2 Commits

Author SHA1 Message Date
901cbff919
Set branch-specific URIs 2025-04-20 00:59:05 -04:00
6e662cf7ff
Rewrite 2025-04-20 00:58:32 -04:00

View File

@ -5,7 +5,7 @@
// @match http*://news.ycombinator.com/* // @match http*://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 5 // @version 4
// @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
@ -71,16 +71,6 @@ const
case 'C': case 'C':
globalThis.open('https://news.ycombinator.com/item?id=' + query[selected].id) globalThis.open('https://news.ycombinator.com/item?id=' + query[selected].id)
return return
case 'r':
if (!isComment())
return
globalThis.open(query[selected].querySelector('.reply a').href, '_self')
return
case 'R':
if (!isComment())
return
globalThis.open(query[selected].querySelector('.reply a').href)
return
case 'u': case 'u':
globalThis.open((isComment() ? query[selected] : query[selected].nextSibling).querySelector('a.hnuser').href, '_self') globalThis.open((isComment() ? query[selected] : query[selected].nextSibling).querySelector('a.hnuser').href, '_self')
return return