Created
December 8, 2016 15:26
-
-
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
This file contains hidden or 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
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