Skip to content

Instantly share code, notes, and snippets.

@jalbertbowden
Forked from parkr/in-your-console.js
Created July 18, 2020 05:33
Show Gist options
  • Save jalbertbowden/bd64e5df88f19b6b87e5035c33ad47d7 to your computer and use it in GitHub Desktop.
Save jalbertbowden/bd64e5df88f19b6b87e5035c33ad47d7 to your computer and use it in GitHub Desktop.
delete your tweets and un-retweet tweets
// go to https://twitter.com/your-username, and enter the following into the developer console:
for(var i = 1; i < 500; i++){ // just do it a bunch
// Un retweet
document.getElementsByClassName("ProfileTweet-actionButtonUndo")[i].click();
document.getElementsByClassName("js-close")[0].click();
// Delete tweets
document.getElementsByClassName("js-actionDelete")[i].childNodes[1].click();
document.getElementsByClassName("delete-action")[0].click()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment