/persistent-toc

A gadget to add persistent table of contents on Wikipeida articles

Primary LanguageJavaScriptMIT LicenseMIT

Persistent Table of Contents for Wikipedia

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

Please report problems on the issue tracker.

Usage

Add the following code to your common.js:

mw.loader.load( 'https://cdn.rawgit.com/prtksxna/persistent-toc/master/ptoc.css', 'text/css' );
mw.loader.load( 'https://cdn.rawgit.com/prtksxna/persistent-toc/master/ptoc.js', 'text/javascript' );

Screenshots

screen shot 2015-01-09 at 5 31 40 pm screen shot 2015-01-09 at 5 32 03 pm