[source/keys:fix] HN collapseNextComment

This commit is contained in:
Maddison Hellstrom 2020-05-28 18:31:12 -07:00
parent a455481510
commit 1f9276ab48
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ actions.hn.goParent = () => {
actions.hn.collapseNextComment = () => { actions.hn.collapseNextComment = () => {
const vis = Array.from(document.querySelectorAll("a.togg")) 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) { if (vis.length > 0) {
vis[0].click() vis[0].click()
} }