How can I stop sites from being able to tell when they're visible? AKA How do I disable Page Visibility API?

I can't personally take credit for this, but a contributor at StackOverflow created a Chrome extension that disables the PageVisibility API.

https://stackoverflow.com/questions/18928417/spoof-or-disable-the-page-visibility-api