A simple browser extension to get instant AI explanations for any word or phrase (1-6 words) you select. Save your favorite definitions, edit them, and even import or export your entire history.
- ⚡ Instant Definitions: Select 1-6 words on any webpage to get a concise, AI-powered explanation in a clean popup.
- ⚙️ Custom AI Backend: Configure the extension to use any OpenAI-compatible endpoint. Perfect for local models via Ollama, LM Studio, or cloud services like Google's Gemini.
- 📝 Save for Later: Click the "Save" button on any definition to add it to your personal history list.
- 🎨 Custom Prompts: Tailor the AI's responses from the options page. (e.g., "Explain {word} like I'm five" or "Translate {word} to Hindi").
- 📚 Full-Featured History Page:
- View & Edit: See your full history. Click any word or definition to edit it directly in-place.
- Delete: Remove individual items or clear the entire list with a single click.
- Export: Download your complete history (including your edits) as a
.csvfile for backup or use in other apps. - Import: Upload a
.csvfile to merge with your existing history. The importer is robust and automatically handles:- Newline characters inside definitions.
- Non-UTF-8 character encodings (like
windows-1252from Excel). - Missing timestamps (it generates new ones).
- ⏰ Backup Reminder: Set a daily or weekly reminder to backup your history so you never lose your saved words.
This extension requires you to provide your own AI endpoint.
- Download this project's folder.
- Open your browser and navigate to
chrome://extensions. - Enable "Developer mode" (usually a toggle in the top-right corner).
- Click the "Load unpacked" button.
- Select the folder containing this project (the one with
manifest.jsoninside).
- Click the "AI Popup Infopedia" icon in your browser's toolbar. This will open the Settings page.
- Fill in the "Settings" tab:
- Endpoint URL: The API URL for your AI service.
- Ollama (local):
http://localhost:11434/v1/chat/completions - Google AI (Gemini):
https://generativelanguage.googleapis.com/v1beta/openai/chat/completions
- Ollama (local):
- Model Name: The exact model you want to use.
- Ollama (local):
llama3,mistral, etc. - Google AI (Gemini):
gemini-2.0-flash
- Ollama (local):
- API Key (Optional): Your API key, if required by your service (like Google AI).
- Custom Prompt (Optional): The default is
Explain the following word or concept in a concise paragraph: {word}. You can change this, but must include{word}.
- Endpoint URL: The API URL for your AI service.
- Click "Save Settings". You are now ready to use the extension!
- Highlight: On any webpage, select a short piece of text (1-6 words).
- Read: The AI popup will appear with the definition.
- Save: Click "Save" to add the item to your history.
- Manage: Click the extension icon in your toolbar to visit the "History" tab to view, edit, or manage your saved items.
- Manifest V3: The modern standard for Chrome extensions.
- Vanilla JavaScript (ES6+): No frameworks for a lightweight and fast experience.
- Shadow DOM: The popup is injected into a Shadow DOM to prevent website styles from breaking it (and vice-versa).
- HTML5 & CSS3: For the popup and options page.
chrome.storageAPI: Usesstorage.syncfor settings andstorage.localfor history.