Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var intervalId;
- var clearFunction = function() {
- if ($('[aria-label="Delete account"]').size() == 0) {
- console.log("interval cleared")
- clearInterval(intervalId)
- return
- }
- $('[aria-label="Delete account"]')[0].click();
- setTimeout(function () {
- $(".md-raised:contains(Delete)").click()
- }, 1000);
- };
- intervalId = setInterval(clearFunction, 3000)
Add Comment
Please, Sign In to add comment