Compare commits

..

2 Commits

Author SHA1 Message Date
8f356c210c
Set branch-specific URIs 2025-04-19 02:11:34 -04:00
1ef520db4e
Rewrite 2025-04-19 02:11:33 -04:00

View File

@ -70,10 +70,10 @@ const
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 'u': case 'u':
globalThis.open(globalThis.location.pathname === '/item' ? query[selected].querySelector('a.hnuser').href : query[selected].nextSibling.querySelector('a.hnuser').href, '_self') globalThis.open((globalThis.location.pathname === '/item' ? query[selected] : query[selected].nextSibling).querySelector('a.hnuser').href, '_self')
return return
case 'U': case 'U':
globalThis.open(globalThis.location.pathname === '/item' ? query[selected].querySelector('a.hnuser').href : query[selected].nextSibling.querySelector('a.hnuser').href) globalThis.open((globalThis.location.pathname === '/item' ? query[selected] : query[selected].nextSibling).querySelector('a.hnuser').href)
} }
}, },
listen = () => globalThis.document.addEventListener('keydown', keydown) listen = () => globalThis.document.addEventListener('keydown', keydown)