delete your tweets and un-retweet 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
// 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() | |
} |
This doesn't work anymore, I made a new one that works with the current more involved REACT UI:
https://gist.github.com/FocusWho/5a8e74895293eae0071cec612477c72f
// Un retweet
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
for(var i = 1; i < 500; i++){
document.querySelectorAll('[data-testid="unretweet"]')[0].click()
await sleep(1000)
document.querySelectorAll('[data-testid="unretweetConfirm"]')[0].click()
await sleep(1000)
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@nabilazzh I have this code: https://gist.github.com/krrskl/136fe9d2d775b4ac8a26c6fb46d2b4cf