Skip to content

Instantly share code, notes, and snippets.

@kevinpiac
Last active January 30, 2018 13:39
Show Gist options
  • Save kevinpiac/6eaf70b3b9a2e0ae9d1e2de0df28b9cb to your computer and use it in GitHub Desktop.
Save kevinpiac/6eaf70b3b9a2e0ae9d1e2de0df28b9cb to your computer and use it in GitHub Desktop.
Supprimer tous les comptes utilisateur depuis l'admin Firebase
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