Skip to content

Instantly share code, notes, and snippets.

@sarahhodne
Last active August 29, 2015 13:59
Show Gist options
  • Save sarahhodne/10987177 to your computer and use it in GitHub Desktop.
Save sarahhodne/10987177 to your computer and use it in GitHub Desktop.
Hide +1 comments with dotjs
$(".comment-form-textarea")
.filter(function (index) {
var re = /\+1/;
return re.test($(this).val()) && $(this).val().length < 10;
)
.parents(".timeline-comment-wrapper")
.hide();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment