Twitter/X Bulk Unfollow Inactive Accounts
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
This userscript helps you clean up your Twitter/X following list by identifying and bulk-unfollowing inactive accounts. It scans Twitter/X following pages, follower lists, or profile pages for user accounts and their activity indicators—last tweet date, tweet frequency, and account age. It displays a list of accounts with checkboxes and allows you to select multiple accounts to unfollow if they appear inactive. It shows the number of tweets, last tweet date, and account age, filters by inactivity threshold (e.g., no tweets in 7, 14, 30, 60, or 90 days), and maintains a list of already unfollowed accounts to avoid duplicates. It exports the list of selected accounts and provides a confirmation step before taking action. The script simulates the unfollow action by generating a list of accounts to unfollow.
WHERE IT RUNS
The script works on Twitter/X following pages, follower lists, and profile pages. It runs entirely within your browser, reading only the visible content of the current page. It does not track your browsing history, access other tabs, or send any data externally. All account data and unfollow history are stored locally.
HOW TO USE
After installation, open the panel by clicking the tool's icon in the BotGentz sidebar. Select your inactivity threshold (7, 14, 30, 60, or 90 days). Click "Scan for accounts" to extract accounts from the current page. The panel displays a list of accounts with checkboxes, showing display name, username, tweet count, days since last tweet, and account age. Select the accounts you want to unfollow—use "Select All" to choose all. Click "Unfollow Selected (Track)" to mark them as unfollowed and add them to your history. Click "Export Selected" to download a text file with the selected usernames. Use "Clear History" to reset the unfollow history.
THE TECHNICAL MECHANISM
This script uses DOM traversal and text pattern matching to extract account information from Twitter/X pages. It scans for user cell elements using selectors like [data-testid="UserCell"], [data-testid="UserAvatar"], and class-based selectors. For each account, it extracts the username using regex for @handle patterns, display name from text content, tweet count using patterns like "X Tweets", and last tweet date using date parsing with multiple formats (named months, numeric dates, and "X days ago" patterns). Account age is extracted from "joined" date patterns. The script calculates days since last tweet, compares it to the threshold, and filters accounts accordingly. The store history in GM_setValue prevents duplicate tracking. All operations are client-side and do not send any data externally.
THE PANEL
The panel is draggable anywhere on the screen and remembers its position between sessions. It can be collapsed to a small floating bubble to minimize distraction, and expanded again with a single click. The panel's width can be adjusted, and pressing the Escape key closes it instantly. All settings—inactivity threshold, unfollow history, and auto-scan preference—are persisted locally using GM_setValue, so your data remains intact across page reloads and browser restarts.
PLEASE NOTE
This userscript requires the free BotGentz extension to function. The script extracts accounts from page text—it may not capture all accounts correctly. The script helps you track which accounts you've unfollowed—it does not actually unfollow accounts. The extraction relies on the current structure of Twitter/X—if the platform updates its UI, the script may need to be updated. The script does not access your Twitter/X account or API; it only reads what is visible on the page. No data from your browsing is stored or transmitted anywhere—all processing occurs entirely in your browser.