diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-02-24 17:03:39 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-02-24 22:07:39 +0000 |
| commit | 85221a133ee2d9b826ea06a3230024ee05395f37 (patch) | |
| tree | 3b861cf0de49701c29485967ee6217472e2c1976 /src/web | |
| parent | fix redudant title text, make 'here' links more descriptive (diff) | |
| download | website-85221a133ee2d9b826ea06a3230024ee05395f37.tar.gz website-85221a133ee2d9b826ea06a3230024ee05395f37.tar.bz2 website-85221a133ee2d9b826ea06a3230024ee05395f37.zip | |
add ublock detector (in a good way)
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/_views/footer.php | 5 | ||||
| -rw-r--r-- | src/web/lang/common.php | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/web/_views/footer.php b/src/web/_views/footer.php index e73fbf6..a22959e 100644 --- a/src/web/_views/footer.php +++ b/src/web/_views/footer.php @@ -7,6 +7,11 @@ $footer_text = ''; } ?> + <div id="ad" class="section ad-slot" role="region"> + <span class="ad-slot"> + <?=lang('adblock_notice')?> + </span> + </div> </div> </div> <div id="footer" role="contentinfo" aria-label="footer"> diff --git a/src/web/lang/common.php b/src/web/lang/common.php index 4116465..16e0f74 100644 --- a/src/web/lang/common.php +++ b/src/web/lang/common.php @@ -38,7 +38,7 @@ $lang['license_pre'] = 'This site is licensed under the'; $lang['copyright'] = 'Copyright (c)'; # footer_text -$lang ['footer_text'] = [ +$lang['footer_text'] = [ "Always look on the bright side of life", "🐝 powder", "Submit to john", @@ -58,3 +58,7 @@ $lang ['footer_text'] = [ "Help im stuck inside footer text!", "abort: no x11 display server found", ]; + +$lang['adblock_notice'] = "You aren't using an adblocker! Install + <a href='https://chromewebstore.google.com/detail/ublock-origin-lite/ddkjiahejlhfcafbddmgiahcphecmpfh'>uBlock Origin Lite (Chrome)</a> or + <a href='<C-2-LeftMouse>'>uBlock Origin (Firefox)</a>."; |