Hmm. I quite liked this snippet, but I got irritated at a few bugs and the coding style, so I ended up rewriting it.
What's the general consensus on submitting other peoples code if it's been majorly overhauled? By Majorly overhauled, I mean it's now 10kb instead of 24kb - with no loss to functionality - with many bug fixes and some other improvements.
Do I post it here, or do I submit my own and give this guy partial credit?