User:Σ/Testing facility/Bar.js

//***************************************************************************// //****Adds a link to use ~dispenser/view/Checklinks on a page.*****// //****Someone probably beat me to this already, though. Oh well.*************// //***************************************************************************// function addLinkToDispensersChecklinksToolThingy {if ((wgNamespaceNumber === 0 || wgNamespaceNumber === 2) && (document.getElementById('ca-edit'))) {addPortletLink("p-tb",                       "http://toolserver.org/~dispenser/cgi-bin/webchecklinks.py?page="+wgPageName,                        "Run checklinks",                        "t-random-span-id-that-hopefully-is-unique",                        "Check external links for linkrot",                        "",                        ""); }   }; $(addLinkToDispensersChecklinksToolThingy);