User:Rangilo Gujarati/common.js

mw.loader.using('mediawiki.api', function { var api = new mw.Api; api.get({ action: 'query', list: 'users', usprop: 'editcount', ususers : wgUserName }).done( function(data){ console.log(data.query.users[0].editcount) }); });