Last active
May 17, 2020 02:55
-
-
Save nvictor/c4cdf62423641d4b766c197bc22471bb to your computer and use it in GitHub Desktop.
Collapse all comments on HN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (tag of byClass(document, "togg")) { | |
if (tag.text.slice(0, 2) === "[–") { tag.click(); } | |
if (parseInt(tag.getAttribute("n")) > 5) { tag.style.color = "red"; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment