I've been looking at the tutorial here:
https://www.detectadblock.com/
This is the Javascript they use to detect is Adblock is enabled:
if(document.getElementById('APvpIfBTxbcQ')){
alert('Blocking Ads: No');
} else {
alert('Blocking Ads: Yes');
}
I don't have any code that needs to be run if someone is not blocking ads.
So, this line is basically useless to me:
alert('Blocking Ads: No');
What would I need to change to remove that part and basically do this?
if(document.getElementById('APvpIfBTxbcQ') IS NOT SET){
alert('Ads are being blocked.');
}