Spoiler content only visible for registered users

That seems not very hard. I can try to do such a script but you’ll have to wait a few hours because I need to rebuild my Discourse with the spoiler plugin and I prefer to do that in the late evening.