Created
December 1, 2023 14:17
-
-
Save ilsubyeega/c4322197514fcd18ca59eb12c7661d74 to your computer and use it in GitHub Desktop.
Undo/Delete every retweet/likes from your account using browser javascript
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
// undo every tweets | |
setInterval(() => { | |
for (const d of document.querySelectorAll('div[data-testid="unretweet"]')) { | |
d.click() | |
} | |
for (const d of document.querySelectorAll('div[data-testid="unretweetConfirm"]')) { | |
d.click() | |
} | |
window.scrollTo(0, document.body.scrollHeight) | |
}, 1000) | |
// undo every likes | |
setInterval(() => { | |
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) { | |
d.click() | |
} | |
window.scrollTo(0, document.body.scrollHeight) | |
}, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment