User:RailBot/global.js

require([   'jquery',    'mw',    'wikia.window' ], function( $, mw, window ) {    var config = mw.config.get([ 'wgTrackID', 'wgUserGroups' ]);   if ( window.RailBotScriptLoaded || config.wgTrackID !== 35364715 ) return;    window.RailBotScriptLoaded = true;    if ( /bot|sysop|content-moderator/.test( config.wgUserGroups.join ) ) {        importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:AjaxUndo/code.js', 'u:dev:MediaWiki:MassNullEdit/code.js', 'u:dev:MediaWiki:MassCategorization/code.js', 'u:dev:MediaWiki:MassRename/code.js', 'u:dev:MediaWiki:MassProtect/code.js', 'u:dev:MediaWiki:AjaxBatchDelete.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:MassBlock/code.js' ]       });    } });