Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save aliosmanyuksel/ee750f4b0203055fd932a446237bb2e3 to your computer and use it in GitHub Desktop.

Select an option

Save aliosmanyuksel/ee750f4b0203055fd932a446237bb2e3 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 button of document.querySelectorAll(
    'button[data-testid="unlike"], button[aria-label*="Liked"]'
  )) {
    button.click();
  }
  window.scrollTo(0, document.body.scrollHeight);
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment