User:Tristanseifert/monobook.js

// various mods are collected in this object window.tristanseifert = { // set so that all collapsibles are opened by default unCollapse: true, // initialisation function init: function { if(window.tristanseifert.unCollapse === true) { window.tristanseifert.___func.unCollapse; }	},	// the various routines that do stuff ___func: { unCollapse: function { $('.collapsible tr').each(function(index) {				$(this).css('display', '');			}); }	} };

// tie everything to a document.ready event $(document).ready(function {	window.tristanseifert.init; });