Created
April 16, 2025 08:13
-
-
Save egoist/111f5fe4a435d5fa892b6de8023682b7 to your computer and use it in GitHub Desktop.
remove twitter followers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
go to https://x.com/followers, paste the script, hit enter, refresh and repeat this until all followers are removed