Look for devtools global hook

It doesn't exist yet, but it could. And yes, this is basically identical to #953.

This also ensures we actually do our polyfill checks in *all* browsers,
not just Chrome.
Not specific to this PR, but couldn't we check `navigator.vendor` instead of this UA hacking?