Skip to content

Instantly share code, notes, and snippets.

View brunarafaela's full-sized avatar
🌑
* * ✵ ✺  . ✫   . . ⋆ + *   ˚ ⊹ . ⊹ ✦   · . .    · ✦  

Bruna brunarafaela

🌑
* * ✵ ✺  . ✫   . . ⋆ + *   ˚ ⊹ . ⊹ ✦   · . .    · ✦  
  • São Paulo, Brazil
View GitHub Profile
// Simple javascript code for undoing retweets on twitter.com user profile.
setInterval(
function() {
document.querySelector('[data-testid="unretweet"]').click()
document.querySelector('[data-testid="unretweetConfirm"]').click()
},
500
)
@brunarafaela
brunarafaela / twitter-remove-retweets.js
Created December 21, 2024 01:54 — forked from antlionguard/twitter-remove-retweets.js
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 //****')
}
@brunarafaela
brunarafaela / delete-likes-from-twitter.md
Created September 10, 2022 23:59 — forked from aymericbeaumet/delete-likes-from-twitter.md
[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()
 }