Skip to content

Instantly share code, notes, and snippets.

@bradleypriest
Created March 16, 2017 05:07
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 bradleypriest/96442a2a6dbeac9e43bcd6cb3940e681 to your computer and use it in GitHub Desktop.
Save bradleypriest/96442a2a6dbeac9e43bcd6cb3940e681 to your computer and use it in GitHub Desktop.
Remove expired Hound comments from a Github PR
window.$ = require('jquery');
window.oldconfirm = window.confirm;
window.confirm = () => true
$('.delete-button:hidden').each((idx, item) => {
if ($(item).parents('.edit-comment-hide').find('strong a[href="/houndci-bot"]').length) {
$(item).click();
}
});
window.confirm = window.oldconfirm;
delete window.oldconfirm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment