Jump to content

User:Jmcgnh/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jmcgnh (talk | contribs) at 03:00, 28 August 2017 (Add Lourdes/PageCurtion; refactor Earwig copyvio to change timing of when code runs). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// 2017-08-16 alternate hostname for dispenser tools: toolserver.org

mw.util.addPortletLink ('p-tb', wgServer+wgArticlePath.replace("$1", "Special:PrefixIndex/"+wgPageName+"/"), 'Subpages');

mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );

mw.util.addPortletLink ('p-tb', "http://toolserver.org/~dispenser/cgi-bin/dab_solver.py/" + mw.config.get('wgPageName'), 'Dab solver');

mw.util.addPortletLink ('p-tb', "http://toolserver.org/~dispenser/cgi-bin/dablinks.py?page=" + mw.config.get('wgPageName'), 'Dablinks');

mw.util.addPortletLink ('p-tb', "https://tools.wmflabs.org/dplbot/dab_fix_list.php?title=" + mw.config.get('wgPageName'), 'Dab fix list');

mw.util.addPortletLink ('p-tb', "http://toolserver.org/~dispenser/cgi-bin/webchecklinks.py?page=" + mw.config.get('wgPageName'), 'Checklinks');

mw.util.addPortletLink ('p-tb', "http://sumsearch.org/cite/", 'Cite maker1');

importScript('User:Frietjes/findargdups.js'); // [[User:Frietjes/findargdups]]

mw.util.addPortletLink(
        "p-tb",
        "https://tools.wmflabs.org/copyvios/?lang=" + mw.config.get("wgContentLanguage") + "&project=" + mw.config.get("wgSiteName").toLowerCase() + "&title=" + encodeURIComponent(mw.config.get("wgPageName")),
        "Copyvio check",
        "t-copyvio-check",
        "Check this page for copyright violations"
    );

importScript('User:Lourdes/PageCuration.js'); // Linkback: [[User:Lourdes/PageCuration.js]]