User:CatherineMunro/tricks

// inserts user name into CatherineMunro addOnloadHook(UserNameReplace);

function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace) { return; }

for(var i=0; UserName = document.getElementsByTagName("span")[i]; i++) { if ((document.getElementById('pt-userpage'))&&(UserName.getAttribute('id') == "insertusername")) { var ViewerName = document.getElementById('pt-userpage').firstChild.innerHTML; UserName.innerHTML = ViewerName; }  }

}