kyle-c
4/12/2018 - 2:47 PM

Misc

var intervalId;

var clearFunction = function() { if ($('[aria-label="Supprimer le compte"]').size() == 0) { console.log("interval cleared") clearInterval(intervalId) return } $('[aria-label="Supprimer le compte"]')[0].click(); setTimeout(function () { $(".md-raised:contains(Supprimer)").click() }, 1000); };

intervalId = setInterval(clearFunction, 3000);