User:M.C./monobook.js

/* force navboxes to stay uncollapsed */

function collapseTable( tableIndex )

{

var Button = document.getElementById( "collapseButton" + tableIndex );

var Table = document.getElementById( "collapsibleTable" + tableIndex );

if ( !Table || !Button ) {

return false;

}

var Rows = Table.rows;

if ( Button.firstChild.data == collapseCaption ) {

for ( var i = 1; i < Rows.length; i++ ) {

}

Button.firstChild.data = expandCaption;

} else {

for ( var i = 1; i < Rows.length; i++ ) {

Rows[i].style.display = Rows[0].style.display;

}

Button.firstChild.data = collapseCaption;

}

}

importScript('Wikipedia:WikiProject User scripts/Scripts/Sigdash');