The closest thing that exists is this unofficial plugin:
But it doesn’t do exactly what you want, as the feature is enabled per-topic (all posts in the topic will be hidden).