1.1.0 • Published 4 years ago

adblockbanner v1.1.0

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

AdBlockBanner

Tiny script to detect ad blockers and display a custom message in ad regions

npm.io

Installation

<script>
    window.ABB_config = {
        text: "Hi! Please disable your AdBlocker for this site to keep it running, thanks :)", // Text to be displayed
        selectors: [".adsbygoogle"], // Ad Region selectors - should be the element that usually contains the ad body
    }
</script>
<script src="https://unpkg.com/adblockbanner@1.0.2/abb.min.js"></script>
npm install --save adblockbanner

Configuration

{
    text: "Hi! Please disable your AdBlocker for this site to keep it running, thanks :)", // Text to be displayed
    selectors: [".adsbygoogle"], // Ad Region selectors - should be the element that usually contains the ad body
    backgroundColor: '#e10000',
    textColor: '#000000',
    wrapperStyle: 'border-radius: 5px',
    textStyle: 'text-align: center; font-size: 2rem; font-family:',
    delay: 2000,
    insertPosition: 'before' // before, after, inside
}
1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago