Skip to content

Instantly share code, notes, and snippets.

@pbadeer
Created July 13, 2022 15:00
Show Gist options
  • Save pbadeer/fa67172e468e98a02ba9524e1a41d969 to your computer and use it in GitHub Desktop.
Save pbadeer/fa67172e468e98a02ba9524e1a41d969 to your computer and use it in GitHub Desktop.
Delete (Unlike) All Twitter Likes
// 1. Go to your own profile on Twitter, then go to the "Likes" tab (twitter.com/username/likes)
// 2. Open the Developer tools in your browser (F12 or right click > Inspect Element), then go to the Console tab
// 3. Copy the one line of code below, and paste it into the console.
// 4. Press enter, then wait for it to complete. It will take a while! If it stops before completing, repeat steps 3-4.
setInterval(() => { for (const d of document.querySelectorAll('div[data-testid="unlike"]')) { d.click() } window.scrollTo(0, document.body.scrollHeight) }, 1000)
// Source: https://www.alphr.com/delete-all-twitter-likes/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment