Skip to content

Instantly share code, notes, and snippets.

@apisurfer
Created December 18, 2022 19:05
remove-twitter-likes
// 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