https://codeberg.org/Firesphere/silverstripe-adblockwarning
Help your users understand the importance of using an adblocker, by alerting those that don't have one.
Disable your adblocker and visit my website:
The included template is based on Bootstrap 5.
Note, the (big) list of classnames is part of the functionality!
composer require firesphere/adblockwarning
In your template, include the following:
$AdblockWarning
Copy the contents of the Templates folder to your theme or app, and modify to your likings.
Contents of heading/notification are editable via the SiteConfig.
Pictured below is a cow, just for you.
/( ,,,,, )\
_\,;;;;;;;,/_
.-"; ;;;;;;;;; ;"-.
'.__/`_ / \ _`\__.'
| (')| |(') |
| .--' '--. |
|/ o o \|
| |
/ \ _..=.._ / \
/:. '._____.' \
;::' / \ .;
| _|_ _|_ ::|
.-| '==o==' '|-.
/ | . / \ | \
| | ::| | | .|
| ( ') (. )::|
|: | |; U U ;|:: | `|
|' | | \ U U / |' | |
##V| |_/`"""`\_| |V##
##V## ##V##