MediaWiki:Common.js

/* */

// Inserts user name into (from Uncyclopedia:MediaWiki:Uncyclopedia.js)

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")) { UserName.innerHTML = wgUserName; }   } }

//