Last active
October 7, 2020 00:27
-
-
Save barelyhuman/253fca9bb09cdd62167cec7d20d7913a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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