User:Sohom Datta/contribs-link.js

if ( mw.config.get( 'wgCanonicalNamespace' ) === 'User' ) { var username = mw.config.get( 'wgPageName' ); var contribsLink = 'https://en.wikipedia.org/wiki/Special:Contribs/' + username; mw.util.addPortletLink( 'p-associated-pages', contribsLink, 'Contributions' ); }