Welcome to XActions

Clean Up Your X Following List

Free, open-source browser scripts. No apps, no sign-ins, no data collection.

✨ What can it do?

🔄 Unfollow Non-Followers

Automatically unfollow everyone who doesn't follow you back.

🧹 Unfollow Everyone

Start fresh with a completely clean following list.

🔍 Detect Unfollowers

Find out who stopped following you recently.

👀 Monitor Any Account

Watch any public account's followers for changes.

❤️ Auto-Liker

Like posts based on keywords or from specific users.

🚀 Growth Suite

All-in-one automation: follow, like, and smart unfollow.

🚀 How to use

Go to your Following page

Open X (Twitter) and navigate to your Following list

twitter.com/YOUR_USERNAME/following

Open Developer Console

Windows/Linux: Ctrl + Shift + J
Mac: Cmd + Option + J

Copy the script below

Click the "Copy" button to copy the script to your clipboard

Paste and press Enter

Paste the script into the console and press Enter. Watch it work!

📋 Scripts

Unfollow Non-Followers
(() => {
  const $followButtons = '[data-testid$="-unfollow"]';
  const $confirmButton = '[data-testid="confirmationSheetConfirm"]';
  const retry = { count: 0, limit: 3 };

  const sleep = (s) => new Promise(r => setTimeout(r, s * 1000));
  const scroll = () => window.scrollTo(0, document.body.scrollHeight);

  const unfollowAll = async (buttons) => {
    for (const btn of buttons) {
      btn.click();
      await sleep(1);
      document.querySelector($confirmButton)?.click();
      await sleep(0.5);
    }
  };

  const run = async () => {
    scroll();
    await sleep(1);
    let buttons = [...document.querySelectorAll($followButtons)]
      .filter(b => !b.closest('[data-testid="UserCell"]')
        ?.querySelector('[data-testid="userFollowIndicator"]'));
    
    if (buttons.length) {
      console.log(`Unfollowing ${buttons.length} users...`);
      await unfollowAll(buttons);
      retry.count = 0;
      await sleep(2);
      return run();
    }
    
    if (++retry.count < retry.limit) {
      await sleep(2);
      return run();
    }
    console.log('✅ Done! Reload and run again if any were missed.');
  };

  run();
})();
📍 Use on: twitter.com/YOUR_USERNAME/following

🔒 Safe & Private

100% Local

Runs entirely in your browser. Nothing sent anywhere.

Open Source

All code visible on GitHub. No hidden functionality.

No Sign-in

Never asks for your password or credentials.

Just Clicks

Only automates the same clicks you'd do manually.