I originally found a question I was looking for an answer to, and once I found the solution I added this answer.
I then realised that question was a duplicate of an even older one, so I closed the duplicate and copied the answer (with changes to match the question) over. No other answer on the question has this solution, which is (IMO) the optimal way to do it for versions that support it.
However, it appears it was deleted by a moderator within three hours. As it was mod-deleted there is nothing I can do except ask here why they did it.