User:Jan Silija/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 + ')' );	    } ); } ); } );

// please god let this work // I got this from user:Mvolz, thank you buddy c: