Last active
March 17, 2016 13:36
-
-
Save timuric/79048b99f9ab847922c1 to your computer and use it in GitHub Desktop.
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
var meaninglessWords = ['stunning','nice','amaizing','bro','wow','good job','great job','great','neat','sick','fucking','hah','haha','cool','coool','gorgeous','clean','as always','fantastic','brilliant','bloody','genious','love','freaking','insane','sexy','beautiful',':)','whoa','dope','lovely','like','mate','dang','dude','rad','super','is','so','that','this','i','it','oh']; | |
var isBulshitSentence = x => x.split(" ").filter(x=>!~meaninglessWords.indexOf(x.replace(/\!\.\,/g,"").toLowerCase())).length < 3; | |
[].slice.call(document.querySelectorAll('.comment-body')).forEach(x=>isBulshitSentence(x.innerText) && x.remove()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment