Gabriel Wicke wrote:
We discussed something like this on irc yesterday, an idea is to use css classes to mark certain elements. A simple .violence { display: none } would be enough to hide violent things for example. Works already in 1.3 if you add that class to your user stylesheet. Could be used for things like 'spoiler', 'nudism' etc as well, multiple classes are possible like this: <div class="nudism spoiler">Some content</div>. A small javascript function could even offer to un-hide things with one click if desired.
I intend to move as many prefs as possible to generated css/js for 1.4 to improve performance, this is kind of a schoolbook example where this is particulary easy.
Gabriel Wicke
If such spoiler or nudism is meant to be displayed inline within a paragraph, then the <div> tag will force it into a separate paragraph. Of course, if there were support for <span> tags, then we could use those...
- David