User:Hmlarson/common.js

importStylesheet( 'User:Hmlarson/stylesheet.css' ); importScript('User:Dr_pda/prosesize.js'); mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" ); mediaWiki.loader.load( '//ru.wikipedia.org/w/index.php?title=MediaWiki:WEF_AllEditors.js&action=raw&ctype=text/javascript' ); mw.loader.load('https://meta.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:MoreMenu.import.js'); importScript('User:Evad37/ToDoLister.js'); importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool

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

/* Adds a toolbox link to do a copyvio check on the given page. */

mw.loader.using("mediawiki.util", function {   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" ); });

var ptLinksToAdd = [ {               label: "WOSO", title: "WOSO", url: "https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Football/Women%27s_football_task_force", index: 20 },       {                label: "WS", title: "WS", url: "https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Women%27s_sport", index: 21 },       {                label: "WMN", title: "WMN", url: "https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Women", index: 23 } ]; importScript('User:IagoQnsi/addptlinks.js');

// Please leave the following line // user:Where/usertabs addOnloadHook(function { if (mw.config.get('wgTitle').indexOf("/") != -1 || document.title.indexOf("- History -") != -1)  //no subpages or history     return;  if (mw.config.get('wgCanonicalNamespace') == "User" || mw.config.get('wgCanonicalNamespace') == "User_talk") {     var username = encodeURIComponent( mw.config.get('wgTitle') );     mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/wiki/Special:Contributions/" + username, "Contribs", "ca-contrib", "User contributions");     mw.util.addPortletLink("p-cactions","http://tools.wmflabs.org/xtools/pcount/index.php?name=" + username + "&wiki=wikipedia&lang=en", "Edit count", "ca-editcount", "Edit count");     mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Log&type=move&user=" + username, "Page moves", "ca-pagemoves", "Page moves by this user");     mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Log&type=block&page=User:" + username, "Blocks received", "ca-blog", "Blocks received by this user"); mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Prefixindex&from=" + username + "&namespace=2", "Userspace", "", "List of pages in this user's userspace"); mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Log&type=block&user=" + username, "Blocks given", "", "Blocks by this user"); mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Log&type=protect&user=" + username, "Protections", "", "Protections by this user"); mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + "/w/index.php?title=Special:Log&type=delete&user=" + username, "Deletions", "", "Deletions by this user"); } });

//