MediaWiki:Mobile.js: Difference between revisions
Created page with "→Any JavaScript here will be loaded for users using the mobile site: /*================================================== $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat E..." |
No edit summary Tags: Mobile edit Mobile web edit |
||
Line 524: | Line 524: | ||
} | } | ||
/* Username inserts for the Player template; source: KHWiki.com */ | |||
function UserNameReplace() { | |||
if (typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || mw.config.get('wgUserName') == null) return; | |||
$('span.insertusername').each(function () { | |||
$(this).text(mw.config.get('wgUserName')); | |||
}); | |||
} | |||
$(UserNameReplace); |