Java and Flash are terrible. They are full of security holes that must be patched. I decided to try to do as little browsing with them as possible. You need Chrome installed for this to work.
2. Disable Java in Safai (Preferences > Security > Un check ‘enable Java’
3. Download Alfred.app
4. Load this AppleScript into it (I use keyword flashfree)
5. Anytime you come across that doesn’t work in Safari, fire up Alfred and type in flashfree and it will launch the current Safari URL in Chrome. Chrome uses its own Java and Flash plugins that they seem to do a decent job of keeping patched.