Created
December 18, 2022 19:05
remove-twitter-likes
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. open profile -> likes page | |
// 2. paste the following code to console and keep the tab open. | |
// 15000(15s) number means every 15 seconds the script will cleanup likes from the current more or less :D | |
// tweak the number if you stumble upon API rate limits(HTTP 429) | |
setInterval(() => { | |
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) { | |
d.click() | |
} | |
window.scrollTo(0, document.body.scrollHeight) | |
}, 15000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment