User:CodeHydro/expandAll.js

for(i=0,togs=document.getElementsByClassName("mw-collapsible-toggle");i<togs.length;i++)if((a=togs[i].getElementsByTagName("a")[0]).innerHTML=="Expand")a.click;