Business & Ads Tools
Browser console scripts and automation for X/Twitter business intelligence and promotion.
Script Selection
| Goal | File | Navigate to |
|---|---|---|
| Brand monitoring & sentiment | src/businessTools.js | Search results page |
| Audience insights | src/businessTools.js | x.com/USERNAME/followers |
| Competitor comparison | src/businessTools.js | Any profile page |
| A/B test tweet performance | src/tweetABTester.js | x.com/USERNAME |
| Auto-plug viral tweets | src/autoPlugReplies.js | x.com/USERNAME |
| Audience demographics | src/audienceDemographics.js | x.com/USERNAME/followers |
| Content performance | src/tweetPerformance.js | x.com/USERNAME |
Business Tools
File: src/businessTools.js
Puppeteer-based module for business intelligence.
Functions
| Function | Purpose |
|---|---|
monitorBrandMentions(page, brand, {limit, since}) | Search mentions with sentiment |
getAudienceInsights(page, username, {sampleSize}) | Follower bio analysis |
analyzeCompetitors(page, ['user1', 'user2']) | Side-by-side comparison |
Tweet A/B Testing
File: src/tweetABTester.js
Test tweet variations with statistical comparison.
Controls: XActions.createTest(name, textA, textB), XActions.setUrl(name, variant, url), XActions.measure(name), XActions.results(name)
Auto-Plug Replies
File: src/autoPlugReplies.js
Automatically reply to your viral tweets with promotional content.
Controls: XActions.setPlug(text), XActions.setThreshold(n), XActions.scan(), XActions.autoScan(ms)
Strategy Guide
Low-budget promotion (no ads spend)
- A/B test content styles with
src/tweetABTester.js - Set up
src/autoPlugReplies.jsto promote on viral tweets - Find trends with
src/trendingTopicMonitor.jsfor timely content - Analyze audience with
src/audienceDemographics.jsfor targeting - Track results with
src/tweetPerformance.js
Brand monitoring
- Use
src/businessTools.js->monitorBrandMentions()for sentiment - Set up
src/keywordMonitor.jsfor real-time brand mention alerts - Export data for reporting
Notes
- Sentiment analysis is keyword-based (not ML) -- quick polarity assessment
- A/B testing requires manually posting both tweet variants
- No X Ads API integration -- this is browser-side intelligence