From xactions
Automates X/Twitter community management via browser console JS: bulk-leave all, join by topic/keywords, with pause/resume/abort controls. Use on x.com/communities or suggested pages.
npx claudepluginhub harryvik990/x-autoThis skill uses the workspace's default tool permissions.
Browser console scripts for managing X/Twitter Communities — leaving, joining, and interacting.
Automates X/Twitter community management via browser console JS: bulk-leave all, join by topic/keywords, with pause/resume/abort controls. Use on x.com/communities or suggested pages.
Extracts X (Twitter) community members, posts, moderators, and searches communities via Xquik API endpoints. Read-only; use for community data retrieval.
Provides X (Twitter) growth playbook: 3-4 posts/day minimum, 10 comments/day on leaders, visuals, communities, authenticity, world affairs. For engagement and audience planning.
Share bugs, ideas, or general feedback.
Browser console scripts for managing X/Twitter Communities — leaving, joining, and interacting.
| Goal | File | Navigate to |
|---|---|---|
| Leave ALL communities | src/leaveAllCommunities.js | x.com/communities |
| Join communities by topic | src/joinCommunities.js | x.com/i/communities/suggested |
File: src/leaveAllCommunities.js
Paste into DevTools on x.com/communities.
The script navigates between pages to process each community:
Uses sessionStorage key xactions_left_communities (JSON array of community IDs) to survive page navigations. Re-running resumes where it stopped.
window.XActions.pause() — Pause executionwindow.XActions.resume() — Resumewindow.XActions.abort() — Stop and export progresssessionStorage.removeItem('xactions_left_communities')
Note: sessionStorage clears automatically when the browser tab closes.
File: src/joinCommunities.js
Navigate to community discovery pages and paste the script to auto-join communities matching your interests.
| Element | Selector | Notes |
|---|---|---|
| Community links | a[href^="/i/communities/"] | Links to individual communities |
| Joined button | button[aria-label^="Joined"] | Shows "Joined" status |
| Join button | [data-testid="TopicFollow"] | Join community button |
| Community name | [data-testid="communityName"] | Community title text |
| Confirmation dialog | [data-testid="confirmationSheetConfirm"] | Leave confirmation |
| Back button | [data-testid="app-bar-back"] | Navigate back |
| Communities nav | a[aria-label="Communities"] | Main nav link |
x.com/communities to see all your communitiessrc/leaveAllCommunities.js and let it runx.com/i/communities/suggestedsrc/joinCommunities.jssrc/engagementBooster.js to engage with community members' contentsrc/audienceDemographics.js to understand community member demographicsleaveAllCommunities.js| Problem | Solution |
|---|---|
| Script navigates but doesn't click Leave | "Joined" button selector may have changed — inspect the button |
| Script gets stuck on a community page | Click back manually, then re-run — sessionStorage tracks progress |
| "Joined" button not found | Community may use a different membership model |
| Progress lost between runs | sessionStorage clears on tab close — keep tab open during execution |
| Communities page is empty | You may not have joined any communities yet |
| Script leaves communities you want to keep | Currently no whitelist — abort early and manually rejoin |