User:Reiazur/global.js

importArticles({   type: "script",    articles: [        "w:c:dev:Countdown/code.js"    ] });

/* Replaces the code " " with the name of the user browsing the page. */ function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace); /* End of the replacement */

/* Replaces the code" "with the IP address of the user browsing the page */

function IPAddressReplace { if(typeof(disableIPAddressReplace != "undefined" && disableUsernameReplace || wgIPAddress == null) return;   $("span.insertipaddress").html(wgIPAddress); } addOnloadHook(IPAddressReplace);

/* Ending */