follower-monitoring
Follower Monitoring
Browser console scripts for tracking follower changes on X/Twitter. All scripts use localStorage for persistent snapshot comparison.
Script Selection
| Goal | File | Navigate to |
|---|---|---|
| Detect who unfollowed you | src/detectUnfollowers.js |
x.com/USERNAME/followers |
| Monitor any public account | src/monitorAccount.js |
x.com/TARGET/followers |
| Continuous monitoring + alerts | src/continuousMonitor.js |
x.com/USERNAME/followers |
| New follower tracking + welcome | src/newFollowersAlert.js |
x.com/USERNAME/followers |
| Follower growth over time | src/followerGrowthTracker.js |
x.com/USERNAME/followers |
| Follower demographics | src/audienceDemographics.js |
x.com/USERNAME/followers |
| Audit follower quality | src/auditFollowers.js |
x.com/USERNAME/followers |
| Follow ratio management | src/followRatioManager.js |
x.com/USERNAME |
How They Work
All scripts use the same snapshot-compare pattern:
- First run: Scrapes visible users by scrolling, saves snapshot to localStorage
- Subsequent runs: Scrapes current list, compares against saved snapshot, reports additions/removals
detectUnfollowers.js
Compares follower snapshots. Auto-downloads unfollowers as .txt file. Simple two-run workflow: paste once to baseline, paste again later to detect changes.
monitorAccount.js
Works on ANY public account (not just yours). Tracks both followers and following list changes. Downloads removed accounts list.
continuousMonitor.js
Long-running script with auto-refresh on interval (default: 5 minutes). Sends browser Notification API alerts and plays Web Audio API sounds on changes. Tab must stay open.
newFollowersAlert.js
Tracks new followers with display names. Generates welcome message templates. Also reports unfollowers as secondary output.
followerGrowthTracker.js
Records follower count snapshots over time with timestamps. Calculates daily/weekly/monthly growth rates. Projects future milestones. Visual growth chart in console.
Controls: XActions.track(), XActions.history(), XActions.project(target)
audienceDemographics.js
Scrapes follower profiles and classifies by niche, account size, bot likelihood, and verified status. Visual distribution charts.
followRatioManager.js
Navigate to profile page. Monitors follower/following ratio with letter grades. Generates improvement plans.
Controls: XActions.track(), XActions.plan(), XActions.history()
Storage Keys
| Script | localStorage Key |
|---|---|
| detectUnfollowers | xactions_my_followers |
| monitorAccount | xactions_monitor_{username}_{type} |
| newFollowersAlert | xactions_new_followers |
| followerGrowthTracker | xactions_follower_growth |
| followRatioManager | xactions_ratio_history |
Strategy Guide
Daily monitoring setup
- Open
x.com/USERNAME/followersin a pinned tab - Paste
src/continuousMonitor.js— it auto-refreshes every 5 minutes - Enable browser notifications when prompted
- Check back periodically for alerts
Weekly follower health check
src/followerGrowthTracker.js->XActions.track()to log this weeksrc/followRatioManager.js->XActions.track()for ratio snapshotsrc/auditFollowers.jsto check for new bot followerssrc/audienceDemographics.jsto verify audience quality
Resetting data
localStorage.removeItem('xactions_my_followers')
localStorage.removeItem('xactions_follower_growth')
localStorage.removeItem('xactions_ratio_history')
Notes
- All scripts auto-export results as downloadable JSON
continuousMonitor.jsrequires the tab to stay open (Chrome throttles background timers)- Monitoring accuracy improves with more scroll rounds (increase in CONFIG)
- localStorage persists across browser sessions but NOT across browser profiles
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.
10grok-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.
8content-repurposing
Identifies top-performing tweets and generates repurposed content variations including threads, tweet storms, blog outlines, summary tweets, and quote-tweet templates. Maximizes content ROI through systematic repurposing. Use when maximizing content output, planning a content calendar, or converting between content formats.
8