Skip to content

Instantly share code, notes, and snippets.

@MarshalOfficial
Created May 28, 2023 20:24
Show Gist options
  • Save MarshalOfficial/c6a40daae654892f1c9e1c6ecf23c8e5 to your computer and use it in GitHub Desktop.
Save MarshalOfficial/c6a40daae654892f1c9e1c6ecf23c8e5 to your computer and use it in GitHub Desktop.
undo retweets
// 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