User:Kanguole/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .css page for this skin is at User:Kanguole/common.css. |
// 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);
}