A Firefox extension that allows you to select text on any webpage and ask questions about it using various AI providers. The extension provides a modern, user-friendly interface with support for multiple AI models and a chat-like experience.
-
Text Selection: Select any text on a webpage to analyze
-
Multiple AI Providers: Support for various AI providers including:
- OpenAI (GPT-3.5, GPT-4)
- Anthropic (Claude 2, Claude 3)
- Google (Gemini)
-
Modern UI/UX:
- Draggable popup window with visual drag handle
- Light and dark theme support
- Smooth animations and transitions
- Focus/blur states for better multitasking
- Chat-like interface with AI provider logos
- Context-aware message bubbles
- Responsive design
-
Smart Features:
- Context preservation
- Conversation history
- Position memory
- Automatic theme detection
- Smooth scrolling
- Loading states and error handling
The extension allows you to select text from any webpage (like documentation shown above) and ask questions about it. The popup interface appears with your selected text and provides an intuitive chat interface to interact with various AI models.
- Clone this repository
- Open Firefox and go to
about:debugging - Click "This Firefox" on the left sidebar
- Click "Load Temporary Add-on"
- Navigate to the extension directory and select
manifest.json
- Select any text on a webpage
- Right-click and choose "Ask AI about selection"
- The popup will appear in the bottom right corner
- Type your question and press Enter
- View the AI's response in a chat-like interface
- Continue the conversation or close the popup
The extension supports configuration through the browser's storage:
apiKey: Your API key for the selected providermodel: The AI model to useprovider: The AI provider to usepopupXandpopupY: Last position of the popup window
browse_with_ai/
├── manifest.json
├── background.js
├── content.js
├── popup.html
├── popup.js
├── icons/
│ ├── icon-48.png
│ ├── icon-96.png
│ └── icon-128.png
└── README.md
manifest.json: Extension configurationbackground.js: Handles context menu and messagingcontent.js: Manages popup UI and interactionspopup.html/js: Settings interfaceicons/: Extension icons
- Make your changes
- Test in Firefox using
about:debugging - Package for distribution (instructions to be added)
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Icons from Phosphor Icons
- Inspired by various AI-powered browser extensions
