Skip to content

Instantly share code, notes, and snippets.

@DeskWOW
Created March 8, 2016 23:38
Show Gist options
  • Save DeskWOW/acddeb10a26805c65f50 to your computer and use it in GitHub Desktop.
Save DeskWOW/acddeb10a26805c65f50 to your computer and use it in GitHub Desktop.
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