2,513
edits
(use regex instead to actually replace all instances) |
|||
(14 intermediate revisions by 3 users not shown) | |||
Line 2:
//<nowiki>
//This script automates the process of finding inactive sysops.
//Output is in the format of "[[User:Example|Example]] || [[Special:PermanentLink/1234|timestamp]] || [[Special:Log/Example|timestamp]]"
mw.loader.using(['oojs-ui', 'mediawiki.util']).done( function () {
Line 93 ⟶ 92:
var checked = 0;
var inactive = [];
var checkList = [];
var total = 0;
// Get user list
Line 124 ⟶ 125:
function filterUsers ( userlist ) {
var userstring = userlist.toString();
var exempt = ["John
for ( i = 0; i < exempt.length; i++ ) {
Line 130 ⟶ 131:
}
}
function checkUser( user
$.getJSON(
mw.util.wikiScript( 'api' ),
Line 176:
checked++;
progressBar.setProgress( parseInt(
if(
checkUser( checkList.pop() );
} else {
listInactiveUsers();
}
|