User:Svick/common.js

var revisions = []; $.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(obj, function(key, value) { revisions.push(value); });

/*   for (var i = 0; i < revisions.length; i++) { var user = revisions[i].user; revisions.push(user); }*/

alert(revisions); });