This script allows you to block multiple Twitter (X) accounts automatically. It can be used by pasting the script into the browser console or as a bookmarklet. The list of usernames to block is sourced from this pastebin by user @dmdmsuii.
IMPORTANT: Use this script at your own risk. Blocking accounts in bulk may violate Twitter's Terms of Service or automated behavior policies. The author of this script is not responsible for any consequences resulting from its use, including but not limited to account suspension or termination. Please use responsibly and in accordance with Twitter's guidelines.
- Open https://x.com/settings/blocked/all in your browser.
- Open the browser's developer console (usually F12 or right-click > Inspect > Console).
- Copy the following minified script and paste it into the console: Copy content of this file
- Press Enter to run the script.
- Log in to X(Twitter) with a browser
- Copy the the same file above
- In the same page with X opened, type
javascript:PASTE_FILE_CONTENT_HERE
Contributions are welcome! Please feel free to submit a Pull Request.
- Original gist by Adaline Simonian
- Username list by @dmdmsuii