User:Adam660@legacy41957735/monobook.js

// // addPurge // adds a "purge" tab (after "watch") // addOnloadHook(function {    var hist; var url;    if (!(hist = document.getElementById('ca-history') )) return;    if (!(url = hist.getElementsByTagName('a')[0] )) return;    if (!(url = url.href )) return;    addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'), 'purge', 'ca-purge', 'Purge server cache for this page', '0'); }); //

// // addLogs // adds a 'page logs' link to the toolbox bar (if the page is a special page, then no link is displayed) // addOnloadHook(function {    if ( wgCanonicalNamespace == "Special" )        return;  // don't display link for special pages

url = wgServer + "/index.php?title=Special:Log&page=" + encodeURIComponent(wgPageName);

addPortletLink("p-tb", url, "Page logs", "pt-logs"); }); //

// // addSubpages // adds a 'subpages' link to the toolbox bar (excludes File, MediaWiki and Category namespaces) // addOnloadHook(function {  var NSWithoutSubpages = new Array(-1, 6, 8, 14);  if (document.getElementById('p-tb') && NSWithoutSubpages.indexOf(wgNamespaceNumber) == -1)    {    var linkSubpages = '/Special:PrefixIndex/' + wgPageName + '/';    addPortletLink('p-tb', linkSubpages, 'Subpages', 't-subpages', 'Subpages of this page');    } }); //