MediaWiki:DebuggerInit.js

function debuggerInit { //alert('Debug Tools init'); if (!DEBUGMODE) return;

var debugDiv = document.createElement("div"); debugDiv.id = 'debugDiv'; document.body.appendChild(debugDiv); debugDiv.style.background='yellow'; debugDiv.style.clear='both';

var debugHead = document.createElement("div"); debugHead.id = 'debugHead'; debugHead.innerHTML = 'Debug buffer header'; debugDiv.appendChild(debugHead); var debugBody = document.createElement("div"); debugBody.id = 'debugBody'; debugDiv.appendChild(debugBody); } addOnloadHook(debuggerInit);