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
| // Unfollow all on x.com (working as of 10/2025). Run in dev console on /following page. May break / need to run a few times, janky. | |
| (async function unfollowAll({ | |
| clickDelay = 700, // ms between individual clicks | |
| scrollDelay = 1200, // ms to wait after scrolling to load items | |
| max = 0 // 0 = unlimited, set >0 to stop after that many unfollows | |
| } = {}) { | |
| const sleep = ms => new Promise(res => setTimeout(res, ms)); | |
| // selector targets buttons that look like the "Following" buttons in the new HTML |
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
| // Working as of 10/2025. Just go to profile page -> run in dev console. Deletes all retweets and tweets you made. May break / need to run a few times, janky but works. | |
| // Run on profile page in dev console. Fix: avoid clicking anchors — only click button / role="button" elements. | |
| (async function deleteAndUndoRetweets_safe({ | |
| actionDelay = 700, | |
| scrollDelay = 1200, | |
| maxScrolls = 800, | |
| menuWait = 1200 | |
| } = {}) { | |
| const sleep = ms => new Promise(r => setTimeout(r, ms)); |