Skip to content

Instantly share code, notes, and snippets.

@epk
Forked from Darep/no-comments.js
Created June 21, 2021 20:56
Show Gist options
  • Save epk/05fc265601d3ab15641c052bc120bc40 to your computer and use it in GitHub Desktop.
Save epk/05fc265601d3ab15641c052bc120bc40 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