An open API service indexing awesome lists of open source software.

https://github.com/c-lodder/block-adblock-webcomponent

Detect if a user is using an Ad Blocker
https://github.com/c-lodder/block-adblock-webcomponent

adblock detect javascript

Last synced: about 1 year ago
JSON representation

Detect if a user is using an Ad Blocker

Awesome Lists containing this project

README

          

# block-adblock-webcomponent
Detect if a user is using an Ad Blocker

Based on: https://github.com/sitexw/BlockAdBlock

# Usage

Load the `block-adblock.js` file:
```

```

Add the Custom Element anywhere on your HTML page:
```

```

By default, the element will render a red alert at the top of the web page stating that it's detected an adblocker.
You can of course customize the script in any way you like.