Board Thread:General Coding Help/@comment-4347751-20170816195755/@comment-27958705-20170816213346

without patrolling: var api = new mw.Uri({path: '/api.php'}); var request = api.clone.extend({action: 'query', list: 'recentchanges',  rcnamespace: '0', rcprop: 'user|timestamp|title|sizes|parsedcomment', rclimit: '500', format: 'json'}); $.getJSON(request).done(function(data){ //now response in the data object  //do what u want with data  console.log(data);  var changes = data.query.recentchanges;  var lis = $('');  $.each(changes, function(i, v){ lis.append($('', {text: v.ns+':'+v.title+':'+v.type+':'+v.oldlen+':'+v.newlen+':'+v.user+':'+v.parsedcomment+':'+v.timestamp})); }); $('#mw-content-text').prepend(lis); }); also, i set rclimit to 500, if u want more changes, then code will be slightly bigger, because of pagination.

lis - jq object holding ul with li's.

$('#mw-content-text').prepend(lis); - adds ul to ur page. demo purposes for. u can change mw-content-text to element where u want to add li's and prepend to append.