Fix context menu disabling on Safari.

The context_menu setting was silently being ignored on Safari. Also, the context menu would incorrectly show up on non-Tumblr domains (regardless of the context_menu setting), and when no text was selected. This pull request fixes all of these issues.