Javascript post Toggling

edited October 2006 in Vanilla 1.0 Help
I've been messing around with the post toggle script from here and I was wondering how I would go about putting this into say an extension so that when a user puts a block of code into a div and uses the toggle function he can toggle that block of code to show/hide. I'd mainly love to use this for spoilers and large posts with tons of images.

Any help/ideas?
This discussion has been closed.