Skip to content

Commit

Permalink
ad.html: attempt to improve noscript experience
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikaela committed May 29, 2024
1 parent 2defda8 commit 5d1b281
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 3 additions & 1 deletion _includes/ad.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<detect-missing-adblocker>
<noscript><hr></noscript>
<noscript><p class="centered"><strong><em>Dear JavaScript blocker, please accept my apologies for needlessly showing you this:</em></strong></p></noscript>
<span slot="title" class="centered"><p>Dear reader, you may be missing a content blocker! 🙀</p></span>
<span slot="message" class="centered">
<noscript><strong><em>Dear JavaScript blocker, please accept my apologies for needlessly showing you this.</em></strong></noscript>
<p>Please consider installing one to protect yourself, and your close ones, from <a href="https://www.wired.com/story/why-dont-we-just-ban-targeted-advertising/">manipulation</a> and <a href="https://en.m.wikipedia.org/wiki/Malvertising">targeted malvertising</a>!</p>
<p>Personally I love <strong>both</strong> <a href="https://privacybadger.org">Privacy Badger</a> <strong>and</strong> <a href="https://github.com/gorhill/uBlock/blob/master/README.md#ublock-origin-ubo">uBlock Origin</a>
(<strong>with</strong> <a href="https://www.eff.org/files/effdntlist.txt">EFF DNT Policy
Expand All @@ -11,4 +12,5 @@
<p><a href="https://en.m.wikipedia.org/wiki/Targeted_advertising#Disadvantages">Learn more about targeted advertising!</a>
<p><small>PS. I am sorry if you are already protected and this silly <a href="https://easylist.to/">EasyList</a> targeting(?) script doesn't detect that, thank you for taking the steps towards a safer internet! 💜</small></p>
</span>
<noscript><hr></noscript>
</detect-missing-adblocker>
2 changes: 1 addition & 1 deletion _layouts/mini.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="page-content">
<div class="wrapper">{{ content }}</div>

{% include ad.html %}{% include ad.html %}
{% include ad.html %}
</div>
</body>
</html>
2 changes: 0 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ <h1 class="post-title">{{ page.title }}</h1>
</header>
<article class="post-content">{{ content }}</article>
<hr />

{% include ad.html %}
</div>
2 changes: 0 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ <h1 class="post-title">{{ page.title }}</h1>
{{ content }}
<p id="post-meta">{{ tags_content }}</p>
</article>

{% include ad.html %}
</div>

0 comments on commit 5d1b281

Please sign in to comment.