Ich verwende dieses Script.
async function
AdBlockDetector
() {
var blocker = false
var url = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'
try {
await fetch(new Request(url)).catch(_ => blocker = true)
} catch (e) {
blocker = true
} finally {
console.log("AdBlocker detected: " + blocker)
}
}
AdBlockDetector()