A Chrome extension that extracts documentation pages and converts them to LLM-friendly Markdown format with a single click.
- π― Smart Content Extraction: Uses Mozilla's Readability.js to intelligently extract the main content from any documentation page
- π Markdown Conversion: Converts HTML to clean Markdown format using Turndown.js
- π¨ Clean Formatting: Preserves headings, code blocks, lists, and other important formatting
- π One-Click Copy: Simple floating button to copy content to clipboard
- π Visual Feedback: Toast notifications confirm successful copy
- π± Responsive Design: Works on desktop and mobile views
-
Download/Clone this repository to your local machine
-
Open Chrome and navigate to
chrome://extensions/ -
Enable Developer Mode by toggling the switch in the top right corner
-
Click "Load unpacked" and select the folder containing this extension
-
Done! The extension is now installed and ready to use
-
Navigate to any documentation page (MDN, Stripe docs, React docs, etc.)
-
Look for the floating button in the bottom-right corner that says "Copy LLM Text"
-
Click the button to extract and copy the content
-
See the confirmation toast "β LLM-friendly version copied!"
-
Paste anywhere - the content is now in your clipboard as clean Markdown
The extension extracts:
- Main article content
- Headings (converted to Markdown # syntax)
- Code blocks (preserved with ```language syntax)
- Lists (bullet points and numbered)
- Links and emphasis
- Tables (converted to Markdown tables)
The extension removes:
- Navigation menus
- Sidebars
- Footers
- Advertisements
- Social media widgets
- Comments sections
The copied content includes:
- Page title as H1
- Source URL
- Extraction timestamp
- Clean Markdown-formatted content
Example output:
# Documentation Title
**Source:** https://example.com/docs/page
**Extracted:** 2024-01-15T10:30:00.000Z
---
## Main Content Here
Your documentation content in clean Markdown...chrome-extension/
βββ manifest.json # Chrome extension manifest (V3)
βββ content.js # Main content script
βββ styles.css # Button and toast styles
βββ readability.js # Mozilla's Readability library
βββ turndown.js # HTML to Markdown converter
βββ icon16.png # Extension icon (16x16)
βββ icon48.png # Extension icon (48x48)
βββ icon128.png # Extension icon (128x128)
βββ README.md # This file
- Chrome/Chromium browsers (version 88+)
- Edge (Chromium-based)
- Brave Browser
- Other Chromium-based browsers
Button not appearing?
- Refresh the page after installing the extension
- Check if the site has strict CSP policies that might block the extension
Content not extracting properly?
- The extension uses intelligent extraction but may need fallback for unusual layouts
- Try selecting the specific article container if available
Copy not working?
- Ensure the browser has clipboard permissions
- Some sites may restrict clipboard access - try on a different tab
This extension:
- β Works entirely locally in your browser
- β Does not send data to any external servers
- β Does not track your usage
- β Only activates when you click the button
MIT License - Feel free to modify and distribute as needed.
- Mozilla Readability for content extraction
- Turndown for HTML to Markdown conversion
Made with β€οΈ by uttam for better LLM interactions with documentation