Skip to content

Instantly share code, notes, and snippets.

@schafeld
Created March 20, 2021 16:59
Show Gist options
  • Save schafeld/f3ecccef59be019025e054e4d27bab97 to your computer and use it in GitHub Desktop.
Save schafeld/f3ecccef59be019025e054e4d27bab97 to your computer and use it in GitHub Desktop.
Bulk delete Twitter likes

How to delete many Twitter Likes at a time

Simply go in your (Chrome) browser to the Likes-page, e.g. https://twitter.com/{your user handle}/likesand open the DevTools console (CMD OPT i on a Mac). Paste the following code into the console:

document.querySelectorAll("[data-testid='unlike']").forEach( el => el.click() );

This will click all heart icons on that page, in effect unliking all visible Likes. Scroll down and repeat as many times as needed.

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