Skip to content

Instantly share code, notes, and snippets.

@ianfabs
Created August 25, 2018 20:18
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 ianfabs/a2a2d22597b1a01e10f7b5cffd7b09b7 to your computer and use it in GitHub Desktop.
Save ianfabs/a2a2d22597b1a01e10f7b5cffd7b09b7 to your computer and use it in GitHub Desktop.
Delete all announcements in canvas. Just paste this into the dev console
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
(async()=>{
$("._3H0DcbB").click();
await sleep(1000);
$("#delete_announcements").click();
await sleep(2000);
$("#confirm_delete_announcements").click()
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment