Skip to content

C-Lodder/block-adblock-webcomponent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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:

<script src="block-adblock.js"></script>

Add the Custom Element anywhere on your HTML page:

<block-adblock></block-adblock>

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.

About

Detect if a user is using an Ad Blocker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published