User:Xaosflux/common2.js

/* Show contributions */

$(document).ready( function { 	mw.loader.using( 'mediawiki.user', function { ( new mw.Api ).get( {	       action: 'query',	        meta: 'userinfo',	        uiprop: 'editcount'	    } ).done( function( result ) {	    	document.getElementById( 'pt-mycontris' ).append( ' (' + result.query.userinfo.editcount + ')' );	    } ); } ); } );