A browser extension for collecting text snippets while browsing. Highlight text on any page, right-click "Snip it", and your selections accumulate in a sidebar notepad with source URLs tracked automatically. Export everything as a clean .md file with one click.
Works on Firefox and Chrome.
- jq (for building manifests) — install via
brew install jq,apt install jq, etc.
git clone https://github.com/thrialectics/highlight-snip.git
cd highlight-snip
chmod +x build.sh
./build.shThis creates dist/chrome/ and dist/firefox/ with browser-specific builds.
- Open
about:debugging#/runtime/this-firefox - Click Load Temporary Add-on
- Select
dist/firefox/manifest.json - The sidebar opens automatically — find it in Firefox's sidebar panel
- Open
chrome://extensions - Enable Developer mode (top right)
- Click Load unpacked and select the
dist/chrome/folder - Click the extension icon to open the side panel
- Highlight text on any webpage
- Right-click the selection and choose "Snip it"
- The sidebar opens with your snip displayed as a blockquote
- Repeat across as many pages/tabs as you like — snips accumulate
- Click Export .md to download your collected notes as markdown
- Click Clear to start fresh
Click the gear icon in the sidebar to set a subfolder name. Exported files save to ~/Downloads/<subfolder>/. The default subfolder is highlight-snip.
# Highlight & Snip — 2026-02-20
> Some interesting text you highlighted...
>
> — [Page Title](https://example.com/article)
> Another snippet from a different page...
>
> — [Another Page](https://example.com/page2)
---
## Sources
- [Page Title](https://example.com/article)
- [Another Page](https://example.com/page2)highlight-snip/
├── manifest.base.json # Shared manifest template
├── build.sh # Produces dist/chrome/ and dist/firefox/
├── src/
│ ├── background.js # Context menu + storage
│ ├── sidebar.html # Sidebar UI
│ ├── sidebar.js # Rendering, export, reactive updates
│ ├── sidebar.css # Styles
│ ├── options.html # Settings page
│ ├── options.js # Settings logic
│ └── icons/ # Extension icons
└── dist/ # Built output (gitignored)