MediaWiki:Gadget-SpecialPages.js/ActiveUsers.js

// Reload the page to get all users on one page var activeUsers = []; var i = 0; $('ul li:contains(" in the last ")').each(function{	activeUsers[i] = [];	activeUsers[i][0] = $(this).find('a:first').text;	activeUsers[i][1] = $(this).text.match(/([\d]*?) (action|edit)s? in the last /);	activeUsers[i][1] = parseInt(activeUsers[i][1][1].toString, 10);	activeUsers[i][2] = $(this).html;	i++; }); activeUsers.sort(function(a, b){   if (a[1] == b[1]) { return 0; }    if (a[1] > b[1]) { return 1; }    else { return -1; } }).reverse; for(i=0; i < activeUsers.length; i++){ console.info('User %d with %s edits: %s', i, activeUsers[i][1], activeUsers[i][0]/*, activeUsers[i][2]*/); }

// $('div#mw-content-text').html;