Ever wanted to delete all your retweets from Twitter but only found broken/expensive tools? You are in the right place.
- Go to: https://twitter.com/{username}/with_replies
- Open the console and run the following JavaScript code:
/* define a function to delete retweets */
function unRetweet() {
for (const d of document.querySelectorAll('div[data-testid="unretweet"]')) {
d.click();
document.querySelectorAll('div[data-testid="unretweetConfirm"]')[0].click();
}
// scroll window by 500 lines
window.scrollBy(0, 500);
}
/* call it every 5000 ms (can be changed) */
var myProc = setInterval(unRetweet, 5000)
- When the bottom is reached, type:
/* stop the process */
clearInterval(myProc)
- Don't forget to checkout how to remove likes and tweets!
Thanks, it works like a charm.