Skip to content

Instantly share code, notes, and snippets.

@samrayner
Created May 2, 2022 10:24
Show Gist options
  • Save samrayner/e527d1bdae08477b5e649f6296fe4bd9 to your computer and use it in GitHub Desktop.
Save samrayner/e527d1bdae08477b5e649f6296fe4bd9 to your computer and use it in GitHub Desktop.
Delete Github Comments
Array.prototype.forEach.call(document.querySelectorAll('.timeline-comment-action'), function(el, i) {
el.click();
});
Array.prototype.forEach.call(document.querySelectorAll('button[aria-label="Delete comment"]'), 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