Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.
- Go to: https://twitter.com/{username}/likes
- 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)
This script is for handling the case where tweets appear in your "Likes" list but do not have the red heart symbol (i.e., they appear unliked). It ensures these tweets are properly unliked by first liking them and then unliking them.