Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qmx/54f22cf030598fcf7792f1e7e5d6a876 to your computer and use it in GitHub Desktop.
Save qmx/54f22cf030598fcf7792f1e7e5d6a876 to your computer and use it in GitHub Desktop.
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
  }
  for (const r of document.querySelectorAll('div[data-testid="unretweet"]')) {
    r.click()
    setTimeout(() => {
       for (const rc of document.querySelectorAll('div[data-testid="unretweetConfirm"]')) {
           rc.click()
       }
    }, 500)
  }
  window.scrollTo(0, document.body.scrollHeight)
}, 2000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment