Skip to content

Instantly share code, notes, and snippets.

@antlionguard
Last active January 23, 2023 07:24
Embed
What would you like to do?
With this script, you can remove all likes you are liked on Twitter.
const timer = ms => new Promise(res => setTimeout(res, ms));
setInterval(async () =>
{
const tweetsLikeButtonList = document.querySelectorAll('div[data-testid="unlike"]');
console.log('****// ' + tweetsLikeButtonList.length + 'Like Found! //****')
for (const button of tweetsLikeButtonList) {
button.scrollIntoView();
await button.click();
console.log('****// Unliked //****');
await timer(1250);
}
console.log('****// List Completed //****')
console.log('****// Scrolling //****')
console.log(' ')
console.log(' ')
console.log(' ')
console.log(' ')
console.log(' ')
console.log(' ')
console.log(' ')
console.log(' ')
window.scrollTo(0, document.body.scrollHeight)
}, 60000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment