Created
July 14, 2018 02:52
-
-
Save virenratan/53dbbee2adf401c91af8fca45f4e8725 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
can you renew it?