MediaWiki:Monobook.js

var user = window.wgTitle; var slash = user.indexOf('/'); $(document).ready(function { if (wgNamespaceNumber == '2' || wgNamespaceNumber == '3') { $('#p-cactions ul').append('Contributions'); } else if (slash != -1) {	user = user.substr(0, slash); } });