Agent skill
notifications-management
Manages X/Twitter notifications including filtering by type, bulk management, notification scraping, and automated notification handling. Use when users want to manage, filter, scrape, or process X notifications in bulk.
Install this agent skill to your Project
npx add-skill https://github.com/nirholas/XActions/tree/main/skills/notifications-management
Metadata
Additional technical details for this skill
- author
- nichxbt
- version
- 4.0
SKILL.md
Notifications Management
Browser console script for managing and filtering X/Twitter notifications.
Script Selection
| Goal | File | Navigate to |
|---|---|---|
| Filter and manage notifications | src/notificationManager.js |
x.com/notifications |
| Scrape notification data | scripts/scrapeNotifications.js |
x.com/notifications |
| Welcome new followers | src/welcomeNewFollowers.js |
x.com/USERNAME/followers |
Notification Manager
File: src/notificationManager.js
Manages X notifications: filter by type (mentions, likes, reposts, follows, replies), mark as read, and track notification activity.
How to Use
- Navigate to
x.com/notifications - Open DevTools (F12) -> Console
- Paste the script -> Enter
Configuration
const CONFIG = {
filterTypes: ['mentions', 'likes', 'reposts', 'follows'],
markAsRead: true,
scrollToLoadMore: true,
maxNotifications: 200,
actionDelay: 1000,
};
Features
- Filter notifications by type
- Count notifications by category
- Scrape notification content with author and timestamp
- Export notification data as JSON
- Identify most-engaged users from notifications
Notification Scraper
File: scripts/scrapeNotifications.js
Standalone scraper that exports all visible notifications as structured JSON with author, type, content, and timestamp.
DOM Selectors
| Element | Selector |
|---|---|
| Notification cells | [data-testid="notification"] |
| Toggle switch | [data-testid="settingsSwitch"] |
| Notifications tab | a[href="/notifications"] |
| Mentions tab | a[href="/notifications/mentions"] |
| Notification text | [data-testid="notification"] [dir="auto"] |
Strategy Guide
Identifying engagement opportunities
- Run
src/notificationManager.jsto filter for mentions - Identify high-value mentions (verified users, large accounts)
- Prioritize replies to mentions from users with 1000+ followers
- Use
src/engagementLeaderboard.jsto cross-reference top engagers
Automated new follower pipeline
- Run
src/welcomeNewFollowers.jsto detect new followers - Review generated welcome message templates
- Customize messages per follower based on their bio/niche
Notes
- Notifications page loads in batches — script scrolls to collect more
- Rate limit: process with 1-2s delays between actions
- Navigate to the Notifications tab before running
- Mentions tab shows only @mentions for easier filtering
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
articles-longform
Compose, preview, publish, and manage long-form Articles on X/Twitter. Premium+ feature. Includes article creation, formatting, media insertion, and performance tracking. Use when users want to write, publish, manage, or analyze X Articles.
x-pro-management
Navigate to X Pro (TweetDeck), set up monitoring columns, and manage multi-column view. Use when users want to use X Pro / TweetDeck features or set up a multi-column dashboard.
business-ads
Manages X/Twitter business intelligence including brand monitoring, audience insights, competitor analysis, tweet A/B testing, auto-plug replies for promotion, and content performance optimization. Use when users want brand monitoring, audience analysis, competitor comparison, or promotion optimization on X.
engagement-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.
unfollow-management
Mass unfollow on X/Twitter via browser console scripts. Unfollows everyone, only non-followers, non-followers with username logging, smart time-based unfollow with whitelists, and follow/following ratio management. Use when cleaning up a following list, removing non-followers, bulk unfollowing accounts, or optimizing your follow ratio.
follower-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.
Didn't find tool you were looking for?