User:Mvolz/displayContributions.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 ) {	    	var contribs = document.getElementById( 'pt-mycontris' )	    	if ( contribs) contribs.append( ' (' + result.query.userinfo.editcount + ')' );	    } ); } ); } );