一个自动生成网站目录大纲的油猴脚本

auto-toc

auto-toc

Displays a table of contents for any website, making it easier to read and navigate long articles, documentations, and online books.

Generate TOC(table of contents) for any website. 可以为任何网站生成TOC网站目录大纲.

Switch black/white themes automatically according to your compupter’s light/dark mode. 会根据你的电脑的黑夜白天模式自动切换黑白主题.

light

dark

Features

  • Work properly on any website that conforms to the HTML standard and uses HTML heading tags properly (e.g. Wikipedia.com).
  • Accurate article and heading detection
  • A clean user interface
  • Highlight current heading
  • Click to jump to headings
  • Drag the panel to your preferred position
  • Only runs when you actually use it
  • Dark mode, automatically
  • 6 heading levels
  • Expand all headings to a specific level
  • Support HTML label:
    • H1, H2, H3, H4, H5, H6
    • <strong>
    • <b>

Installation & Usage

By default, it is not open. You need to go to the plug-in menu to open the switch for the website that wants to open the toc. The plug-in will remember this switch, and the toc will be generated automatically according to the switch when you open the website the next time.

可以为任何网站生成TOC网站目录大纲, 默认是不打开的, 需要去插件菜单里为想要打开 toc 的网站开启开关, 插件会记住这个开关, 下回再打开这个网站会自动根据开关来生成 toc 与否.

Inspired by