Skip to content

Instantly share code, notes, and snippets.

@egoist
Created April 16, 2025 08:13
Show Gist options
  • Save egoist/111f5fe4a435d5fa892b6de8023682b7 to your computer and use it in GitHub Desktop.
Save egoist/111f5fe4a435d5fa892b6de8023682b7 to your computer and use it in GitHub Desktop.
remove twitter followers
var els = document.querySelectorAll('[data-testid="primaryColumn"] button[aria-haspopup="menu"]')
var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
for (const el of els) {
el.click()
await sleep(20)
var btn = document.querySelector('[data-testid="removeFollower"]')
btn.click()
await sleep(20)
var btn = document.querySelector('[data-testid="confirmationSheetConfirm"]')
btn.click()
await sleep(20)
}
@egoist
Copy link
Author

egoist commented Apr 16, 2025

go to https://x.com/followers, paste the script, hit enter, refresh and repeat this until all followers are removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment