From xactions
Exports, organizes, and clears X/Twitter bookmarks via browser console JavaScript: scrape full metadata to JSON/CSV, keyword categorization, bulk removal with filters. Includes Puppeteer module.
npx claudepluginhub nirholas/xactionsThis skill uses the workspace's default tool permissions.
Browser console scripts for managing, organizing, exporting, and clearing X/Twitter bookmarks.
Exports X/Twitter account data including tweets, likes, bookmarks, followers, and following as downloadable JSON using browser console scripts. Triggers official data archive download for full backups.
Syncs, indexes, classifies, and queries X/Twitter bookmarks locally via Field Theory CLI. Enables full-text search, LLM categorization, and AI agent access through shell commands.
Lists, searches, paginates, and exports X (Twitter) bookmarks from a connected account via API. Useful for accessing privately saved tweets; requires XQUIK_API_KEY.
Share bugs, ideas, or general feedback.
Browser console scripts for managing, organizing, exporting, and clearing X/Twitter bookmarks.
| Goal | File | Navigate to |
|---|---|---|
| Export bookmarks (full metadata) | scripts/scrapeBookmarks.js | x.com/i/bookmarks |
| Organize bookmarks by category | src/bookmarkOrganizer.js | x.com/i/bookmarks |
| Clear all bookmarks | src/clearAllBookmarks.js | x.com/i/bookmarks |
| Manage bookmarks (Puppeteer) | src/bookmarkManager.js | x.com/i/bookmarks |
File: scripts/scrapeBookmarks.js
Scrolls through your bookmarks and exports all posts with full metadata: text, author, engagement metrics, media URLs, external links, hashtags, and mentions. Exports as JSON, CSV, or both.
x.com/i/bookmarksMAX_BOOKMARKS: 2000 — maximum to collectFORMAT: 'both' — 'json', 'csv', or 'both'INCLUDE_MEDIA_URLS: true — include image/video URLsINCLUDE_LINKS: true — include external linksEach bookmark includes: tweetId, handle, displayName, verified, text, url, time, likes, retweets, replies, views, images, videos, links, hashtags, mentions.
File: src/bookmarkOrganizer.js
Auto-categorizes bookmarks by keyword matching and exports organized data. Configure categories in CONFIG.categories (default: Tech, News, Crypto, Funny, Business). Unmatched bookmarks go to "Uncategorized." Supports JSON and CSV export.
x.com/i/bookmarks → paste in DevTools → EnterFile: src/clearAllBookmarks.js
Removes all bookmarks. Tries the built-in "Clear All" button first, then falls back to removing bookmarks individually by scrolling and clicking.
x.com/i/bookmarks → paste in DevTools → EnterkeepKeywords: [] — protect bookmarks containing specific wordsdryRun: false — preview removals without deletingexportOnComplete: true — auto-download log of removed bookmarkswindow.XActions.pause() / .resume() / .abort()File: src/bookmarkManager.js
Node.js/Puppeteer module for programmatic bookmark operations.
| Function | Purpose |
|---|---|
getBookmarks(page, { limit, format }) | Export bookmarks as JSON or CSV |
createFolder(page, folderName) | Create bookmark folder (Premium) |
clearAllBookmarks(page) | Remove all bookmarks |
| Element | Selector |
|---|---|
| Bookmark button | [data-testid="bookmark"] |
| Remove bookmark | [data-testid="removeBookmark"] |
| Tweet in bookmarks | article[data-testid="tweet"] |
| Tweet text | [data-testid="tweetText"] |
| Create folder | [data-testid="createBookmarkFolder"] |
| Clear all | [data-testid="clearBookmarks"] |
| Confirm dialog | [data-testid="confirmationSheetConfirm"] |
[data-testid="toast"] with 60s cooldownscripts/scrapeBookmarks.js| Problem | Solution |
|---|---|
| No bookmarks found | Ensure you're on x.com/i/bookmarks, not /i/lists |
| Export missing tweets | Increase MAX_BOOKMARKS or maxBookmarks config |
| Folder creation fails | Bookmark folders require Premium subscription |
| Clear stops midway | Rate limit triggered — script auto-retries after cooldown |