Skip to content

Instantly share code, notes, and snippets.

@ichii731
Created March 20, 2022 10:57
Show Gist options
  • Save ichii731/2f42b6819923c8fa949ffd6285d4a700 to your computer and use it in GitHub Desktop.
Save ichii731/2f42b6819923c8fa949ffd6285d4a700 to your computer and use it in GitHub Desktop.
Setup via CDN
<script type="module">
// You have to load as Module
import AdDetect from 'https://cdn.jsdelivr.net/npm/block-adblock-js';
if (AdDetect.check()) {
// with adblock enabled
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment