Here’s that thread.
Here’s the post what I was talking about. I have no idea if code from 6+ years ago works on current browsers, but you can certainly try it and find out.
ETA: It works on the current version of Firefox (71). Keep in mind that the button does not spawn a new window or tab so if you have something typed, but not submitted, you’ll lose it.