Kamel:J*/Observatorium/Statistikaktualisierer.js

var request = new Async([       function ( args ) {             if (args == null)                args = {};            if (args.next == null)                args.next = "";            new Ajax.Request( wgServer+"/api.php", { method:'get', parameters: 'action=query&auprop=editcount&list=allusers&aulimit=5000&format=json', onSuccess: function( transport ) { args.result = transport.responseText; request.continue(args); }, onFailure: function { args.result = null; request.continue( args ) } })       },        null,        function (arg) {            $("st_edit").innerHTML = "";            $("st_nulledit").innerHTML = 0;            eval("arg.obj="+arg.result);            list = arg.obj.query.allusers;            list.sort( function(a,b) { return b.editcount - a.editcount } );            for(k=0; k 400)                    $("st_edit").innerHTML += " "+list[k].name+" ("+  list[k].editcount+") ";            }            if (arg.obj["query-continue"] != null)                alert("Nicht alle Kamele konnten erfasst werden. Mach bitte bei Kamel:"+arg.obj["query-continue"].allusers.aufrom+" weiter!"); else $("st_status").innerHTML = "Fertig."; }   ]);

function st_init {   $("st_start").onclick=function  {request.start;}; }

addOnloadHook(st_init);