Skip to content

Instantly share code, notes, and snippets.

@timuric
Last active March 17, 2016 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timuric/79048b99f9ab847922c1 to your computer and use it in GitHub Desktop.
Save timuric/79048b99f9ab847922c1 to your computer and use it in GitHub Desktop.
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