Skip to content

Instantly share code, notes, and snippets.

@antlionguard
Last active April 17, 2024 23:06
Show Gist options
  • Save antlionguard/6feea732cfd1ee9fe7f79c7b41d59830 to your computer and use it in GitHub Desktop.
Save antlionguard/6feea732cfd1ee9fe7f79c7b41d59830 to your computer and use it in GitHub Desktop.
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