Last active
January 30, 2018 13:39
-
-
Save kevinpiac/6eaf70b3b9a2e0ae9d1e2de0df28b9cb to your computer and use it in GitHub Desktop.
Supprimer tous les comptes utilisateur depuis l'admin Firebase
This file contains 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
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, 1500) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment