Skip to content

Instantly share code, notes, and snippets.

@tachyons
Forked from Darep/no-comments.js
Created January 25, 2017 07:39
Show Gist options
  • Save tachyons/046cd25309a9fdfbf849b1ed86c0a031 to your computer and use it in GitHub Desktop.
Save tachyons/046cd25309a9fdfbf849b1ed86c0a031 to your computer and use it in GitHub Desktop.
Remove all comments from GitHub Pull Request
// Sometimes it's necessary to do a bit of clean-up
Array.prototype.forEach.call(document.querySelectorAll('.js-comment-delete button'), function(el, i) {
el.removeAttribute('data-confirm');
el.click();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment