Skip to content

Instantly share code, notes, and snippets.

View rafacampoamor's full-sized avatar

Rafa Campoamor rafacampoamor

View GitHub Profile
@bracca95
bracca95 / delete-tweets.md
Last active November 5, 2025 16:11
delete-tweets.md

Ever wanted to delete all your tweets from X (Twitter) but only found broken/expensive tools? You are in the right place.

  1. Go to: https://x.com/{username}/with_replies
  2. Modify the strings marked as "EDIT"
  3. Open the console and run the following JavaScript code:
var nameToFind = "YOUR TWITTER NAME"; // EDIT
var deleteStr = "Delete"; // EDIT: USE YOUR OWN BROWSER LANGUAGE HERE
@bracca95
bracca95 / delete-retweets-from-twitter.md
Last active November 1, 2025 13:58
delete-retweets-from-twitter.md

Ever wanted to delete all your retweets from X (Twitter) but only found broken/expensive tools? You are in the right place.

  1. Go to: https://x.com/{username}/with_replies
  2. Open the console and run the following JavaScript code:
/* define a function to delete retweets */
async function unRetweet() {
	const unretweetBtns = document.querySelectorAll('button[data-testid="unretweet"]')
	for (const btn of unretweetBtns) {
@bracca95
bracca95 / delete-likes-from-twitter.md
Last active November 1, 2025 13:47 — 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 X (Twitter) but only found broken/expensive tools? You are in the right place.

  1. Go to: https://x.com/{username}/likes
  2. Open the console and run the following JavaScript code:
/* define a function to delete likes */
function unLike() {
	for (const d of document.querySelectorAll('button[data-testid="unlike"]')) {
 d.click();
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active January 16, 2026 03:20
[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()
 }
@johannrichard
johannrichard / homebridge
Last active January 4, 2026 00:16
Systemd Service for homebridge (http://github.com/nfarina/homebridge)
# Defaults / Configuration options for homebridge
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /var/lib/homebridge
# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
# DEBUG=*