1
0 Comments

New Adblock Detection Module for QUIQQER

The weekend is almost here and in the middle of all the chaos, Hen managed to write a new module.

Many sites are dependent on advertising revenue. Our new module helps to find out if a visitor uses an adblocker or not.

Features

  • Adblock Detection Utils
  • Module to find out the usage of an Adblocker
  • JS Detection and easy JS integration
  • Blocking of the whole page if AdBlocker is active
  • Blocking of partial areas if AdBlocker is active

In QUIQQER systems you are able to use simple HTML to determine for which elements an adblock detection should be performed.

By simply adding data-ad-detection="1" you can lock the Element when an adblocker is active.

  • <div class="my-ad-container" data-ad-detection="1"></div>
  • <body data-ad-detection="1"></div>

This module also offers a simple interface for frontend developers:

require(['package/quiqqer/adblock-detection/bin/detection'], function(Detection) { 
    Detection.canRunAds().then(function(canRunAds) { 

        console.log(canRunAds); // bool -> true or false

    });
});

This module has been on our todo for months. Now finally this can be used freely.

We wish all Indiehackers a productive and good weekend!

, Founder of Icon for QUIQQER
QUIQQER
on April 3, 2020