Skip to content

Instantly share code, notes, and snippets.

@barelyhuman
Last active October 7, 2020 00:27
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 barelyhuman/253fca9bb09cdd62167cec7d20d7913a to your computer and use it in GitHub Desktop.
Save barelyhuman/253fca9bb09cdd62167cec7d20d7913a to your computer and use it in GitHub Desktop.
(function () {
document
.querySelectorAll(".btn-link.timeline-comment-action")
.forEach((item) => item.click());
document.querySelectorAll("summary").forEach((item) => {
if (item.innerHTML.indexOf("Delete workflow run") > -1) {
item.click();
}
});
setTimeout(() => {
document.querySelectorAll("button").forEach((item) => {
if (
item.innerHTML.indexOf("Yes, permanently delete this workflow run") > -1
) {
item.click();
}
});
}, 1200);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment