Skip to content

Instantly share code, notes, and snippets.

@aymericbeaumet
Last active June 29, 2026 02:53
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)
@nmdias

nmdias commented Jun 3, 2026

Copy link
Copy Markdown

Fancy! Thank you ๐Ÿ˜„

I created this:


// Paste this entire code in console on: https://x.com/YOURUSERNAME/likes

(() => {
  console.log('%c๐Ÿš€ Starting Ultimate X Likes Unremover v5 (2026)...', 'color: #1d9bf0; font-size: 18px; font-weight: bold;');
  console.log('%cโœ… Script loaded successfully - ignore the "undefined" below', 'color: #00c060;');
 ...

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