MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ //Enables template. function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace);

//Enables Template:Popup and Template:PopupContent. importArticles({   type: 'script',    articles: [        // ...        'w:c:dev:ReferencePopups/code.js',        // ...    ] });