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;

function debuggerInit { alert('DebuggerInit called in sick'); 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);

/* 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'); } }

//