Created
March 8, 2016 23:38
-
-
Save DeskWOW/acddeb10a26805c65f50 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 run(){ | |
var items = $(".ticket_filter_item_non_selectable"); | |
if (items.length == 0){ | |
console.log("ALL DONE!"); | |
return; | |
} | |
var item = items[0]; | |
item.click(); | |
setTimeout(function(){ | |
var link = $("a:contains('Undelete Case')"); | |
if (link.length > 0){ | |
link.click(); | |
} else { | |
$('#tab-tickets-label').click(); | |
$('.tab_closer').click(); | |
} | |
setTimeout(function(){ | |
run(); | |
}, 4000); | |
}, 8000); | |
} | |
run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment