Jump to content

User:Pasixxxx/TOCLinker

From Wikipedia, the free encyclopedia

Javascript code that helps to navigate in long articles. Code inserts table of contents-links beside the [edit] tag, so that user can navigate to TOC by clicking a link.

Usage

[edit]

//add this to vector.js or whatever style you use. after adding hit ctrl + F5 to reset the browser.

mw.loader.load("//wiki.riteme.site/w/index.php?title=User:Pasixxxx/TOCLinker.js&action=raw&ctype=text/javascript");

Code

[edit]

User:Pasixxxx/TOCLinker.js

See also

[edit]

There is a similar and leaner script than this at w:Wikipedia:Back_to_top and it almost does the same things as this. It does not work while editing an article.