Skip to content

Instantly share code, notes, and snippets.

@MarijnKoesen
Created December 8, 2016 15:26
Show Gist options
  • Save MarijnKoesen/184002a26709acfc35619b2162ac2e16 to your computer and use it in GitHub Desktop.
Save MarijnKoesen/184002a26709acfc35619b2162ac2e16 to your computer and use it in GitHub Desktop.
Github expand all comments and remove the ones with a specific smiley in the reactions
document.querySelectorAll('.show-outdated-button').forEach(function(e) { e.click() });
document.querySelectorAll('.review-comments').forEach(function(e) {
if (e.querySelector('.mr-1')) { // hooray
var comment = e.closest('.js-comment-container');
comment.parentElement.removeChild(comment);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment