Skip to content

Instantly share code, notes, and snippets.

@virenratan
Created July 14, 2018 02:52
Show Gist options
  • Save virenratan/53dbbee2adf401c91af8fca45f4e8725 to your computer and use it in GitHub Desktop.
Save virenratan/53dbbee2adf401c91af8fca45f4e8725 to your computer and use it in GitHub Desktop.
Delete twitter content
// 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()
})
@nabilazzh
Copy link

can you renew it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment