Content Posting Script Configs
Contents
Post Thread
File: src/postThread.js
Compose and post a connected thread of tweets.
Configuration
const CONFIG = {
thread: [
'First tweet in the thread ๐งต',
'Second tweet continues...',
'Final tweet wraps it up! ๐',
],
delayBetweenTweets: 2000,
dryRun: true,
};
How to use
- Go to x.com
- Edit the
threadarray with your tweets - Set
dryRun = falseto post - Open DevTools (F12) โ Console
- Paste the script โ Enter
How it works
- Opens the compose dialog
- Types the first tweet
- Clicks "+" to add each subsequent tweet
- Clicks "Post all" to publish the entire thread
Validation
- Checks each tweet is โค 280 characters
- Shows character count per tweet in dry-run mode
Schedule Posts
File: src/schedulePosts.js
Queue multiple posts for future publishing using X's native scheduling (Premium feature).
Configuration
const CONFIG = {
posts: [
{ text: 'Morning post!', scheduledFor: '2026-02-25T10:00:00' },
{ text: 'Afternoon post!', scheduledFor: '2026-02-25T14:00:00' },
],
};
Scheduling posts requires X Premium. The script uses X's built-in scheduler UI.
Create Poll
File: src/createPoll.js
Create a poll with 2-4 options and configurable duration.
Configuration
const CONFIG = {
question: 'What is your preferred language?',
options: ['JavaScript', 'Python', 'Rust', 'Go'],
durationDays: 1,
dryRun: true,
};
Validation
- Enforces 2-4 options
- Each option max 25 characters
- Question max 280 characters
Auto Repost
File: src/autoRepost.js
Automatically repost tweets matching keywords or from specific users.
Configuration
const CONFIG = {
keywords: ['AI agents', 'open source'],
fromUsers: ['nichxbt'],
maxReposts: 20,
skipReplies: true,
minLikes: 5, // Only repost tweets with at least 5 likes
};
How it works
- Scrolls your timeline or search results
- Matches tweets against keyword/user filters
- Clicks retweet โ confirm on matching tweets
- Respects configurable delays and limits
โก Explore XActions
100% free and open-source. No API keys, no fees, no signup.
Browse All Documentation