Last active
November 1, 2024 20:25
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() |
Hi, I used the code to delete my twitter likes but it has left a lot of "ghost" likes behind. Anyone know how to resolve this?
// 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
@domibor19 see the other comments