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.
//add this to vector.js or whatever style you use. after adding hit ctrl + F5 to reset the browser.
mw.loader.load("https://en.wikipedia.org/?title=User:Pasixxxx/TOCLinker.js&action=raw&ctype=text/javascript");
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.
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.
//add this to vector.js or whatever style you use. after adding hit ctrl + F5 to reset the browser.
mw.loader.load("https://en.wikipedia.org/?title=User:Pasixxxx/TOCLinker.js&action=raw&ctype=text/javascript");
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.