Skip to content

Instantly share code, notes, and snippets.

@ichii731
Last active March 20, 2022 10:56
Show Gist options
  • Save ichii731/f216f967de850c43e4eec8ba7c463c41 to your computer and use it in GitHub Desktop.
Save ichii731/f216f967de850c43e4eec8ba7c463c41 to your computer and use it in GitHub Desktop.
npm i block-adblock-js
# or
yarn add block-adblock-js
import AdDetect from "block-adblock-js";
if (AdDetect.check()) {
// with adblock enabled
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment