Skip to content

adds a table of contents (TOC) sidebar to any webpage, enhancing navigation and improving the reading experience.

Notifications You must be signed in to change notification settings

cyrusyip-temporary-repos/userscript-toc-sidebar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TOC Sidebar

TOC Sidebar is a user script that adds a table of contents (TOC) sidebar to any webpage, enhancing navigation and improving the reading experience.

TOC-Sidebar Screenshot

Features

  • Automatically generates a table of contents from the headings on the page
  • Toggle sidebar visibility with the 't' key
  • Resizable sidebar
  • Expand/collapse functionality for nested headings
  • Highlights the current section as you scroll
  • Smooth scrolling to selected headings
  • Intelligent content detection to avoid including irrelevant headings

Advantages

  1. Improved navigation: Quickly jump to any section of the page
  2. Enhanced readability: Get an overview of the page structure at a glance
  3. Non-intrusive: Toggle the sidebar on and off as needed
  4. Customizable: Resize the sidebar to your preferred width
  5. Universal compatibility: Works on most websites without interfering with existing layouts

How to Use

  1. Install a user script manager like Tampermonkey - Chrome Web Store or Greasemonkey – Firefox in your browser
  2. Install the TOC Sidebar script: https://raw.githubusercontent.com/xianmin/userscript-toc-sidebar/master/toc-sidebar.user.js
  3. Visit any webpage, and press the 't' key to toggle the sidebar
  4. Click on any heading in the sidebar to navigate to that section
  5. Use the '+' and '-' buttons to expand or collapse all headings
  6. Drag the right edge of the sidebar to resize it
  7. Click the 'X' button or press 't' again to close the sidebar

Enjoy easier navigation and improved reading experience with TOC Sidebar!

About

adds a table of contents (TOC) sidebar to any webpage, enhancing navigation and improving the reading experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%