From xactions
Edits existing tweets or undoes recent posts on X/Twitter via browser console JavaScript. Requires X Premium; use for correcting posts or 30-second undo window.
npx claudepluginhub nirholas/xactionsThis skill uses the workspace's default tool permissions.
Browser console script for editing existing posts or undoing a recently posted tweet.
Automates X/Twitter content posting: threads, schedules, polls, auto-reposts by keyword, thread composition with preview, quote-tweets, repurposing, and viral tweet plugs via browser console scripts. Use for content automation and scheduling.
Posts text, images, videos, and long-form Markdown articles to X (Twitter) using real Chrome with CDP to bypass anti-bot detection.
Posts text, images, videos, and long-form Markdown articles to X (Twitter) using real Chrome with CDP to bypass anti-bot detection. Activates on post to X, tweet, or share requests.
Share bugs, ideas, or general feedback.
Browser console script for editing existing posts or undoing a recently posted tweet.
⚠️ X Premium required — Post editing and undo are Premium-only features.
| Goal | File | Navigate to |
|---|---|---|
| Edit an existing post | src/editPost.js | x.com |
| Undo a post within 30 seconds of posting | src/editPost.js | x.com |
x.commode: 'edit', postUrl, and newText in CONFIGsrc/editPost.js → Entermode: 'undo' in CONFIGsrc/editPost.js → Enterconst CONFIG = {
mode: 'edit', // 'edit' or 'undo'
// Edit mode:
postUrl: 'https://x.com/nichxbt/status/123456789', // Post to edit
newText: 'Updated tweet content here', // New text
// Timing:
minDelay: 1000,
maxDelay: 2000,
navigationDelay: 3000, // Wait for page/modal to load
};
| Element | Selector |
|---|---|
| Post options (⋯) | [data-testid="caret"] |
| Edit tweet option | [data-testid="editTweet"] |
| Tweet textarea | [data-testid="tweetTextarea_0"] |
| Submit button | [data-testid="tweetButton"] |
| Undo banner | [data-testid="undoTweet"] |
postUrl is set