Shows preview of the linked questions/answers on hover
< Feedback on SE Preview on hover
The reason I've added this check was to prevent previewing when the entire browser window isn't focused and the user does something in another smaller application window displayed on top of the browser. However, in Firefox document.hasFocus()
reports the document isn't focused after tab switching. Seems like a bug so I've removed the check when running in Firefox, use the updated script.
I also see another issue in Firefox 52 beta for which I don't have a solution yet: after the preview disappears I can't use global browser keyboard shortcuts like Ctrl-Tab or F5 until I click the page. This also looks like a bug in Firefox so I'm reluctant to dig further after several unsuccessful attempts of circumventing it.
Alright, thanks for the update and for the info.
I've removed the focus check when running in Chrome as well because apparently it's not common practice.
If you switch tabs then it doesn't work unless you close and reopen the SE tab (Firefox only)
First of all thank you for your script. It's another great work!
I noticed the following issue (Firefox only - it works ok in Chrome with Tampermonkey). STR
The only solution is to close and reopen the SO tab.