MediaWiki:Commons.js

/* function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace);

if (wgUserName != 'null') { $('.insertusername').html(wgUserName); }