Skip to content

Instantly share code, notes, and snippets.

@RandomArray
Created July 25, 2016 19:50
Show Gist options
  • Select an option

  • Save RandomArray/c212d60bd77f2e6d6d3a7c8cb424fefe to your computer and use it in GitHub Desktop.

Select an option

Save RandomArray/c212d60bd77f2e6d6d3a7c8cb424fefe to your computer and use it in GitHub Desktop.
A quick script to run from the JavaScript console. Archives/clears the all tweets in UCM - Ultimate Client Manager, waits 3 seconds and reloads the current page. This is to avoid clicking on each individual `Archive` button.
function clearAllTweets(){
$('.socialtwitter_message_action').each(function(i) {
$(this).click();
$(this).remove();
});
}
var xx;
xx = setInterval(function(){
if($('.socialtwitter_message_action').length<=0){
clearInterval(xx);
setTimeout(function(){
$('.current').click();
},3000);
}
},1000);
clearAllTweets();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment