Transform your writing instantly across any platform with AI-powered text enhancement.
- Smart Text Enhancement: AI-powered grammar correction and style improvement
- Context-Aware Writing: Generate text from scratch based on context
- Multiple Tone Options: Professional, Romantic, Poetic, Casual, and Custom prompts
- Universal Compatibility: Works on Instagram, Twitter, WhatsApp, and any text field
- Floating Circle Button: Appears when you select text, contains Tone Genie logo
- Tabbed Popup Interface: Switch between Context Writing and Tone Writing modes
- Instant Enhancement: Quick fix option with inline rewrite/undo buttons
Ctrl + Shift + H: Context enhancing (opens popup)Ctrl + Shift + Y: Custom prompting (opens popup)Ctrl + Shift + U: Blazing fast fix (instant enhancement)
- Build Tool: Vite
- Framework: React JavaScript/TypeScript
- AI Backend: Gemini 2.0 Flash via custom API
- Target Browsers: Chrome, Firefox, Safari
- Architecture: Manifest V3 Browser Extension
# Clone the repository
git clone <repo-url>
cd tone-genie-extension
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the
distfolder - The extension icon should appear in your browser toolbar
- Select any text in a text field
- Click the floating Tone Genie button that appears
- Choose your enhancement type:
- Context Writing: Provide context to generate new text
- Tone Writing: Select tone or write custom prompt
- Click "Enhance" to apply changes
- Context Enhancement (
Ctrl + Shift + H): Opens popup for context-based writing - Custom Prompting (
Ctrl + Shift + Y): Opens popup for tone selection - Quick Fix (
Ctrl + Shift + U): Instant grammar and style enhancement
- β Instagram (posts, comments, DMs)
- β Twitter/X (tweets, replies)
- β WhatsApp Web (messages)
- β Gmail and other email clients
- β Any website with text inputs
- Keyboard shortcuts can be modified in
chrome://extensions/shortcuts - Default settings can be adjusted in the extension popup
tone-genie-extension/
βββ src/
β βββ content/
β β βββ content.js # Main content script
β β βββ ui-components.js # Floating button & popup
β β βββ platform-handlers.js # Social media specific logic
β βββ background/
β β βββ background.js # Service worker for API calls
β βββ popup/
β β βββ popup.html # Extension popup page
β β βββ popup.js # Popup functionality
β β βββ popup.css # Popup styles
β βββ assets/
β β βββ logo.png # Extension logo
β βββ styles/
β βββ content.css # Injected styles
βββ public/
β βββ manifest.json # Extension manifest
βββ vite.config.js # Vite configuration
βββ package.json
{
"text": "original text to enhance",
"options": {
"prompt": "make this text more professional",
"generationConfig": {
"temperature": 0.7
}
}
}{
"success": true,
"enhancedText": "Enhanced version of the text"
}- Network errors are handled gracefully
- API failures show user-friendly messages
- Fallback options for offline usage
- Appears on text selection
- Smooth fade animations
- Positioned dynamically
- Contains Tone Genie logo
- Tab 1: Context Writing
- Context input field
- Generate button
- Preview area
- Tab 2: Tone Writing
- Predefined tone buttons
- Custom prompt input
- Enhance button
- Preview area
- Instant enhancement on
Ctrl+Shift+U - Small inline buttons appear:
- "Rewrite" (opens popup)
- "Undo" (restores original)
- Test on multiple platforms (Instagram, Twitter, WhatsApp)
- Verify all keyboard shortcuts work
- Test text selection and replacement
- Verify API integration
- Test error scenarios
- Chrome (primary)
- Firefox
- Safari (with modifications)
Extension not appearing
- Ensure developer mode is enabled
- Check if extension is loaded in
chrome://extensions/ - Try reloading the extension
Shortcuts not working
- Check
chrome://extensions/shortcutsfor conflicts - Ensure page is fully loaded before using shortcuts
- Some sites may prevent shortcut events
API errors
- Check network connectivity
- Verify API endpoint is accessible
- Check browser console for error messages
Text not enhancing
- Ensure text is selected properly
- Check if the platform is supported
- Try refreshing the page
npm run dev # Development with hot reload
npm run build # Production build
npm run preview # Preview production build- Use
chrome://extensions/to reload extension after changes - Check browser console for debugging
- Test on different platforms regularly
- Use React DevTools for component inspection
- β Core text enhancement
- β Floating UI button
- β Keyboard shortcuts
- β Platform compatibility
- β API integration
- π User authentication
- π Payment system integration
- π Usage analytics
- π Custom tone training
- π Multi-language support
- π Team collaboration features
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, email support@tonegenie.com or create an issue in the repository.
Made with β€οΈ by the Tone Genie Team