Toc Bar

A floating table of content widget

Från och med 2020-07-03. Se den senaste versionen.

Skapare
hikerpig
Betyg
0 0 0
Version
1.0.3
Skapad
2020-07-01
Uppdaterad
2020-07-03
Licens
MIT
Gäller för

Toc Bar

A user script that adds floating widget displaying table of content of current page.

Currently only tailored for some popular sites. Feel free to tweak the settings or open a PR.

✨Features

  • Use tocbot for toc generation.
  • For some sites, there is no id on header elements so it would be impossible to navigate by clicking the toc link. Toc Bar will generate ids - which are derived from a simple hash of the header textContent, and prefixed with tocbar- - for these headers.

Screenshots

zhuanlan-sspai

Acknowledgements

Inspired by github-toc by Mottie