Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hikerpig/toc-bar-userscript
A user script that adds floating widget displaying table of content of current page
https://github.com/hikerpig/toc-bar-userscript
greasyfork openuserjs tableofcontents violentmonkey-script
Last synced: about 3 hours ago
JSON representation
A user script that adds floating widget displaying table of content of current page
- Host: GitHub
- URL: https://github.com/hikerpig/toc-bar-userscript
- Owner: hikerpig
- Created: 2020-07-01T15:22:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-14T02:53:00.000Z (9 months ago)
- Last Synced: 2024-04-17T05:07:20.580Z (6 months ago)
- Topics: greasyfork, openuserjs, tableofcontents, violentmonkey-script
- Language: JavaScript
- Homepage:
- Size: 862 KB
- Stars: 30
- Watchers: 3
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README-zh_CN.md
Awesome Lists containing this project
README
# Toc Bar
一个油猴脚本,在页面中插入一个显示当前内容大纲的浮动组件,可[去 greasyfork 下载](https://greasyfork.org/zh-CN/scripts/406337-toc-bar)。
目前适配了一些个人经常访问的网站,主要面向技术阅读,知乎/Medium/devto/github 之类。
## ✨Features
- 使用 [tocbot](https://tscanlin.github.io/tocbot) 生成 Table of Content
- 对一些页面中 `h*` 标签不带 id 的网站,生成 id,以实现点击 TOC 标题跳转到对应内容的功能
- 不想使用的时候,组件可以一键折叠,避免挡住正在浏览的内容## Screenshots
![tocbar-github.png](https://raw.githubusercontent.com/hikerpig/toc-bar-userscript/master/images/screenshot-3.png)
![devto](https://raw.githubusercontent.com/hikerpig/toc-bar-userscript/master/images/screenshot-2.png)
![zhuanlan-sspai](https://raw.githubusercontent.com/hikerpig/toc-bar-userscript/master/images/screenshot-1.jpg)