Created
July 25, 2016 19:50
-
-
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.
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 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