Skip to content

Instantly share code, notes, and snippets.

@nathansmith
Created March 8, 2018 21:23
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 nathansmith/ec6c6bca3ebc4e2067034056d0108989 to your computer and use it in GitHub Desktop.
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.
// 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