I've created a script to do this. You can read more about it [here on Stack Apps](http://stackapps.com/q/4931/28683). Download it from [Greasy Fork](https://greasyfork.org/scripts/5479-stack-snippets-console).

See it in action! (Image from [this post](http://meta.stackoverflow.com/a/269875/3187556))

![enter image description here][1]


  [1]: https://i.sstatic.net/msg8F.png