Created
January 1, 2014 12:05
-
-
Save hemanth/8207407 to your computer and use it in GitHub Desktop.
Filter out all the comments in a reddit post with less than 500 upvotes
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
votes = document.getElementsByClassName("score unvoted") | |
$.each(votes, function(i,l) { | |
var karma = parseInt(list.textContent); | |
if (karma < 500) { | |
list.parentElement.parentElement.style.cssText="display:none;" | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment