Last active
December 21, 2015 06:58
-
-
Save gregorkas/6267453 to your computer and use it in GitHub Desktop.
A bookmarklet for removing posts from Hacker News that contain the words: "in Go".
This file contains hidden or 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
javascript:var as=document.getElementsByTagName("a");for(var idx in as){var ihtml=as[idx].innerHTML;if(ihtml&&ihtml.indexOf("in Go")!=-1){var parent=as[idx].parentNode.parentNode.parentNode;var toRemove=as[idx].parentNode.parentNode;var sibling=as[idx].parentNode.parentNode.nextSibling;parent.removeChild(toRemove);parent.removeChild(sibling)}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment