From c84187263a5fcaee9f5ec12fe2bb4cef643393b3 Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sat, 29 Jul 2023 16:57:55 -0400 Subject: [PATCH 1/9] Add WEI-DRM message h/t https://chaos.social/@jaseg/110781307230828144 --- _layouts/page.html | 1 + _layouts/post.html | 1 + 2 files changed, 2 insertions(+) diff --git a/_layouts/page.html b/_layouts/page.html index cfbb1690a..9b20cf7d5 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -4,6 +4,7 @@ {% include seo.md %} {% include css.md %} +
diff --git a/_layouts/post.html b/_layouts/post.html index 8f86a5eec..e396def30 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -4,6 +4,7 @@ {% include seo.md %} {% include css.md %} +
From ade9697d38dc22aa9d44e627c57d8910f0883b0f Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sat, 29 Jul 2023 18:03:52 -0400 Subject: [PATCH 2/9] Flip conditional for testing --- _layouts/page.html | 2 +- _layouts/post.html | 2 +- _layouts/recipe.html | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/_layouts/page.html b/_layouts/page.html index 9b20cf7d5..4a323212c 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -4,7 +4,7 @@ {% include seo.md %} {% include css.md %} - +
diff --git a/_layouts/post.html b/_layouts/post.html index e396def30..985b5ea66 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -4,7 +4,7 @@ {% include seo.md %} {% include css.md %} - +
diff --git a/_layouts/recipe.html b/_layouts/recipe.html index 1a812660c..e5ee52daa 100644 --- a/_layouts/recipe.html +++ b/_layouts/recipe.html @@ -3,6 +3,7 @@ {% include seo.md %} {% include css.md %} +
From fabe6f029852d09bc04c7f18d4df4c92a2004134 Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sat, 29 Jul 2023 18:07:10 -0400 Subject: [PATCH 3/9] Move WEI to bottom of body; after body is created --- _layouts/page.html | 2 +- _layouts/post.html | 2 +- _layouts/recipe.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_layouts/page.html b/_layouts/page.html index 4a323212c..7a46c0030 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -4,7 +4,6 @@ {% include seo.md %} {% include css.md %} -
@@ -15,5 +14,6 @@

{{ page.title }}

{% include footer.md %}
+ diff --git a/_layouts/post.html b/_layouts/post.html index 985b5ea66..d5d7805b2 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -4,7 +4,6 @@ {% include seo.md %} {% include css.md %} -
@@ -29,5 +28,6 @@

{{ page.title }}

{% include footer.md %}
+ diff --git a/_layouts/recipe.html b/_layouts/recipe.html index e5ee52daa..46d2d96b4 100644 --- a/_layouts/recipe.html +++ b/_layouts/recipe.html @@ -3,7 +3,6 @@ {% include seo.md %} {% include css.md %} -
@@ -14,5 +13,6 @@

{{ page.title }}

{% include footer.md %}
+ From 7cdaa3d3aa37868f3af577af093acd8c1a270c51 Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sat, 29 Jul 2023 18:12:39 -0400 Subject: [PATCH 4/9] Make it a modal Also put it in its own _include --- _includes/wei.md | 41 +++++++++++++++++++++++++++++++++++++++++ _layouts/page.html | 2 +- _layouts/post.html | 2 +- _layouts/recipe.html | 2 +- 4 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 _includes/wei.md diff --git a/_includes/wei.md b/_includes/wei.md new file mode 100644 index 000000000..566753db0 --- /dev/null +++ b/_includes/wei.md @@ -0,0 +1,41 @@ +
+
+ × +

Some text in the Modal..

+
+
+ + diff --git a/_layouts/page.html b/_layouts/page.html index 7a46c0030..593bf401b 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -14,6 +14,6 @@

{{ page.title }}

{% include footer.md %}
- + {% include wei.md %} diff --git a/_layouts/post.html b/_layouts/post.html index d5d7805b2..c23c88072 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -28,6 +28,6 @@

{{ page.title }}

{% include footer.md %} - + {% include wei.md %} diff --git a/_layouts/recipe.html b/_layouts/recipe.html index 46d2d96b4..7b7da8e5e 100644 --- a/_layouts/recipe.html +++ b/_layouts/recipe.html @@ -13,6 +13,6 @@

{{ page.title }}

{% include footer.md %} - + {% include wei.md %} From eac80cbe21e92ebbb3ce7cb3be10a67088a5b38c Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sat, 29 Jul 2023 18:21:39 -0400 Subject: [PATCH 5/9] Add modal CSS (oops) and don't overwrite body --- _includes/wei.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/_includes/wei.md b/_includes/wei.md index 566753db0..e6bbf0e71 100644 --- a/_includes/wei.md +++ b/_includes/wei.md @@ -1,7 +1,53 @@ + +
× -

Some text in the Modal..

+

Your browser contains Google DRM

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 + is a little bit irritating. Please install a browser such as Firefox that respects + your freedom and supports ad blockers.
@@ -36,6 +82,5 @@ window.onclick = function(event) { if(!(navigator.getEnvironmentIntegrity!==undefined)) { // Display the modal ebModal.style.display = "block"; - document.querySelector('body').innerHTML='

Your browser contains Google DRM

"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 Firefox that respects your freedom and supports ad blockers.'; } From 49996b574a679c24943329f5027b97c36364561a Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sat, 29 Jul 2023 18:22:10 -0400 Subject: [PATCH 6/9] Remove eBtn code --- _includes/wei.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/_includes/wei.md b/_includes/wei.md index e6bbf0e71..206670e1a 100644 --- a/_includes/wei.md +++ b/_includes/wei.md @@ -55,17 +55,9 @@ // Get the modal var ebModal = document.getElementById('mySizeChartModal'); -// Get the button that opens the modal -var ebBtn = document.getElementById("mySizeChart"); - // Get the element that closes the modal var ebSpan = document.getElementsByClassName("ebcf_close")[0]; -// // When the user clicks the button, open the modal -// ebBtn.onclick = function() { -// ebModal.style.display = "block"; -// } - // When the user clicks on (x), close the modal ebSpan.onclick = function() { ebModal.style.display = "none"; From f2accc2caae4147b6372ed08b9956873bed31849 Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sat, 29 Jul 2023 18:23:22 -0400 Subject: [PATCH 7/9] Rename to be WEI-specific --- _includes/wei.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/_includes/wei.md b/_includes/wei.md index 206670e1a..ed3709c0d 100644 --- a/_includes/wei.md +++ b/_includes/wei.md @@ -1,6 +1,6 @@ -
-
- × +
+
+ ×

Your browser contains Google DRM

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 @@ -53,26 +53,26 @@ From 493d79f19a428f30a4cb16f73aaf08b0680b670d Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sat, 29 Jul 2023 18:25:50 -0400 Subject: [PATCH 8/9] Change text and add paragraph elements --- _includes/wei.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/_includes/wei.md b/_includes/wei.md index ed3709c0d..b60762a7b 100644 --- a/_includes/wei.md +++ b/_includes/wei.md @@ -42,12 +42,17 @@
× -

Your browser contains Google DRM

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 - is a little bit irritating. Please install a browser such as Your browser contains Google DRM + +

This is a bad thing and is yet another attempt by Google to unilaterally + change web standards.

+ +

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 is a little bit irritating. Please + install a browser such as Firefox that respects - your freedom and supports ad blockers. + your freedom and supports ad blockers.

From 0941eea52ef7fb7b651e6982731ae01944dcf5c6 Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Sat, 29 Jul 2023 18:56:23 -0400 Subject: [PATCH 9/9] Add citation --- _includes/wei.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_includes/wei.md b/_includes/wei.md index b60762a7b..e63e258ad 100644 --- a/_includes/wei.md +++ b/_includes/wei.md @@ -1,3 +1,4 @@ +