Cleanup twitter messages


/ Published in: JavaScript
Save to your folder(s)

Paste in your browser console box to fire it


Copy this code and paste it in your HTML
  1. var deleteLoop;
  2. deleteLoop = setInterval(function(){
  3. var deleteButton = $('.js-actionDelete button');
  4. if(deleteButton.length < 1){
  5. clearInterval(deleteLoop);
  6. alert('No more things to delete');
  7. } else {
  8. deleteButton[0].click();
  9. setTimeout(function(){
  10. $('.delete-action').click();
  11. }, 1000);
  12. }
  13. }, 2000);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.