-
-
Save ezy/5ed9b1740642e7ffe74a0d46181b6103 to your computer and use it in GitHub Desktop.
Delete twitter content
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
// delete tweets. | |
[].slice.call(document.getElementsByClassName('js-actionDelete')).map(tweet => { | |
tweet.childNodes[1].click() | |
document.getElementsByClassName('delete-action')[0].click() | |
}) | |
// un-retweet. | |
[].slice.call(document.getElementsByClassName('ProfileTweet-actionButtonUndo')).map(retweet => { | |
retweet.click() | |
document.getElementsByClassName("js-close")[0].click() | |
}) | |
// unlike tweets. | |
[].slice.call(document.getElementsByClassName('ProfileTweet-action--unfavorite')).map(fave => { | |
fave.click() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment