User:Commander Keane/dabInArticleLink.js

function addToToolbox { if (wgCanonicalNamespace != "Special") { var pTb = document.getElementById("p-tb"); var pRef = pTb.cloneNode(true); var pStats = pTb.cloneNode(true); pRef.id="p-refs"; pRef.innerHTML = " Disambiguation  "; pDisambig.id="p-disambig"; mw.util.addPortletLink("p-disambig", "http://toolserver.org/~jason/disambigs_in_an_article.php?title=+wgPageName", 'Find disambiguations', '', "Find all links to disambiguation pages on the current page"); } } addOnloadHook(addToToolbox);