A browser extension that generates an interactive, draggable table of contents for any webpage.
- 🚀 Automatically extracts headings (H1-H5) from web pages
- 🎯 Smart heading hierarchy detection and nesting
- 🖱️ Draggable TOC panel that can be positioned anywhere on the page
- 🎨 Collapsible interface with visual indicators
- 📍 Auto-highlights current section while scrolling
- ⚡ Smooth scroll to sections when clicking TOC items
- ⌨️ Keyboard shortcut support for toggling TOC
- ⚙️ Configurable auto-load settings
You can install Awesome TOC in two ways:
-
Chrome Web Store (Recommended)
- Visit Chrome Web Store
- Click "Add to Chrome" to install
-
Manual Installation (Developer Mode)
- Download the source code
- Open Chrome and go to
chrome://extensions/
- Enable "Developer mode" in the top right
- Click "Load unpacked" and select the extension directory
- After installation, the TOC panel will appear on the top-right corner of compatible web pages
- Drag the panel using the colored button to reposition it
- Click the colored button to collapse/expand the TOC
- Green: TOC is expanded
- Red: TOC is collapsed
- Click on any heading in the TOC to smoothly scroll to that section
- Use the keyboard shortcut (configurable) to toggle the TOC visibility
Access the extension options to configure:
- Auto-load settings: Enable/disable automatic TOC generation when visiting pages
This extension is built using:
- React for UI components
- Ant Design for the component library
- TypeScript for type safety
- WXT for browser extension development
This project is licensed under the MIT License - see the LICENSE file for details.