🚫 Mass Block & Unblock
Block or unblock multiple X/Twitter accounts at once.
📋 What It Does
Mass Block
- Takes a list of usernames
- Navigates to each profile
- Opens the three-dot menu → Block → Confirm
- Tracks results (blocked, failed, not found)
Mass Unblock
- Goes to your blocked accounts page
- Clicks unblock on each user
- Confirms the unblock action
- Scrolls to find all blocked users
🌐 Mass Block — Browser Console Script
Steps:
- Go to x.com (any page)
- Edit
CONFIG.usersToBlockwith usernames - Set
CONFIG.dryRun = falseto enable - Open console (F12) and paste
src/massBlock.js
Configuration:
const CONFIG = {
usersToBlock: ['spammer1', 'spammer2'],
actionDelay: 3000,
dryRun: true, // SAFETY: Set to false to actually block
};
🌐 Mass Unblock — Browser Console Script
Steps:
- Go to
x.com/settings/blocked/all - Open console (F12) and paste
src/massUnblock.js
🤖 Block Bots
Automatically detect and block likely bot accounts using heuristics.
File: src/blockBots.js
Steps:
- Go to any followers/following list
- Open console (F12) and paste the script
- Review the detection report
- Set
dryRun = falseto actually block
Detection criteria:
- Default/no profile picture
- High digit-to-letter ratio in username
- No bio
- Zero followers/following
- Generated-looking display names
⚠️ Notes
- Mass blocking navigates between pages — this is expected
- Always use dry-run mode first to review the list
- Bot detection has false positives — review before blocking
- Unblocking from settings page is faster than individual visits
📁 Files
src/massBlock.js— Block multiple users from a listsrc/massUnblock.js— Unblock all blocked userssrc/blockBots.js— Detect and block bot accounts
⚡ Ready to try Mass Block & Unblock?
XActions is 100% free and open-source. No API keys, no fees, no signup.
Browse All Scripts