Jump to content

User:Prtksxna/ptoc

From Wikipedia, the free encyclopedia
User script
ptoc.js
File:Persistent-toc-closed.png
Closed persistent toc
DescriptionPersistent table of contents in sidebar
Author(s)Prtksxna
StatusStable
Version?.0
UpdatedJanuary 19, 2015; 9 years ago (2015-01-19)
BrowsersAny modern browser
SkinsVector
SourceUser:Prtksxna/ptoc.js, User:Prtksxna/ptoc.css

A gadget to add persistent table of contents on articles. The table of contents move to the left sidebar after scrolling past the first section and they expand on hover.

Source

[edit]

Source is on Github so are issues.

Setup

[edit]

Add this to your common.js:

importStylesheet("User:Prtksxna/ptoc.css");
importScript("User:Prtksxna/ptoc.js");