Created
March 8, 2018 21:23
-
-
Save nathansmith/ec6c6bca3ebc4e2067034056d0108989 to your computer and use it in GitHub Desktop.
This will chew through all the pages within Cloud App's web interface, and delete all files.
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
// Run in console. | |
(function ($) { | |
var checkbox = $('#select-all-drops') | |
var select = $('#actions-select').find('select') | |
var button = $('#choose-action') | |
function f () { | |
if (!checkbox.is(':checked')) { | |
checkbox.click() | |
} | |
if (select.val() !== 'delete') { | |
select.val('delete') | |
} | |
button.click() | |
} | |
setInterval(f, 5000) | |
})(jQuery) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment