OFFLINE-GmbH/oc-gdpr-plugin

Cookie Banner not shown due to Ad Blocker Browser Extensions

damsfx opened this issue · 3 comments

damsfx commented

I've just realised that the browser extension AdBlocker Ultimate is blocking access to the cookie consent banner.

The extension adds a css rule to the browser making the banner inoperable:

.gdpr-banner:not(html):not(body) {
    display: none!important;
}

After decompiling the Firefox extension, I see that several rules are generated automatically from the filter_3.txt file.
This rules file is generated from the rules defined in
https://github.com/lassekongo83/Frellwits-filter-lists/blob/b243f5427771d00e3e0390ef21ff2f283011e18a/Frellwits-Swedish-Filter.txt#L136
and
https://github.com/easylist/easylist/blob/014b05742117b7706d563978eeecd5ef81c20ff5/easylist_cookie/easylist_cookie_general_block.txt#L572-L573

These filter lists are shared by many ad blockers, so the problem may also occur with other browser extensions of the same type.

So far the only workaround for me, is to redefine the banner partial in my site theme and give it a different css class from the original.
So I also need to redefine the css rules applied to this new component in my style.

This does not seem like a problem with the plugin to me. If someone installs an adblocker and uses a cookie banner block list to hide the banner, everything works exactly as expected.

damsfx commented

This does not seem like a problem with the plugin to me. If someone installs an adblocker and uses a cookie banner block list to hide the banner, everything works exactly as expected.

The aim was not to report this as a bug, but rather as a warning.
Other users may also experience the same problem.

Good thinking, thank you!