content-cleanup
Content Cleanup with XActions
Browser console scripts for mass-cleaning your X/Twitter account history.
Available Scripts
| Script | File | Purpose |
|---|---|---|
| Unlike All Posts | src/unlikeAllPosts.js |
Remove all likes from your likes page |
| Clear All Reposts | src/clearAllReposts.js |
Remove all retweets/reposts |
| Clear All Bookmarks | src/clearAllBookmarks.js |
Remove all saved bookmarks |
| Remove Followers | src/removeFollowers.js |
Soft-block to remove specific followers |
Unlike All Posts
File: src/unlikeAllPosts.js
Mass-unlike all posts from your likes page.
How to use
- Navigate to
x.com/YOUR_USERNAME/likes - Open DevTools (F12) → Console
- Paste the script → Enter
Configuration
const CONFIG = {
maxUnlikes: Infinity, // Set a number to limit
minDelay: 800, // Minimum delay between unlikes (ms)
maxDelay: 2000, // Maximum delay
};
Key selector
| Element | Selector |
|---|---|
| Unlike button | [data-testid="unlike"] |
Clear All Reposts
File: src/clearAllReposts.js
Remove all retweets/reposts from your profile.
How to use
- Navigate to
x.com/YOUR_USERNAME - Open DevTools (F12) → Console
- Paste the script → Enter
Key selectors
| Element | Selector |
|---|---|
| Unretweet button | [data-testid="unretweet"] |
| Confirm unretweet | [data-testid="unretweetConfirm"] |
Clear All Bookmarks
File: src/clearAllBookmarks.js
Remove all saved bookmarks. Tries the built-in "Clear All" button first, falls back to individual removal.
How to use
- Navigate to
x.com/i/bookmarks - Open DevTools (F12) → Console
- Paste the script → Enter
Remove Followers
File: src/removeFollowers.js
Remove specific followers without fully blocking them (soft-block technique).
Configuration
const CONFIG = {
usersToRemove: ['username1', 'username2'],
removeAll: false, // Set to true to remove ALL visible followers
maxRemovals: 50,
dryRun: true, // Set to false to actually remove
};
How to use
- Navigate to
x.com/YOUR_USERNAME/followers - Edit the usernames to remove (or set
removeAll: true) - Set
dryRun: false - Open DevTools (F12) → Console
- Paste the script → Enter
Notes
- Unlike/unretweet operations cannot be undone — the original post remains, but your interaction is removed
- Clearing bookmarks is permanent
- Remove followers uses the "Remove this follower" option from the three-dot menu on the followers page
- All scripts include configurable delays to respect rate limits
- Progress is logged every 10 items
More from nirholas/xactions
twitter-scraping
Scrapes X/Twitter data without API access using Puppeteer stealth and browser console scripts. Extracts profiles, followers, following lists, tweets, search results, hashtags, threads, media, bookmarks, notifications, DMs, likes, and viral tweets. Exports to JSON/CSV. Use when collecting, exporting, or analyzing Twitter data.
25direct-messages
Sends, manages, and automates direct messages on X/Twitter. Supports personalized bulk DMs with templates, conversation management, message request filtering, and DM export. The agent uses this skill when a user needs to send DMs, manage conversations, or automate direct messaging workflows.
10growth-automation
Automates X/Twitter growth via browser console scripts. Auto-likes tweets by keyword/user filters, auto-comments on target users, follows by keyword search or engagement, follows audiences of target accounts with rich filtering, trains the algorithm for niches, and runs combined growth suites. All require pasting core.js first. Use when automating Twitter growth, engagement, following, or audience building.
10engagement-interaction
Automates X/Twitter engagement actions — like, unlike, reply, bookmark, hide replies, and auto-like by keyword. Also bulk-unlikes all posts. Use when users want to automate likes, send replies, manage bookmarks on tweets, hide replies, or clear their entire likes history.
10follower-monitoring
Monitors X/Twitter follower changes using browser console scripts. Detects who unfollowed, tracks new followers with welcome messages, monitors any public account, runs continuous monitoring with alerts, tracks follower growth over time, and analyzes follower demographics. Use when tracking follower changes, detecting unfollowers, or monitoring Twitter accounts.
9grok-ai
Integrates with X/Twitter's Grok AI for chat, image generation, tweet analysis, and content creation. Automates Grok prompts, scrapes Grok responses, and uses Grok for content strategy. Requires X Premium+. Use when users want to use Grok AI for content generation, analysis, or chat automation on X.
8