-
-
Save govindrkannan/c5687449c566dd8d3c4823e0ce1133e9 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 hidden or 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