I believe that every article on web should have a table of content.
This userscript is not production-ready yet. There's many improvement points. See TODO list.
TOC on Github
More:
- Medium
- Wikipedia
- Wikipedia custom theme with the awesome Stylish theme WikiTex
-
Choose a userscript engine for your favorist browser:
-
Install script via this link.
-
Open a Github, Wikipedia or Medium article, the TOC should be opened automatically after page is loaded. For example, try with this page:
-
TOC can be toggle using the shortcut key
Alt+q
.
This feature only works properly on Firefox with Markdown Previewer as of now. See demo
- Open
about:config
. - Look for
greasemonkey.fileIsGreaseable
, set totrue
. - Restart Firefox.
- Try with any local Markdown file.
MIT