๐Ÿ“š Content Posting Script Configs

Skill References

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

  1. Go to x.com
  2. Edit the thread array with your tweets
  3. Set dryRun = false to post
  4. Open DevTools (F12) โ†’ Console
  5. Paste the script โ†’ Enter

How it works

  1. Opens the compose dialog
  2. Types the first tweet
  3. Clicks "+" to add each subsequent tweet
  4. 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

  1. Scrolls your timeline or search results
  2. Matches tweets against keyword/user filters
  3. Clicks retweet โ†’ confirm on matching tweets
  4. Respects configurable delays and limits

โšก Explore XActions

100% free and open-source. No API keys, no fees, no signup.

Browse All Documentation