Last active
December 13, 2015 20:59
-
-
Save zemanel/4974451 to your computer and use it in GitHub Desktop.
Check all list items on http://getcloudapp.com for deletion
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
/* | |
* Checks all list items on http://getcloudapp.com upload list, | |
* which is useful for multiple item deletion (AKA nuke the crap of all the uploads) | |
* | |
* License: | |
* José Moreira, in 2013 and beyond, doesn't care what you do with this piece of code. | |
* | |
*/ | |
(function(){ | |
var items = $$('ol#listing input[type="checkbox"]'); | |
if (items.length && items.length >= 0) { | |
// check all items | |
var i; | |
for (i=0; i < items.length; i++) { | |
items[i].click(); | |
} | |
} | |
})(); | |
// #1 click "Delete Selected" | |
// #2 ... | |
// #3 Profit ! | |
// #4 Refresh page or whatever | |
// #5 GOTO 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment