post-editing
Skill648 starsChanged 9 months agoApache-2.0View on GitHub
Edit existing posts or undo a recently posted tweet on X/Twitter. Post editing and undo are X Premium features. Use when users want to edit a tweet they already posted or undo a tweet within the 30-second window.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- python/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- python/CLAUDE.mdCLAUDE.md
- xspace-agents/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- llms-full.txtllms.txt
- llms.txtllms.txt
- python/llms-full.txtllms.txt
- python/llms.txtllms.txt
- a2a-multi-agentSkill
- account-backupSkill
- account-toolsSkill
- algorithm-cultivationSkill
- analytics-insightsSkill
- articles-longformSkill
- billing-managementSkill
- blocking-muting-managementSkill
- bookmarks-managementSkill
- business-adsSkill
- community-health-monitoringSkill
- community-managementSkill
- community-notesSkill
- competitor-intelligenceSkill
- content-cleanupSkill
- content-postingSkill
- content-repurposingSkill
- creator-monetizationSkill
- crm-managementSkill
- delegate-accessSkill
- direct-messagesSkill
- discovery-exploreSkill
- engagement-interactionSkill
- follower-monitoringSkill
- graph-analysisSkill
- grok-aiSkill
- growth-automationSkill
- lead-generationSkill
- lists-managementSkill
- media-studioSkill
- notifications-managementSkill
- premium-subscriptionsSkill
- profile-managementSkill
- reputation-auditSkill
- saved-searchesSkill
- settings-privacySkill
- spaces-liveSkill
- teams-managementSkill
- timeline-viewingSkill
- topic-managementSkill
- twitter-scrapingSkill
- unfollow-managementSkill
- video-downloadingSkill
- viral-thread-generationSkill
- webhooksSkill
- x402-paymentsSkill
- xactions-cliSkill
- xactions-mcp-serverSkill
- x-pro-managementSkill
The file
Files
Post Editing & Undo
Browser console script for editing existing posts or undoing a recently posted tweet.
⚠️ X Premium required — Post editing and undo are Premium-only features.
Script Selection
| 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 |
Quick Start
Edit a post
- Go to
x.com - Open DevTools (F12) → Console
- Set
mode: 'edit',postUrl, andnewTextin CONFIG - Paste
src/editPost.js→ Enter
Undo a post (must run within 30 seconds of posting)
- Post your tweet
- Immediately open DevTools (F12) → Console
- Set
mode: 'undo'in CONFIG - Paste
src/editPost.js→ Enter
Configuration
const 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
};Selectors Used
| 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"] |
Notes
- Edit window: X allows unlimited edits on Premium (unlike Bluesky's 5-minute limit)
- Undo window: The undo banner only appears for ~30 seconds after posting
- Edit history is publicly visible — a small edit badge appears on edited posts
- Script navigates to the post URL automatically when
postUrlis set
Related Skills
- content-posting — Post new tweets and threads
- content-cleanup — Delete tweets entirely
- premium-subscriptions — Manage X Premium features
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

