MediaWiki:Group-user.js

/* Any JavaScript here will be loaded for registered users only */

//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**// /* IRC Login name changer *//* wgUserName if registered or DDOwiki_user_# otherwise.
 * BY: User:Technical 13
 * 27 March 2013
 * Modified 15 August 2016 by User:Technical 13
 * Modified 17 September 2021 by User:Technical 13

var uNamee = mw.config.get( 'wgUserName' ).replace( ' ', '_' ); $( '.IRCnick' ).parents( '.StartChatting' ).each( function ( foo, IRClink ) { var href = IRClink.firstChild.href.replace( /DDOwiki_user_[\d]+/, uNamee ); IRClink.firstChild.href = href; } );