Skip to content

Instantly share code, notes, and snippets.

View shahin365's full-sized avatar
:octocat:

Shahin shahin365

:octocat:
  • US
  • 08:44 (UTC -04:00)
View GitHub Profile
@antlionguard
antlionguard / twitter-remove-retweets.js
Last active August 15, 2025 23:06
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('[data-testid="unretweet"]').click();
await timer(250);
await document.querySelector('[data-testid="unretweetConfirm"]').click();
console.log('****// Unretweeted Successfully //****')
}
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active August 9, 2025 07:15
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }