Last active
April 17, 2024 23:06
-
-
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.
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
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