mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-11-22 03:59:31 +01:00
attempt to fix adblock detection
This commit is contained in:
parent
fbb37bdf4d
commit
efe6992054
14
_includes/ad.html
vendored
Normal file
14
_includes/ad.html
vendored
Normal 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
15
_includes/head.html
vendored
@ -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>
|
||||
|
2
_layouts/default.html
vendored
2
_layouts/default.html
vendored
@ -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
2
_layouts/index.html
vendored
@ -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
2
_layouts/mini.html
vendored
@ -2,6 +2,6 @@
|
||||
<html>
|
||||
{% include head.html %}
|
||||
<body>
|
||||
{{ content }}
|
||||
{% include ad.html %} {{ content }}
|
||||
</body>
|
||||
</html>
|
||||
|
2
_layouts/page.html
vendored
2
_layouts/page.html
vendored
@ -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
3
_layouts/post.html
vendored
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user