User:Fred Bradstadt/show all collapsed tables.js

// A function to un-collapse all collapsed tables on a page addOnloadHook(function { var ti = 0;  var Ta = document.getElementsByTagName( "table" );  for ( var i = 0; i < Ta.length; i++ ) {    if ( $( Ta[i]).hasClass( "collapsible" ) && document.getElementById( "collapseButton" + ti ).firstChild.data == expandCaption ) {      collapseTable( ti );      ti++;    }  } });