Created
June 23, 2013 18:35
-
-
Save jamesallardice/5846008 to your computer and use it in GitHub Desktop.
A set of bookmarklets to deal with annoying "+1" GitHub issue comments
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
// 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