User:Ursuul/global.js

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

if (mw.config.get("wgUserGroups").indexOf('bureaucrat') > -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',        'u:dev:MassRenameRevert/code.js',        'u:dev:AutoEditPages/code.js'    ] }); }

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',        'u:dev:MassRenameRevert/code.js',        'u:dev:AutoEditPages/code.js'    ] }); }

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

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

//importScriptPage('YouTubeModal/code.js', 'dev');

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:MediaWiki:BlankBlogBugfix/code.js',        'u:dev:YouTubeModal/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:AutoEditDropdown/code.js'    ] });