User:ZeroOne/monobook.js

From NetHackWiki
Jump to: navigation, search
addOnloadHook(
  function() {
    var imgSrc = document.getElementById('pageicon').childNodes[0].getAttribute('src');
    var title = document.getElementById('firstHeading');
    title.innerHTML = '<img src="'+imgSrc+'" style="margin-right:1em;" />'+title.innerHTML;
  }
);