2,743
edits
m (seems I pasted an old version of the code.) |
m (wee.) |
||
Line 145: | Line 145: | ||
updateClocks(); | updateClocks(); | ||
} | } | ||
/** Username replace function ([[template:USERNAME]]) ******************************* | |||
* Inserts user name into <span class="insertusername"></span> | |||
* Originally by http://www.wikia.com/wiki/User:Splarka | |||
* New version by http://uncyclopedia.wikia.com/wiki/User:Spang | |||
*/ | |||
function UserNameReplace() { | |||
if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; | |||
var n = YAHOO.util.Dom.getElementsByClassName('insertusername', 'span', document.getElementById('bodyContent')); | |||
for ( var x in n ) { | |||
n[x].innerHTML = wgUserName; | |||
} | |||
} | |||
addOnloadHook(UserNameReplace); | |||
/* </pre> */ | /* </pre> */ |
edits