User:Galobtter/scripts/displayContributions.js

/* Derived from User:Mvolz/displayContributions.js */ $.when($.ready, mw.loader.using( 'mediawiki.api' )).then( function {   ( new mw.Api ).get( { action: 'query', meta: 'userinfo', uiprop: 'editcount' } ).then( function( result ) { $( '#pt-mycontris' ).append( ' (' + result.query.userinfo.editcount + ')' ); } ); } );