A beautiful, draggable table of contents that floats alongside any webpage, making navigation a breeze!
- π Automatic Content Detection: Intelligently identifies your page's main content and headings
 - π±οΈ Fully Draggable: Position the TOC anywhere on the page
 - π¨ Sleek Design: Clean, modern interface that complements any website
 - π Dark Mode Support: Automatically adapts to light and dark websites
 - β¨οΈ Keyboard Shortcuts: Toggle with 
Alt + Tfor quick access - πΎ Position Memory: Remembers where you placed it between visits
 
- 
Clone this repository:
git clone <https://github.com/yourusername/floating-toc-extension.git>
 - 
Install dependencies:
cd floating-toc-extension npm install - 
Build the extension:
npm run build
 - 
Load the extension in Chrome:
- Open 
chrome://extensions/ - Enable "Developer mode"
 - Click "Load unpacked"
 - Select the 
distfolder from this project 
 - Open 
 
floating-toc-extension/
βββ src/                     # Source code
β   βββ components/          # React components
β   β   βββ Toc/             # Main TOC component
β   β   βββ TocItem/         # Individual TOC item component
β   βββ hooks/               # Custom React hooks
β   βββ background.js        # Extension background script
β   βββ content.js           # Content script injected into pages
β   βββ popup.js             # Popup script
β   βββ styles.css           # Global styles
βββ public/                   # Static assets
β   βββ icons/                # Extension icons
β   βββ manifest.json         # Extension manifest
β   βββ popup.html            # Popup HTML
βββ webpack.config.js         # Webpack configuration
- 
Build for production:
npm run build
 - 
Watch mode for development:
npm run watch
 
We'd love your contributions! Here's how you can help:
- 
π΄ Fork the repository
 - 
πΏ Create your feature branch:
git checkout -b feature/amazing-feature
 - 
πΎ Commit your changes:
git commit -m 'Add some amazing feature' - 
π€ Push to the branch:
git push origin feature/amazing-feature
 - 
π Open a Pull Request
 
- The extension uses React for the UI components
 - CSS is included directly in the components
 - Webpack bundles everything together
 - The content script injects the TOC into each webpage
 
- TOC may not work correctly on highly dynamic websites
 - Some sites with unusual heading structures might not be detected properly
 
This project is licensed under the MIT License β see the LICENSE file for details.