Oh my bad, I didn't look at the code..
I just saw the screenshot and thought you'd done something else weird..
In that case, would it be possible to remove the whole cookie part of the hack and just make the spoiler tags add something like
this ? I know this would pretty much be a totally different version of the hack, but it would be much more user friendly in my opinion..