Skip to content

Instantly share code, notes, and snippets.

@wylie39
Created October 29, 2020 13:51
Show Gist options
  • Save wylie39/03727a61880bca25b4b8d41557545760 to your computer and use it in GitHub Desktop.
Save wylie39/03727a61880bca25b4b8d41557545760 to your computer and use it in GitHub Desktop.
Remove all users firebase auth put in chrome console
var intervalId;
var clearFunction = function() {
var size = $('[aria-label="Delete account"]').size()
if (size == 0) {
console.log("interval cleared")
clearInterval(intervalId)
return
}
var index = Math.floor(Math.random() * size)
$('[aria-label="Delete account"]')[index].click();
setTimeout(function () {
$(".md-raised:contains(Delete)").click()
}, 1000);
};
intervalId = setInterval(clearFunction, 300)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment