User:Leon2323/enhanceduserpage.js

topaz.enhanceduserpage = new Object; topaz.enhanceduserpage.version = 20061107;

var vieweduser = location.href; var userloc = vieweduser.indexOf("User:"); if (userloc != -1) { vieweduser = vieweduser.substring(userloc+5);

var slashloc = vieweduser.indexOf("/"); if (slashloc != -1) { vieweduser = vieweduser.substr(0, slashloc); }

var lt = String.fromCharCode(60); var gt = String.fromCharCode(62); document.writeln(lt+'link rel="alternate stylesheet" type="text/css" href="/w/index.php?title=User:'+vieweduser+'/userpage.css&amp;action=raw&amp;ctype=text/css" title="Topaz\'s enhanced userpage mod" id="tz-enhanceduserpage"/'+gt);

topaz.enhanceduserpage.oldonload = window.onload; window.onload = function { if (typeof topaz.enhanceduserpage.oldonload == "function") topaz.enhanceduserpage.oldonload; with(topaz.util.getobj("tz-enhanceduserpage")) { disabled = true; //ie hack -_- disabled = false; } } }