Last active
August 29, 2015 14:13
-
-
Save banterability/0ac52fdde9deb9c41282 to your computer and use it in GitHub Desktop.
A terrible js loop to run in console to delete all your tweets
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
// Run from twitter.com/<yourusername> | |
// this will (duh) delete all your tweets. don't be dumb. | |
var deleteLoop; | |
deleteLoop = setInterval(function(){ | |
var deleteButton = $('.js-actionDelete button'); | |
if(deleteButton.length < 1){ | |
clearInterval(deleteLoop); | |
alert('No more things to delete'); | |
} else { | |
deleteButton[0].click(); | |
setTimeout(function(){ | |
$('.delete-action').click(); | |
}, 500); | |
} | |
}, 1200); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment