[source/keys:fix] HN collapseNextComment
This commit is contained in:
parent
675a3b81a9
commit
262e95f95f
|
@ -614,7 +614,7 @@ actions.hn.goParent = () => {
|
|||
|
||||
actions.hn.collapseNextComment = () => {
|
||||
const vis = Array.from(document.querySelectorAll("a.togg"))
|
||||
.filter((e) => e.innerText === "[-]" && util.isElementInViewport(e))
|
||||
.filter((e) => e.innerText === "[–]" && util.isElementInViewport(e))
|
||||
if (vis.length > 0) {
|
||||
vis[0].click()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue