[source/keys:fix] HN collapseNextComment
This commit is contained in:
parent
a455481510
commit
1f9276ab48
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue