User:Tono555/global.js

mw.loader.load('https://internal-soap.fandom.com/index.php?title=User:Tono555/scripts-ucp.js&action=raw&ctype=text/javascript');

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:FastDelete/code.js',        'u:dev:MediaWiki:DiscussionsViewer.js',        'u:dev:MediaWiki:ArchiveTool/code.js',        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:dev:MediaWiki:QuickDiff/code.js',        'u:dev:RevealAnonIP/usercode.js',        'u:dev:AnchoredRollback/code.js',        'u:dev:MediaWiki:ContribsLink/code.js',        'u:dev:MediaWiki:DisplayTimer/code.js',        'u:dev:MediaWiki:RecentChangesMultiple/code.2.js',        'u:dev:MediaWiki:AjaxDelete/code.js',        'u:dev:MediaWiki:FileTools.js',        'u:dev:MediaWiki:AjaxUserRights.js',    ] });

// FastDelete buttons window.fdButtons = [ {       summary: 'Housekeeping', label: 'HK' },   {        summary: 'Vandalism', label: 'V'   }, {       summary: 'Spam', label: 'S'   }, {       summary: 'Cleanup', label: 'C↑' },   {        summary: 'Violation of the ToU', label: 'ToU' }, ];

function init { window.dev = window.dev || {}; if ( window.dev.wclink ) { return; }		window.dev.wclink = true;
 * (function {

var conf = mw.config.get( [ 'wgPageName' ] ); if ( conf.wgPageName !== 'Special:LookupContribs' && conf.wgPageName !== 'Special:LookupUser' ) { return; }

var table = document.querySelector( '.lookup-user__table-wrapper .mw-datatable' ) || document.querySelector( '.lookup-contribs__table-wrapper table' ); if ( !table ) { return; }		table.querySelectorAll( 'tr td:nth-child(2) a:first-child' ).forEach( function ( link ) {			var name = link.href.substring( 8, link.href.length - 1 );			var wikiconfig = ' (WC)';			link.parentElement.insertAdjacentHTML( 'beforeend', wikiconfig );		} ); }

mw.hook('wikipage.content').add(init); });