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.
// check citation references
if (mw.config.get('wgNamespaceNumber') == 0) {
    importScript('User:Ucucha/HarvErrors.js');
}

// add peer review to edit page
importScript('User:AndyZ/peerreviewer.js');

// customize Navigation popups gadget
popupFixDabs = true;

// add reference formatting tool
importScript('User:Smith609/toolbox.js');

// extra tools for user and user talk pages
function usertools(){
    var username = encodeURIComponent(mw.config.get('wgTitle'));
    mw.util.addPortletLink('p-tb', 'http://en.wikipedia.org/w/index.php?title=Special:Log&page=User:' + username, 'user log');
    mw.util.addPortletLink('p-tb', 'https://en.wikipedia.org/wiki/Special:CentralAuth?target=' + username, 'global account');
    mw.util.addPortletLink('p-tb', 'http://en.wikichecker.com/user/?l=all&t=' + username, 'edit analysis');
    mw.util.addPortletLink('p-tb', 'https://xtools.wmflabs.org/ec/en.wikipedia.org/' + username, 'edit counter');
    mw.util.addPortletLink('p-tb', 'http://en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=' + mw.config.get('wgPageName') + '%2F', 'subpages');
    mw.util.addPortletLink('p-tb', 'https://sigma.toolforge.org/editorinteract.py?users=' + username + '&users=Kanguole', 'interaction');
}
if (mw.config.get('wgCanonicalNamespace') == "User" || mw.config.get('wgCanonicalNamespace') == "User_talk") {
    addOnloadHook(usertools);
}