// Source: https://gitgud.io/billyo/Pesky-Adblock //Licence: GPL3+ https://www.gnu.org/licenses/gpl.txt //add something to your page that looks like an ad document.body.innerHTML += "
" //block usage of the site if the preceeding ad is detected window.setTimeout(function(){ if (document.querySelector('#adTeaser').clientWidth === 10) { plsblock= '
Please turn on your ad blocker to continue browsing this site
'; document.body.innerHTML=plsblock; } }, 1000) /** just drop this snippet into your web page to get the same effect
**/