User:Absconditus/common.js

addPortletLink('p-interaction', '//en.wikipedia.org/wiki/special:NewPages', 'New pages', 'p-newp'); if(wgNamespaceNumber == '2') mw.util.addPortletLink('p-toolbox', '//en.wikipedia.org/wiki/special:PrefixIndex/User:' + wgPageName.replace(/User:(.*)\/(.*)/, $1), 'Subpages', 'p-subs'); mw.loader.load('https://ru.wikipedia.org/w/index.php?title=Участник:T_kns/imagebox.js&action=raw&ctype=text/javascript'); importScript('User:Amalthea/userhighlighter.js'); importScript('User:Absconditus/defaultsummaries.js'); // Easy way to find test pages on Wikipedia namespace if( /Special:NewPages/.exec(wgPageName) ) { var el = document.getElementById("mw-newpages-table"); el.innerHTML = el.innerHTML + ' Exclude non-test pages'; function run { $('li:contains("for creation/")').hide; $('li:contains("for deletion/")').hide; $('li:contains("Peer review/")').hide; $('li:contains("Sockpuppet investigations/")').hide; }; }; importScript('User:Absconditus/cps.js'); mw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');