User:Nillerdk/monobook.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 = " Reference formatting  "; pStats.id="p-stats"; pStats.innerHTML = " Statistics  "; pTb.parentNode.insertBefore(pRef, pTb.nextSibling); pTb.parentNode.insertBefore(pStats, pRef); addPortletLink("p-refs", "http://tools.wikimedia.de/~verisimilus/Bot/DOI_bot/doibot.php?edit=toolbar&turbo=1&user="+wgUserName+"&page="+wgPageName, 'Automatic (fast)', '', "Add DOIs to citations and fix common formatting errors. Turbo mode!"); addPortletLink("p-refs", "http://tools.wikimedia.de/~verisimilus/Bot/DOI_bot/doibot.php?edit=toolbar&slow=1&user="+wgUserName+"&page="+wgPageName, 'Automatic (thorough)', '', "Add DOIs to citations and fix common formatting errors"); addPortletLink("p-refs", "http://tools.wikimedia.de/~verisimilus/Scholar/RefTool.php?user="+wgUserName+"&wgPageName="+wgPageName, 'Semi-automatic (experimental)', '', "Improve formatting of references – manually approve automatic improvements"); addPortletLink("p-stats", "http://stats.grok.se/en/200810/"+wgPageName, 'Traffic stats', '', "Traffic to this page last month"); addPortletLink("p-stats", "http://wikidashboard.parc.com/wiki/"+wgPageName, 'Edit history stats', '', "Statistics about the edit history of this page"); } } $(addToToolbox);