User:Ursuul/global.js

window.RevealAnonIP = { permissions : ['user'] };

if (mw.config.get("wgUserGroups").indexOf('sysop') > -1) { massRenameDelay = 1000; // Optional massRenameSummary = 'automated'; // Optional massRedirectDelay = 1000; massBlockDelay = 1000; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MassCategorization/code.js',        'u:dev:MassRedirect/code.1.js',        'u:dev:MassProtect/code.js',        'u:dev:MediaWiki:MassRename/code.js',        'u:dev:MediaWiki:AnchoredRollback/code.js',        'u:dev:MassUserRights/code.js',        'u:dev:MediaWiki:MassBlock/code.js'    ] }); }

if (mw.config.get("wgUserGroups").indexOf('content-moderator') > -1) { massRedirectDelay = 1000; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AnchoredRollback/code.js'    ] }); }

if (mw.config.get("wgUserGroups").indexOf('rollback') > -1) { massRedirectDelay = 1000; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AnchoredRollback/code.js'    ] }); }

importArticles({   type: 'script',    articles: [        "w:c:dev:RevealAnonIP/usercode.js",        'u:dev:MediaWiki:ContribsLink/code.js',        'u:dev:MediaWiki:Rollback/code.js',        'u:dev:MarkBlocked.js',        'u:dev:Message/code.js',        'u:dev:MediaWiki:ViewRemoved/code.js',        'u:dev:YouTubeModal/code.js'        //'u:dev:MediaWiki:MassCategorization/code.js',        //'u:dev:MassRedirect/code.1.js'    ] });