content-posting
Content Posting
Browser console scripts for automating content creation and publishing on X/Twitter.
Script Selection
| Goal | File | Navigate to |
|---|---|---|
| Post a thread | src/postThread.js |
x.com |
| Schedule posts | src/schedulePosts.js |
x.com |
| Create a poll | src/createPoll.js |
x.com |
| Auto-repost by keyword | src/autoRepost.js |
Timeline or search |
| Compose + preview threads | src/threadComposer.js |
x.com/USERNAME |
| Quote-tweet with templates | src/quoteTweetAutomation.js |
Timeline |
| Repurpose tweets | src/contentRepurposer.js |
x.com/USERNAME |
| Auto-plug viral tweets | src/autoPlugReplies.js |
x.com/USERNAME |
| Content calendar analysis | src/contentCalendar.js |
x.com/USERNAME |
| Optimize posting times | src/tweetScheduleOptimizer.js |
x.com/USERNAME |
Script Details
threadComposer.js
Interactive thread creation with draft persistence. Compose parts, preview, reorder, and publish.
Controls: XActions.create(topic, points), XActions.preview(), XActions.post(), XActions.export()
contentRepurposer.js
Converts existing tweets into new formats: threads, tweet storms, blog outlines, summary variations, and quote-tweet templates. Scan your timeline, pick top tweets, generate 5 content variations per tweet.
Controls: XActions.scan(), XActions.list(), XActions.toThread(i), XActions.toSummary(i), XActions.toStorm(i), XActions.toBlog(i), XActions.toQuoteTemplates(i), XActions.all(i)
autoPlugReplies.js
Auto-replies to your own viral tweets with a promotional plug. Configurable viral threshold, dry-run mode, session limits.
Controls: XActions.setPlug(text), XActions.scan(), XActions.autoScan(ms), XActions.stop()
quoteTweetAutomation.js
Auto quote-tweets matching tweets with customizable templates and engagement filters.
DOM Selectors
| Element | Selector |
|---|---|
| Compose button | a[data-testid="SideNav_NewTweet_Button"] |
| Tweet text area | [data-testid="tweetTextarea_0"] |
| Post button | [data-testid="tweetButton"] |
| Media input | [data-testid="fileInput"] |
| Poll button | [aria-label="Add poll"] |
| Schedule | [data-testid="scheduleOption"] |
| Thread add | [data-testid="addButton"] |
| Reply button | [data-testid="reply"] |
Content Strategy
Maximizing content output
src/tweetPerformance.js-- identify your best-performing contentsrc/contentRepurposer.js-- generate 5 variations per top tweetsrc/tweetScheduleOptimizer.js-- schedule content at optimal timessrc/autoPlugReplies.js-- automatically promote on viral tweetssrc/contentCalendar.js-- identify posting gaps to fill
Thread workflow
- Use
src/contentRepurposer.js->XActions.toThread(i)for thread outlines - Edit and refine with
src/threadComposer.js - Preview with
XActions.preview() - Post with
XActions.post()
Notes
- All posting scripts include dry-run mode by default
- Thread tweets validated for character count before posting
- Free: 280 chars. Premium: 25,000+ chars, scheduling, edit
- Auto-repost includes safety filters (min likes, skip replies)
- Add 1-3s delays between actions to avoid rate limiting
More from nirholas/xactions
twitter-scraping
Scrapes X/Twitter data without API access using Puppeteer stealth and browser console scripts. Extracts profiles, followers, following lists, tweets, search results, hashtags, threads, media, bookmarks, notifications, DMs, likes, and viral tweets. Exports to JSON/CSV. Use when collecting, exporting, or analyzing Twitter data.
25direct-messages
Sends, manages, and automates direct messages on X/Twitter. Supports personalized bulk DMs with templates, conversation management, message request filtering, and DM export. The agent uses this skill when a user needs to send DMs, manage conversations, or automate direct messaging workflows.
10growth-automation
Automates X/Twitter growth via browser console scripts. Auto-likes tweets by keyword/user filters, auto-comments on target users, follows by keyword search or engagement, follows audiences of target accounts with rich filtering, trains the algorithm for niches, and runs combined growth suites. All require pasting core.js first. Use when automating Twitter growth, engagement, following, or audience building.
10engagement-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.
10follower-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.
9grok-ai
Integrates with X/Twitter's Grok AI for chat, image generation, tweet analysis, and content creation. Automates Grok prompts, scrapes Grok responses, and uses Grok for content strategy. Requires X Premium+. Use when users want to use Grok AI for content generation, analysis, or chat automation on X.
8