Skip to content

Instantly share code, notes, and snippets.

@aymericbeaumet
Last active January 29, 2026 15:35
Show Gist options
  • Select an option

  • Save aymericbeaumet/d1d6799a1b765c3c8bc0b675b1a1547d to your computer and use it in GitHub Desktop.

Select an option

Save aymericbeaumet/d1d6799a1b765c3c8bc0b675b1a1547d 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()
  }
  window.scrollTo(0, document.body.scrollHeight)
}, 1000)
@jcoding09
Copy link

As of now Likes section of other users is not visible, is it possible to create a extension which can enable likes category of other users?

@Scoubi-7
Copy link

Scoubi-7 commented Jan 27, 2026

I want to delete my old likes.
Usually when I wanted my old likes appear, I force the update by scrolling down the page and the codes above work fine for me.
But since yesterday, the old likes no longer appear with these method (even with the @hamzah1P16 code)
I tried with Brave, google and with the application.
I have over 2800 likes but they are invisible
Do you have a solution?

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