User:Svick/common.js

var users = []; $.getJSON('/api.php', {   action: 'query',    prop: 'revisions',    titles: mw.config.get("wgPageName"),    rvprop: 'user',    rvlimit: '50',    format: 'json' }, function (result) {    var revisions = result.query.pages[mw.config.get("wgArticleId")].revisions;    $.each(revisions, function(key, revision) { users.push(revision.user); });

alert(users ); });