User:MichiRecRoom/global.js

// Prevent Javascript on global.js page if (mw.config.get("wgPageName") == "User:" + mw.config.get("wgUserName") + "/global.js") { throw new Error("User is on javascript page; disabled."); } /* If anyone cares, I'd like to ask that those lines be kept at the TOP of this page unless I specifically remove them. It's a failsafe in case I screw something up. If I add a script and those lines get removed for no apparent reason, that may be a cue that something is up.

nullEditDelay = 250; importSetNorm = [ 'u:dev:AjaxUndo/code.js', 'u:dev:MassNullEdit/code.js', 'u:dev:Message/code.js', 'u:dev:NullEditButton/code.js', 'u:dev:RedirectManagement/code.js', 'u:dev:ViewRemoved/code.js', 'u:dev:WHAM/code.2.js' ];

if (mw.config.get("wgUserGroups").indexOf('sysop') > -1) { if (mw.config.get("wgDBname") == "michitest") { batchDeleteDelay = 250; massCategorizationDelay = 250; massRedirectDelay = 250; massRenameDelay = 250; } else { batchDeleteDelay = 500; massCategorizationDelay = 1000; massRedirectDelay = 1000; massRenameDelay = 1000; }

massRenameSummary = 'automatic';

PRAoptions = { editSummary: 'Updating page links (automatic)' };

importSetAdmin = [ 'u:dev:AjaxBatchDelete/code.2.js', 'u:dev:AjaxBatchUndelete/code.js', 'u:dev:CategoryRenameAuto-update/code.js', 'u:dev:MassCategorization/code.js', 'u:dev:MassRedirect/code.2.js', 'u:dev:MassRename/code.js', 'u:dev:MassRenameRevert/code.js', 'u:dev:PageRenameAuto-update/code.js' ];   importThese = $.merge(importSetNorm, importSetAdmin); } else { importThese = importSetNorm; } importArticles({   type: 'script',    articles: importThese });