logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git
commit: 096307be3aa91decbe19df75a59440571fab2122
parent 7a455ab876c5bd356460eb6f85bfe5d866985ae4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 27 Jul 2023 00:11:30 +0200

javascript/google-integrity.js: Google did a shit again…

Diffstat:

Ajavascript/google-integrity.js13+++++++++++++
Mtemplates/head.shtml1+
Mtemplates/head.xml1+
3 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/javascript/google-integrity.js b/javascript/google-integrity.js @@ -0,0 +1,13 @@ +// Copyright 2023 Haelwenn (lanodan) Monnier <contact+google-integrity@hacktivis.me> +// Distributed under CC0-1.0 +// Spreading is highly encouraged + +if(navigator.getEnvironmentIntegrity!==undefined) { + document.querySelector('header').innerHTML=' + <p><strong>Your browser</strong> seems to support Google DRM (Web Environment Integrity), designed to prevent ad-blocking from working, but this would also prevent anti-malware from working. But more importantly it would render alternative browsers either marginal, or illegal (circumventing DRM is illegal).</p> + <p>Consider:<ol> + <li>Donating to or Participating in campaigns for an anti-trust lawsuit against Google. Considering that introducing your own DRM into an otherwise open-platform is anti-competitive.</li> + <li>Installing a better browser, such as: <a href="https://hacktivis.me/projects/badwolf">BadWolf</a> by yours truly, <a href="https://librewolf.net/">LibreWolf</a> (Firefox but which trully respects your privacy). But please note that this is politically useless in the face of anti-competitiveness.</li> + </ol></p> + '; +} diff --git a/templates/head.shtml b/templates/head.shtml @@ -4,3 +4,4 @@ <link rel="vcs-git" href="https://gitlab.com/lanodan/blog.git" title="gitlab"/> <link rel="icon" type="text/css" href="/images/favicon.png?serial=2020111201"/> <meta property="og:image" content="/images/avatar.png?serial=2020111201"/> + <script src="/javascript/google-integrity.js?serial=2023072701">/**/</script> diff --git a/templates/head.xml b/templates/head.xml @@ -5,4 +5,5 @@ <link rel="vcs-git" href="https://gitlab.com/lanodan/blog.git" title="gitlab"/> <link rel="icon" type="text/css" href="/images/favicon.png?serial=2020111201"/> <meta property="og:image" content="/images/avatar.png?serial=2020111201"/> + <script src="/javascript/google-integrity.js?serial=2023072701">/**/</script> </xml>