User:BPositive/getPageContent.js

mw.loader.using( 'mediawiki.api', function {    var api = new mw.Api;    api.get({ action:'query', prop: 'revisions', format: 'txt', rvprop: 'timestamp','user','content', rvlimit: 1, titles: 'User:BPositive' }).done(function(data){ console.log(data.query.pages[0]) }); });