A minimal browser extension that summarizes web page text into a single sentence using OpenAI's API. Works on Chrome, Edge, Brave, Opera, and Firefox.
- Summarize entire page or selected text
- Clean, minimal overlay display
- Persistent or session-only API key storage
- Customizable prompt
- Model selection (gpt-3.5-turbo, gpt-4, etc.)
- Right-click context menu support
Use the same unpacked folder; only the store you publish to differs.
- Open the browser’s extensions page:
- Chrome:
chrome://extensions/ - Edge:
edge://extensions/ - Brave:
brave://extensions/
- Chrome:
- Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select this project folder (the one containing
manifest.json) - The extension icon will appear in your toolbar
Firefox uses Manifest V2 and a separate manifest. Build a Firefox package, then load it as a temporary add-on:
- Run the build script:
./prepare-firefox.sh
- Open Firefox and go to
about:debugging - Click "This Firefox" → "Load Temporary Add-on"
- Choose
tldr-firefox.xpi(created in the project root)
For signed distribution, submit tldr-firefox.xpi (or the unpacked folder built from manifest.firefox.json) to addons.mozilla.org.
- Click the tldr extension icon in your browser toolbar
- Enter your OpenAI API key
- Choose whether to save it persistently (default) or session-only
- Optionally customize the prompt and select a different model
- Click "Save Settings"
- Click the tldr icon in the toolbar to summarize the entire page
- Or select text first, then click the icon to summarize only the selection
- Right-click anywhere on the page
- Select "Summarize with tldr"
- If text is selected, it will summarize the selection; otherwise, it summarizes the entire page
You'll need to add icon files (16x16, 48x48, 128x128 PNG) to the icons/ directory:
icons/icon16.pngicons/icon48.pngicons/icon128.png
For now, you can use placeholder icons or create simple text-based icons.
activeTab: Required to read text from the current tabstorage: Required to store API key and settingscontextMenus: Required for right-click menu functionality