User:Gauransh Dingwani/common.js

var api = new mw.Api; api.get( {   action: 'query',    meta: 'userinfo' } ).done( function ( data ) {    console.log( data ); } );