I was pretty content with how the script was, but someone on the script's page requested the click to show feature, and I figured I would give it a try.
Greasemonkey has something called the unsafewindow for stuff that must break out of the sandbox, and I got click to show working pretty fast using it. The problem is that everyone has a dogmatic animosity towards using it. So, I decided to try to figure out one of the alternatives.
"var results = document.getElementsByClassName('"+prevurl+"');"+
"for (i=0; i
"document.getElementById('show"+prevurl+"').style.display = 'none';"+
"; } )()";
Pasting that into something with syntax highlighting will show that
prevurlis a variable, and outside the double quotes. Everything else is inside. This function is then called by just making the variable the destination of a onclick event. If you want to see more the source is on the script's page.
With this, my script is, at the risk of tooting my own horn, quite good. It is probably the only thing I've ever made that doesn't look like it was made by a 5 year old.