Skip to content

Instantly share code, notes, and snippets.

@Eleeleth
Created November 4, 2014 14:27
Show Gist options
  • Save Eleeleth/43d2f6fb0cbc8a62c61a to your computer and use it in GitHub Desktop.
Save Eleeleth/43d2f6fb0cbc8a62c61a to your computer and use it in GitHub Desktop.
//bookmarklet:
javascript:(function(e){var t=e(".comment"),n=t.find(".md > p");n.each(function(t){if(/^not\s+\w.+but/ig.test(e(this).text())){e(this).parentsUntil(".comment").parent().hide()}})})($)
//un minified:
(function ($) {
var c = $('.comment'), t = c.find('.md > p');
t.each(function (index) {
if (/^not\s+\w.+but/ig.test($(this).text())) {
$(this).parentsUntil('.comment').parent().hide();
}
});
})($);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment