Add Web Environment Integrity message
This commit is contained in:
parent
cf9643f716
commit
1fe22f58cd
1 changed files with 28 additions and 0 deletions
28
index.html
28
index.html
|
@ -91,6 +91,11 @@
|
|||
padding: 16px;
|
||||
}
|
||||
|
||||
.web-environment-integrity-message {
|
||||
background-color: lightyellow;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background-color: #1f1f1f;
|
||||
|
@ -140,6 +145,24 @@
|
|||
<body>
|
||||
<main>
|
||||
<div class="overlay">
|
||||
<section class="web-environment-integrity-message">
|
||||
<h2>Your browser contains Google DRM</h2>
|
||||
<article>
|
||||
<p>
|
||||
"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.
|
||||
</p>
|
||||
<p>
|
||||
Please note that although other browsers such as Vivaldi, Opera, Microsoft Edge, Brave,
|
||||
and Chromium exist, they are all built from the same Google Chromium codebase and all
|
||||
inherit the problems of Google's web dominance. The only real options outside of Chrome
|
||||
are Firefox and Safari.
|
||||
</p>
|
||||
</article>
|
||||
</section>
|
||||
<section>
|
||||
<h2>Bio</h2>
|
||||
<article>
|
||||
|
@ -315,6 +338,11 @@
|
|||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<script>
|
||||
if(navigator.getEnvironmentIntegrity !== undefined) {
|
||||
document.querySelector('.web-environment-integrity-message').setAttribute("style", "display: block;");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue