User:RailBot/global.js

if (/bot|sysop|content-moderator/.test(mw.config.get('wgUserGroups').join)) { window.batchDeleteDelay = 100; window.massRenameDelay = 100; window.massEditConfig = { editInterval: 100 }; LIRoptions = { delay: 100 };

if (mw.config.get('wgContentLanguage') === 'pl') { window.WHAMDeleteReason = "Sprzątanie"; window.WHAMBlockReason = "Wandalizm"; window.massRenameSummary = 'Automatyczna zmiana nazw stron (MassRename)'; LIRoptions = { editSummary: 'Automatyczna aktualizacja nazw plików FileUsageAuto-update' }; window.massEditConfig = { editSummary: 'Automatyczna edycja stron (MassEdit)' }; } else { window.WHAMDeleteReason = "Cleanup"; window.WHAMBlockReason = "Vandalism"; window.massRenameSummary = 'Automatic page rename (MassRename)'; LIRoptions = { editSummary: 'Automatic file rename FileUsageAuto-update' }; window.massEditConfig = { editSummary: 'Automatic edit (MassEdit)' }; }

importArticles({       type: 'script',        articles: [            'u:dev:MassEdit/code.js',            'u:dev:MassRename/code.js',            'u:dev:AjaxBatchDelete/code.js',            'u:dev:FileUsageAuto-update/code.js',            'u:dev:PageRenameAuto-update/code.js',            'u:dev:MultiUpload/code.js',            'u:dev:AjaxUndo/code.js',            'u:dev:FindAndReplace/code.js',            'u:dev:WHAM/code.2.js'        ]    }); $('#mw-deleteconfirm-table input#wpReason').val(''); $('td.mw-input input#wpLeaveRedirect').prop('checked', false); }