Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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)