User:VegaDark/wikia.js

function UserNameReplace { if (wgUserName) { var spans = getElementsByClassName(document, "span", "insertusername"); for (var i = 0; i < spans.length; i++) { spans[i].innerHTML = wgUserName; }; }; };

addOnloadHook(UserNameReplace);