User:BPositive/getPageContent.js

mw.loader.using( 'mediawiki.api', function {    var api = new mw.Api;    api.get({ action:'query', prop: 'revisions', format: 'json', rvprop: 'content', titles: 'User:BPositive' }).done(function(data){ console.log("Data: " + data['query']['pages']['102456']['revisions'][0]['*']); //console.log("done"); }); });