Compare commits
1 Commits
bff9258152
...
b8e6306c01
Author | SHA1 | Date | |
---|---|---|---|
b8e6306c01 |
@ -70,10 +70,10 @@ const
|
||||
globalThis.open('https://news.ycombinator.com/item?id=' + query[selected].id)
|
||||
return
|
||||
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
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user