Since it seems #Google has decided to uni-laterally force through their new anti-#adblock #DRM euphemistically named "Web environment integrity", I decided to add a little bit of code to my website that blanks out the page and displays a protest message with a link to the firefox download page when you visit it from a browser with this DRM feature. Here's the source inside one toot, feel free to copy and put it at the end of your website's <body> before the closing tag:
<script>if(navigator.getEnvironmentIntegrity!==undefined)document.querySelector('body').innerHTML='<h1>Your browser contains Google DRM</h1>"Web Environment Integrity" is a Google euphemism for a DRM that is designed to prevent ad-blocking. In support of an open web, this website does not function with this DRM. Please install a browser such as <a href="https://www.mozilla.org/en-US/firefox/new/">Firefox</a> that respects your freedom and supports ad blockers.';</script>
Download the fastest Firefox ever

Faster page loading, less memory usage and packed with features, the new Firefox is here.

Mozilla
I'm using the API from https://github.com/chromium/chromium/blob/6cf344c02b1bcf07114d512ee389894239416007/chrome/test/data/android/environment_integrity.html#L4 here, if you know a better way to detect the presence of the feature, please go ahead and tell me :)
chromium/chrome/test/data/android/environment_integrity.html at 6cf344c02b1bcf07114d512ee389894239416007 · chromium/chromium

The official GitHub mirror of the Chromium source. Contribute to chromium/chromium development by creating an account on GitHub.

GitHub

@jaseg checking for the property on `navigator` is pretty standard in terms of JS feature detection so we think this is about as good a solution as any

(unless/until they start obfuscating it)

@ashe @jaseg I doubt that they'd obfuscate it given that they want webdevs to use it
@tobskep @ashe As long as they keep it on the "this is a web standard now track" I agree. I could imagine them putting it behind a "only google and their friends can use this API" thing though.