MediaWiki:ListAdmins/code.js

$(function {    if (!$('#admin-list').length) return;    $.getJSON('http://url.wikia.com/api.php?action=query&list=allusers&augroup=sysop&format=json', function (data) { if ('undefined' == typeof data.query || 'undefined' == typeof data.query.allusers) return; var html = ''; for (var i = 0; i < data.query.allusers.length; i++) { console.log(data.query.allusers[i]); var n = data.query.allusers[i].name; html += '' + n + ''; }       if (html.length) { $('#admin-list').html('' + html + ''); }   }); });