Detect Adblocker and show ajax model
AdBlocking severely affects those who are running the site by only depending on ad revenue. Here is the way to detect AdBlock with JavaScript and show Adblocker Indication in modal popup using Bootstrap and jQuery.
The following script will detect if the user has enabled the AdBlocker in his browser. If the user has enabled the AdBlocker, then the AdBlocker will set the height of the <div> with class ‘adsbox’ to zero/auto. So when <div> offsetHeight is zero/auto, we will trigger the modal popup to show Indication to the user to disable AdBlocker for our site.