Skip to content

Instantly share code, notes, and snippets.

View victorovento's full-sized avatar
😃
Focusing

Victor Vento victorovento

😃
Focusing
View GitHub Profile
@antlionguard
antlionguard / twitter-remove-retweets.js
Last active March 29, 2024 00:17
With this script, you can remove all retweets you are retweeted on Twitter.
const timer = ms => new Promise(res => setTimeout(res, ms));
// Unretweet normally
const unretweetTweet = async (tweet) => {
await tweet.querySelector('div[data-testid="unretweet"]').click();
await timer(250);
await document.querySelector('div[data-testid="unretweetConfirm"]').click();
console.log('****// Unretweeted Successfully //****')
}