detecting-adblock
detecting-adblock copied to clipboard
test.remove() breaks older IE
Thanks for that piece of code.
I just want to leave a hint that the "rest.remove()" line will break JavaScript in Internet Explorer < Edge as this method is undefined.
You should replace it with
if (test.parentNode) {
test.parentNode.removeChild(test);
}