Build your personal X/Twitter search library.
A Chrome extension with smart saved searches that auto-update their time ranges. Save, organize, and color-code your advanced X searchesβset it once, use it forever.
x-search-pro-demo-1.0.1.mp4
The Problem: X.com has advanced search (x.com/search-advanced), but it has no memory. Every time you need to monitor brand mentions, track competitors, or find viral content, you rebuild the same complex query from scratch.
The Solution: X Search Pro solves this with smart saved searches that automatically update their time rangesβset it once, use it forever. Build and organize your personal search library with categories, colors, and quick filters.
| Feature | X.com Advanced Search | X Search Pro |
|---|---|---|
| Build complex queries | β | β |
| Save searches | β | β Unlimited |
| Auto-updating time ranges | β | β Sliding windows |
| Categorize | β | β Custom categories |
| Color coding | β | β Visual organization |
| Quick access | β Navigate to /search-advanced |
β Sidebar + popup |
| Templates | β | β 10 pre-loaded |
| Filter your library | β | β Instant search |
| Search counts | β | β Per category |
Bottom line: X.com's advanced search is a tool you use once. X Search Pro is a library you build over time.
- Save unlimited custom searches with descriptive names
- 10 pre-loaded templates to start from (Viral Content, Video Posts, Questions, etc.)
- Never rebuild the same query twice
- Organize searches by topic, project, or purpose
- Create custom categories (e.g., "Brand Monitoring", "Competitors", "Research")
- Filter your library by category
- Assign custom colors to each category
- Visual scanning for instant recognition
- Make your library intuitive and organized
- Quick filter: search your saved queries by name, content, or category
- Track search counts per category
- Edit saved searches without starting over
- Delete outdated searches
- Engagement Filters: Set minimum likes, retweets, and replies
- Smart Time Ranges: Use sliding windows (last 24 hours, last week, last month) that auto-update, or set fixed dates
- User Filters: Search from specific users, mentions, verified accounts, or your network
- Content Type: Filter by media (images, videos), links, replies, retweets, or quotes
- Language Support: Search in specific languages
- Real-time Preview: See your generated query as you build it
- Popup Interface: Full-featured search builder and library accessible via extension icon
- Sidebar on X.com: Quick access to your entire search library with a floating toggle button
- One-Click Apply: Instantly apply any saved search to X/Twitter's search box
- Always Available: Access your library from anywhere on X.com
-
Clone or download this repository
cd ~/Desktop git clone <repository-url> x-search-tabs cd x-search-tabs
-
Open Chrome Extensions page
- Navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top-right corner)
- Navigate to
-
Load the extension
- Click "Load unpacked"
- Select the
x-search-tabsfolder - The extension icon should appear in your toolbar
-
Pin the extension (optional)
- Click the puzzle piece icon in Chrome toolbar
- Find "X Search Pro" and click the pin icon
-
Create your first search:
- Click the X Search Pro extension icon
- Switch to "Search Builder" tab
- Fill in your criteria (keywords, engagement, dates, content type)
- Watch the query preview update in real-time
- Click "Save Search" and give it a name
-
Organize your library:
- Create categories (e.g., "Brand Monitoring", "Competitors")
- Assign colors to categories for visual recognition
- Add more searches as your needs grow
-
Start with templates:
- Switch to "Saved Searches" tab
- Explore 10 pre-loaded templates
- Use them as-is or customize and save your own versions
From X.com Sidebar (Recommended):
- Visit x.com or twitter.com
- Click the blue toggle button on the right edge of the screen
- Browse your organized library in the sidebar
- Click any search to apply it instantly
From Popup:
- Click the extension icon
- Switch to "Saved Searches" tab
- Filter by category or search by name
- Click any saved search to apply it
The extension comes with 10 ready-to-use templates:
- Viral Content - Posts with 100+ likes and 50+ retweets
- Recent & Popular - Posts from last month with 10+ likes
- Video Content - Video posts with 20+ likes
- Questions Only - Posts containing questions
- News Articles - Posts with links
- Your Network - Posts from people you follow (no retweets)
- Verified Only - Posts from verified accounts
- Image Posts - Posts with images
- Trending Today - Today's highly engaged posts
- Quote Tweets - Quote tweets with 5+ likes
- Edit: Click the pencil icon on any saved search to modify criteria without rebuilding
- Delete: Click the trash icon to remove outdated searches
- Filter: Use the search box to instantly find searches by name, query, or category
- Categorize: Assign searches to categories and apply custom colors
- View Counts: See how many searches are in each category
min_faves:N- Minimum likesmin_retweets:N- Minimum retweetsmin_replies:N- Minimum replies
since:YYYY-MM-DD- After dateuntil:YYYY-MM-DD- Before date
from:username- Posts from userto:username- Replies to user@username- Mentions of userfilter:verified- Verified accountsfilter:blue_verified- Blue verifiedfilter:follows- From people you follow
filter:media- Has mediafilter:images- Has imagesfilter:videos- Has videosfilter:links- Has linksfilter:replies/-filter:replies- Include/exclude repliesfilter:retweets/-filter:retweets- Include/exclude retweetsfilter:quote- Quote tweets only
lang:XX- Language code (en, es, fr, de, etc.)
x-search-pro/
βββ manifest.json # Extension configuration
βββ popup/ # Extension popup UI
βββ content/ # Content scripts for X.com
βββ background/ # Service worker
βββ lib/ # Shared utilities (query-builder, storage, templates)
βββ assets/ # Icons and images
βββ tests/ # Playwright E2E and unit tests
- Manifest Version: V3 (latest Chrome extension standard)
- Permissions:
storage,activeTab - Host Permissions:
x.com,twitter.com - Storage: Chrome Storage API (local storage)
- Framework: Vanilla JavaScript (no dependencies)
- Make code changes
- Reload extension at
chrome://extensions/ - Test on x.com or twitter.com
npm install # Install dependencies
npm run test:install # Install Playwright browsers (first time only)
# Run tests
npm test # Unit tests only (fast)
npm run test:e2e # Full E2E tests with X.com integration
npm run test:e2e:headed # E2E tests with browser UI visible
# Code quality
npm run lint # ESLint
npm run typecheck # TypeScript validationTest Requirements:
- Node.js 18+
- Create
.envfile with X.com test credentials (seetests/README.md) - E2E tests require Chrome/Chromium and internet connection
For detailed testing documentation, see tests/README.md.
- Popup: Right-click extension icon β Inspect popup
- Content Script: Open DevTools on x.com (F12) β Check console
- Service Worker:
chrome://extensions/β Click "service worker" link - Tests:
npm run test:e2e:debugfor Playwright inspector
- All data stored locally in your browser
- No external servers or analytics
- No data collection or tracking
- Your search library never leaves your device
For issues, feature requests, or questions, please open an issue in the repository.
MIT License - See LICENSE file for details
Stop rebuilding. Start organizing. Build your X search library today. π