User:Stinglehammer/tools.js

function addToToolbox { if (mw.config.get('wgCanonicalNamespace') == "Special") { return; }

mw.util.addPortletLink('p-tb', 'https://tools.wmflabs.org/pageviews/?project=en.wikipedia.org&platform=all-access&agent=user&range=latest-30&pages=' + encodeURI(mw.config.get('wgPageName')), 'Page views', '', 'Traffic to this page in the last month'); mw.util.addPortletLink('p-tb', 'https://tools.wmflabs.org/copyvios/?lang=en&project=wikipedia&oldid=&action=search&use_engine=1&use_links=1&turnitin=1&title=' + encodeURI(mw.config.get('wgPageName')), 'Plagiarism check', '', 'Run plagiarism check on this page'); }

if ($.inArray( mw.config.get( 'skin' ), [ "myskin", "simple" , "monobook" , "modern", "chick" , "vector" ] ) !== -1) { $(addToToolbox); }