User:PanSola/monobook.js

/* * */

var debugMSG = "";

function debugToolsInit { var debugDiv = document.createElement("div"); debugDiv.id = 'debugDiv'; document.getElementById('bodyContent').appendChild(debugDiv); debugDiv.style.background='yellow'; debugDiv.style.clear='both'; debugDiv.style.display = 'none'; } function debug(message){ debugMSG += message + ' '; }

function printDebug{ var debugDiv = document.getElementById('debugDiv'); debugDiv.innerHTML += debugMSG; debugDiv.style.display = 'block'; debugMSG = ""; }

addOnloadHook(debugToolsInit); /* */

/* * 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) { document.write(' '); } }

/* 1.2