Skip to content

Instantly share code, notes, and snippets.

@adriendumont
Forked from Darep/no-comments.js
Created December 11, 2017 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adriendumont/1d9d41098769183241d75a391859ee6a to your computer and use it in GitHub Desktop.
Save adriendumont/1d9d41098769183241d75a391859ee6a 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