Highlight text on any webpage to instantly see a dictionary definition, and optionally ask Gemini to explain it in simple terms.
- Select (highlight) text on a webpage.
- If Auto-lookup is enabled, a small tooltip appears near your cursor.
- The tooltip calls the Free Dictionary API and shows:
- The word
- Phonetic text (when available)
- Up to 3 meanings
- Up to 2 definitions per meaning (plus examples when available)
You can ask Gemini to explain a word/sentence in beginner-friendly terms.
Supported entry points:
- Tooltip button: In the on-page tooltip, click
Explain with AI. - Popup button: Open the extension popup and click
Explain with AI. - Context menu: Right-click selected text and choose
Explain with AI.
AI responses are requested from:
https://generativelanguage.googleapis.com/
The add-on prompts Gemini to:
- Explain simply
- Keep the response under ~120 words
From the popup, after you run an AI explanation:
- A
Ask Follow-upbutton appears. - You can ask a follow-up question that uses your previous conversation as context.
When you start a new AI explanation from the popup, the add-on saves the conversation.
- Stored in
browser.storage.local. - Shows a list of past conversations on the Options page.
- You can expand a conversation to view the message history.
- You can clear all stored history.
The add-on includes an options page where you can configure:
- Gemini API key (required for AI explain)
- Gemini model (dropdown)
- Auto-lookup on selection
- Dark mode
- Open Firefox.
- Go to
about:debugging#/runtime/this-firefox. - Click
Load Temporary Add-on.... - Select the
manifest.jsonfile from this project folder.
- Select a word (or short text) on a webpage.
- The tooltip appears automatically (if enabled).
- Click
✕to close it.
- Click the extension icon.
- Type/paste a word or sentence.
- Click
Look up.
- Tooltip: select text, then click
Explain with AI. - Popup: type/paste text, click
Explain with AI. - Context menu: select text, right click, choose
Explain with AI.
- After an AI explanation from the popup, click
Ask Follow-up. - Type your question and press
Send(or press Enter).
AI explanations require a Gemini API key.
- Open the add-on Options page.
- Get an API key from Google AI Studio:
- Paste the key into
Gemini API Keyand clickSave Settings.
This extension requests:
storage- Save settings (API key, model, toggles) in
browser.storage.sync - Save chat history in
browser.storage.local
- Save settings (API key, model, toggles) in
activeTab- Read selected text from the active tab when opening the popup
contextMenus- Add the
Explain with AIright-click menu item
- Add the
https://api.dictionaryapi.dev/*- Dictionary lookups
https://generativelanguage.googleapis.com/*- Gemini AI requests
- Your Gemini API key is stored in
browser.storage.sync(Firefox Sync storage). - Chat history is stored locally in
browser.storage.local. - The extension sends selected/text input to:
- Free Dictionary API (for definitions)
- Google Gemini API (for explanations optional)
If you don’t want network requests on selection, disable Auto-lookup.
quick-dictionary-ai-explainer/
├── background.js # context menu + network calls (Dictionary API + Gemini)
├── content.js # tooltip UI injected into webpages
├── manifest.json # extension manifest (MV2)
├── popup.html # popup UI
├── popup.js # popup behavior + follow-ups
├── options.html # options/settings + chat history UI
├── options.js # settings persistence + chat history rendering
├── style.css # shared styling for popup/options
└── icons/ # extension icons
Built by Eyuel Engida.


