Created
May 28, 2023 20:24
-
-
Save MarshalOfficial/c6a40daae654892f1c9e1c6ecf23c8e5 to your computer and use it in GitHub Desktop.
undo retweets
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
// Un retweet | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
for(var i = 1; i < 500; i++){ | |
document.querySelectorAll('[data-testid="unretweet"]')[0].click() | |
await sleep(1000) | |
document.querySelectorAll('[data-testid="unretweetConfirm"]')[0].click() | |
await sleep(1000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment