AI-powered Chrome extension that automatically reads X (Twitter) posts and generates contextual, human-like comments using Groq's LLaMA AI.
- π― Smart Comment Generation β Reads tweet content and generates relevant, contextual comments
- β‘ Powered by Groq β Ultra-fast inference using LLaMA 3.3 70B and other models
- π 6 Tone Options β Friendly, Professional, Funny, Supportive, Savage, Intellectual
- π Multi-Language β English, Urdu (Roman), Hindi (Roman), Arabic
- π Preview & Edit β See the generated comment before posting, with Copy/Regenerate/Reply options
- π¨ Premium Dark UI β Beautiful glassmorphism popup with smooth animations
- βοΈ Customizable β Custom prompts, creativity slider, max length control
- Clone or download this repository
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in top-right corner)
- Click "Load unpacked"
- Select the
X-Commentatorfolder - The extension icon will appear in your toolbar!
- Go to console.groq.com/keys
- Create a free account and generate an API key
- Click the extension icon β Paste your API key β Save
- Go to x.com (Twitter)
- You'll see a β¨ sparkle button on every tweet (next to like/retweet buttons)
- Click it β AI reads the tweet β Generates a comment
- Choose from the preview card:
- Copy β Copy comment to clipboard
- Regenerate β Get a new comment
- Reply β Auto-opens reply box and inserts the comment
- β β Dismiss
| Setting | Description |
|---|---|
| API Key | Your Groq API key (required) |
| Model | LLaMA 3.3 70B (best), LLaMA 3.1 8B (fastest), Mixtral, Gemma |
| Tone | Comment personality style |
| Language | Response language |
| Custom Instructions | Additional prompt guidance |
| Creativity | Temperature (0.1 = precise, 1.5 = creative) |
| Max Length | Maximum comment length in tokens |
- Platform: Chrome Extension (Manifest V3)
- Language: JavaScript (Vanilla)
- AI: Groq API (LLaMA 3.3 70B)
- Styling: Pure CSS with glassmorphism
X-Commentator/
βββ manifest.json # Extension manifest (V3)
βββ background/
β βββ service-worker.js # Groq API calls & prompt building
βββ content/
β βββ content.js # Tweet detection & UI injection
β βββ content.css # Injected styles
βββ popup/
β βββ popup.html # Settings page
β βββ popup.css # Premium dark theme
β βββ popup.js # Settings management
βββ icons/
βββ icon16.png
βββ icon48.png
βββ icon128.png
MIT License