MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 33: Line 33:
         ).addClass('loaded');
         ).addClass('loaded');
     });
     });
});
/* Replaces {{Username}} with the name of the user browsing the page.
  Requires copying Template:Username. */
function UserNameReplace() {
    if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return;
    $("span.insertusername").html(wgUserName);
}
addOnloadHook(UserNameReplace);
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:YoutubePlayer/code.js'
    ]
});
});