User:SolaPan/monobook.js

// var TOOLSCRIPTPATH = 'MediaWiki:';

function DocWriteJS(page){ var str = ' '; //   alert(str); document.write(str); }

// Loads up MediaWiki:DebuggerInit.js and MediaWiki:DebugTools.js var DEBUGMODE = true;

alert('Once upon two times there were three frogs who ate four trolls that lived above bridges which are toll-free on the five weekdays');

function debuggerInit { if (!DEBUGMODE) return;

var debugDiv = document.createElement("div"); debugDiv.id = '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);

//   document.body.appendChild(debugDiv);

return true; } /*

alert('DebuggerInit called in sick');

} addOnloadHook(debuggerInit);

/* if (DEBUGMODE) { //alert('there was a frog-eating headlesschicken'); //   DocWriteJS('DebuggerInit.js'); DocWriteJS('DebugTools.js'); }

/* * Overwrites the original function in http://gw.gamewikis.org/skins/common/sorttable.js  * with MediaWiki:sortable_mod.js. */ function sortableTables { if (getElementsByClassName(document, "table", "sortable").length != 0) { DocWriteJS('sortable_mod.js'); } }

//