Define any word instantly without leaving your page
A lightweight, privacy-focused browser extension that provides instant dictionary definitions with a single double-click. No context switching, no new tabs - just seamless learning while you read.
- One-Click Definitions - Double-click any word to see its meaning instantly
- Smart Caching - Lightning-fast lookups for previously searched words (< 1ms)
- PDF Support - Works seamlessly with PDF documents and regular web pages
- Cross-Browser Compatible - Chrome, Edge, and Brave supported
- Beautiful UI - Clean, modern interface inspired by Oxford Languages
- Dark Mode - Automatically adapts to your system theme
- Smart Positioning - Definition popup never goes off-screen
- Pronunciation Guide - Phonetic transcriptions included
- Example Sentences - See words used in context
- Synonyms - Discover similar words
- No Tracking - Your searches are never logged or shared
- No Account Required - Works immediately after installation
- Offline Capable - Cached words available without internet
- Minimal Permissions - Only requests what's necessary
- Open Source - Fully transparent codebase
-
Clone the repository
git clone https://github.com/yourusername/quick-dictionary-extension.git cd quick-dictionary-extension -
Load in Chrome/Edge
- Open
chrome://extensions/(oredge://extensions/) - Enable "Developer mode" (toggle in top-right)
- Click "Load unpacked"
- Select the extension folder
- Open
-
Configure permissions
- Click "Details" on the extension
- Enable "Allow access to file URLs" (for PDF support)
- Set "Site access" to "On all sites"
-
You're ready! 🎉
- Open any webpage or PDF
- Double-click a word
- See the magic happen ✨
-
On Websites
- Navigate to any webpage
- Double-click any word
- A circular button appears
- Hover/click to see the definition
-
On PDFs
- Open any PDF in Chrome
- Select text (click and drag or double-click)
- Click the circular button
- View instant definition
Alt + D- Define selected wordEsc- Close definition popup
- JavaScript (ES6+) - Modern, async/await syntax
- Chrome Extension API (Manifest V3) - Latest extension standard
- CSS3 - Advanced animations and responsive design
- Free Dictionary API - Oxford-quality definitions
Extension Structure
│
├── manifest.json # Extension configuration
├── content.js # Main logic & DOM manipulation
├── styles.css # Modern UI styling
├── popup.html # Extension info popup
│
└── icons/ # Extension icons
├── icon16.png
├── icon48.png
└── icon128.png
- Event-Driven Architecture - Efficient event handling
- Cache-First Strategy - Optimized for speed
- Graceful Degradation - Handles errors elegantly
- Responsive Design - Works on all screen sizes
Edit content.js (lines 67-68):
buttonX = rect.right + window.scrollX + 5; // Horizontal offset
buttonY = rect.top + window.scrollY - 5; // Vertical offsetEdit styles.css (line 11):
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);Edit content.js (line 393):
if (cacheKeys.length > 100) { // Change 100 to your preferred limitSolution:
- Go to
chrome://extensions/ - Click "Details" on Quick Dictionary
- Enable "Allow access to file URLs"
- Reload your PDF
Check for ad blockers:
- Disable uBlock Origin, AdBlock, or similar extensions temporarily
- These may block the extension's API calls
- Whitelist
api.dictionaryapi.devin your ad