User:RenesSans/global.js

/* Fngplg */ $('.masthead-info .wikis li a').each(function{var $this=$(this),nss={2:'user',500:'user_blog',1200:'message_wall'};$this.attr('href',$this.attr('href').replace(/\/wiki\/.*/,'/wiki/'+(nss[mw.config.get('wgNamespaceNumber')]?nss[mw.config.get('wgNamespaceNumber')]+':':('special:'+mw.config.get('wgCanonicalSpecialPageName')+'/'))+mw.config.get('wgUserName')))});