logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git
commit: 9dc0a07e417d95f8c809d535c039263e469bb6c8
parent 0635f4a379270f1e1e7c17967eebbb94c7f31fc4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  8 Nov 2023 00:02:16 +0100

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

This reverts commit 72f99018e237fc6e9d36af811edaece9d7b4d883.

Diffstat:

Djavascript/google-integrity.js14--------------
Mtemplates/head.shtml1-
Mtemplates/head.xml1-
3 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/javascript/google-integrity.js b/javascript/google-integrity.js @@ -1,14 +0,0 @@ -// Copyright 2023 Haelwenn (lanodan) Monnier <contact+google-integrity@hacktivis.me> -// Distributed under CC0-1.0 -// Spreading is highly encouraged - -if(navigator.getEnvironmentIntegrity!==undefined) { - // Gets a nice 80em-width block on my site - var warning = document.createElement("article"); - // It *is* a warning - warning.classList = 'warn'; - warning.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>"; - // Replace existing banner with warning - var header = document.querySelector('header'); - document.body.replaceChild(warning, header); -} diff --git a/templates/head.shtml b/templates/head.shtml @@ -4,4 +4,3 @@ <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=2023072703">/**/</script> diff --git a/templates/head.xml b/templates/head.xml @@ -5,5 +5,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=2023072703">/**/</script> </xml>