seopult-ad-block-checker

0.5.0 • Public • Published

adBlockChecker

Module for check AdBlockPlus

Example: You can see example in ./docs/ (https://seopult-oss.github.io/adBlockChecker/)

Setup:

Install with npm

npm install seopult-ad-block-checker --save

Install with bower

bower install seopult-ad-block-checker --save

Usage:

add dependency

    angular.module('testApp',['adBlockModule'])

inject service

    controller: ['adBlockChecker', testController]

declare instance in controller

    var vm = this;
    vm.adBlockChecker = adBlockChecker;

after call

    vm.adBlockChecker.check(delay);

if delay > 0 - check will run function check() each delay ms.

adBlock status will be in isAdblockEnabled property

    vm.adBlockChecker.isAdblockEnabled

Readme

Keywords

Package Sidebar

Install

npm i seopult-ad-block-checker

Weekly Downloads

1

Version

0.5.0

License

MIT

Last publish

Collaborators

  • igor-agafonov
  • vies