attempt to fix adblock detection

This commit is contained in:
Aminda Suomalainen 2024-05-20 18:42:08 +03:00
parent fbb37bdf4d
commit efe6992054
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
7 changed files with 19 additions and 21 deletions

14
_includes/ad.html vendored Normal file
View File

@ -0,0 +1,14 @@
<detect-missing-adblocker>
<span slot="title">Dear reader, you may be missing a content blocker! 🙀</span>
<span slot="message">
Please consider installing one to protect yourself, and your close ones,
from manipulation and <a href="https://en.m.wikipedia.org/wiki/Malvertising">targeted malvertising</a>.
Personally I love <a href="https://privacybadger.org">Privacy Badger</a> and
<a href="https://github.com/gorhill/uBlock/blob/master/README.md">uBlock Origin</a>
with
(<a href="https://www.eff.org/files/effdntlist.txt">EFF DNT Policy Allowlist</a>)
although Android users may be better served by <a href="https://f-droid.org/packages/com.celzero.bravedns">Rethink</a> while
for iOS there is <a href="https://adguard.com/adguard-ios/overview.html">AdGuard</a>.
<p><a href="https://en.m.wikipedia.org/wiki/Targeted_advertising#Disadvantages">Learn more!</a>
</span>
</detect-missing-adblocker>

15
_includes/head.html vendored
View File

@ -36,18 +36,3 @@
<link rel="stylesheet" href="https://unpkg.com/detect-missing-adblocker@latest/nativeads.js.css">
</head>
<detect-missing-adblocker>
<span slot="title">Dear reader, you may be missing a content blocker! 🙀</span>
<span slot="message">
Please consider installing one to protect yourself, and your close ones,
from manipulation and <a href="https://en.m.wikipedia.org/wiki/Malvertising">targeted malvertising</a>.
Personally I love <a href="https://privacybadger.org">Privacy Badger</a> and
<a href="https://github.com/gorhill/uBlock/blob/master/README.md">uBlock Origin</a>
with
(<a href="https://www.eff.org/files/effdntlist.txt">EFF DNT Policy Allowlist</a>)
although Android users may be better served by <a href="https://f-droid.org/packages/com.celzero.bravedns">Rethink</a> while
for iOS there is <a href="https://adguard.com/adguard-ios/overview.html">AdGuard</a>.
<p><a href="https://en.m.wikipedia.org/wiki/Targeted_advertising#Disadvantages">Learn more!</a>
</span>
</detect-missing-adblocker>

View File

@ -3,7 +3,7 @@
{% include head.html %}
<body>
{% include header.html %}
{% include ad.html %} {% include header.html %}
<div class="page-content">
<div class="wrapper">{{ content }}</div>

2
_layouts/index.html vendored
View File

@ -3,7 +3,7 @@
{% include head.html %}
<body>
{% include header.html %}
{% include ad.html %} {% include header.html %}
<div class="page-content">
<div class="wrapper">{{ content }}</div>

2
_layouts/mini.html vendored
View File

@ -2,6 +2,6 @@
<html>
{% include head.html %}
<body>
{{ content }}
{% include ad.html %} {{ content }}
</body>
</html>

2
_layouts/page.html vendored
View File

@ -6,6 +6,6 @@ layout: default
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
</header>
{% include ad.html %}
<article class="post-content">{{ content }}</article>
</div>

3
_layouts/post.html vendored
View File

@ -21,9 +21,8 @@ tags_content_temp %} {% endif %} {% endfor %} {% else %} {% assign tags_content
}}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}
</p>
</header>
<article class="post-content">
{{ content }}
{% include ad.html %} {{ content }}
<p id="post-meta">{{ tags_content }}</p>
</article>
</div>