Guest User

Untitled

a guest
Feb 16th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. var intervalId;
  2.  
  3. var clearFunction = function() {
  4. if ($('[aria-label="Delete account"]').size() == 0) {
  5. console.log("interval cleared")
  6. clearInterval(intervalId)
  7. return
  8. }
  9. $('[aria-label="Delete account"]')[0].click();
  10. setTimeout(function () {
  11. $(".md-raised:contains(Delete)").click()
  12. }, 1000);
  13. };
  14.  
  15. intervalId = setInterval(clearFunction, 3000)
Add Comment
Please, Sign In to add comment