Skip to content

Instantly share code, notes, and snippets.

@ashander
Last active December 7, 2022 01:37
Show Gist options
  • Star 61 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • Save ashander/087ee26731c7eb68abc063fd299b8ba8 to your computer and use it in GitHub Desktop.
Save ashander/087ee26731c7eb68abc063fd299b8ba8 to your computer and use it in GitHub Desktop.
Delete all your favorites (unfavorite or unlike every tweet) on twitter.com (thx to @JamieMason and @b44rd for inspiring this)
// 1. Go to https://twitter.com/i/likes
// 2. Keep scrolling to the bottom repeatedly until all your favs are loaded.
// 3. Run this in your console (open in chrome by View > Developer > JavaScript Console)
// Notes: this may take a while if you have a lot of favs/likes
// you can only access your most recent ~2000 likes.
// inspired by https://gist.github.com/JamieMason/7580315
$('.ProfileTweet-actionButtonUndo').click()
@Devendrachauhan
Copy link

// The below js code remove the likes on twitter

setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.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