var hashEls = decodeURIComponent( location.hash.replace( /^#/, "" ) ).split("/");
function clickByHideElems( elems, k) {
var $children = $(elems).children();
var $hideNext = $children.filter(".hide-next").filter(function(){ return $(this).text() === hashEls[k]; });
if ( $hideNext.length ) {
$hideNext.click();
if ( k < hashEls.length - 1 ) {
clickByHideElems($hideNext.next("div"), k++);
}
} else {
clickByHideElems( $children, k );
}
}
clickByHideElems( document.body, 0 );