Skip to content

Instantly share code, notes, and snippets.

@listrophy
Created September 22, 2013 02:49
Show Gist options
  • Save listrophy/6656247 to your computer and use it in GitHub Desktop.
Save listrophy/6656247 to your computer and use it in GitHub Desktop.
Shrink +1's on github comments
$('.discussion-bubble').filter(function() {
var body = $(this).find('.comment-body').text().trim();
return body === "+1" ||
body === '' && $(this).find('.comment-body img.emoji[title=":+1:"]').length > 0;
}).each(function() {
$(this).find('.comment-content').remove().end().
find('.comment-header-action-text a').html("+1'ed");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment