Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/no5ix/auto-toc

A userscript that adds a table of contents to any website. 一个自动生成网站目录大纲的油猴脚本
https://github.com/no5ix/auto-toc

tampermonkey-script tampermonkey-userscript toc toc-generator userscript violentmonkey-script violentmonkey-userscript

Last synced: 3 months ago
JSON representation

A userscript that adds a table of contents to any website. 一个自动生成网站目录大纲的油猴脚本

Awesome Lists containing this project

README

        

# 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网站目录大纲.

# 高级技巧Advanced Skills

- Drag the `TOC drag bar`(that three dots) to move `auto-toc`.
- 拖动 TOC拖动栏 来移动 `auto-toc`
- Click on the `TOC drag bar`(that three dots) to toggle headings text wrap.
- 单击 TOC拖动栏(三个圆点) 可以切换标题折行
- Double-click on the `TOC drag bar`(that three dots) to automatically dim the TOC..
- 双击 TOC拖动栏(三个圆点) 可以自动折叠 TOC

![](auto_toc_demo_image.jpg)

# 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`
- ``
- ``
- Anti-Google-Redirect
- Anti-Jumping-Warnings
- Hide-Zhihu-Top-Bar-When-Scrolling-Down
- Touch-Fish(Shrink IMG)

# 捐赠

捐赠! 让作者更有动力给 auto-toc 加新功能! ^_^

- 微信
- ![微信](https://github.com/no5ix/no5ix.github.io/blob/source/source/img/sux/donate_wechat.png)
- 支付宝
- ![支付宝](https://github.com/no5ix/no5ix.github.io/blob/source/source/img/sux/donate_alipay.png)

# Installation & Usage

- English: https://greasyfork.org/en/scripts/458022-auto-toc?locale_override=1
- 中文: https://greasyfork.org/zh-CN/scripts/458022-auto-toc?locale_override=1

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 与否.