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
)
@emnsen
emnsen / clean-tweets.js
Last active August 3, 2024 00:40
Clean your tweets without app
javascript: (function() {
function deleteTweet() {
var tweet = document.querySelector('[data-testid="tweet"]');
var caret = tweet.querySelector('[data-testid="caret"]');
caret.click();
var deleteItem = document.querySelector('[role="menuitem"]');
if (!deleteItem) {
return;
}
if (deleteItem.textContent !== "Delete") {
@antlionguard
antlionguard / twitter-remove-retweets.js
Last active April 7, 2025 11:19
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 //****')
}
@brunolemos
brunolemos / linkedin-unfollow-everyone.js
Last active December 23, 2024 12:51
Unfollow everyone on Linkedin
(() => {
let count = 0;
function getAllButtons() {
return document.querySelectorAll('button.is-following') || [];
}
async function unfollowAll() {
const buttons = getAllButtons();
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active April 14, 2025 05:39
[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()
 }