Skip to content

Instantly share code, notes, and snippets.

@jamesallardice
Created June 23, 2013 18:35
Show Gist options
  • Save jamesallardice/5846008 to your computer and use it in GitHub Desktop.
Save jamesallardice/5846008 to your computer and use it in GitHub Desktop.
A set of bookmarklets to deal with annoying "+1" GitHub issue comments
// Just hide them all
$(".comment-body").each(function (e) {
if($(this).text().trim() === "+1") {
$(this).closest(".discussion-bubble").hide();
}
});
// Hide them all and show a count of them next to the "participants" list
$(".pull-participation").append("<p class='quickstat' style='float:right'><b>" + $(".comment-body").filter(function (e) {
return $(this).text().trim() === "+1";
}).closest(".discussion-bubble").hide().length + "</b> '+1' comments</p>");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment