1.0.4 • Published 4 years ago

iblock-ublock v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

iBlock-uBlock

Stars

Forks

iBlock-uBlock is an open source AdBlockDetector written in typescript

  • easy to use
  • declare methods on detection and run

Installation

NPM
npm i iBlock-uBlock
Yarn
yarn add iBlock-uBlock

Usage

const iBlockUBlock = new IBlockUBlock({
  onDetected(): void {
    // adblocker detected
  },
  onNotDetected(): void {
    // no adblocker detected
  }
});

iBlockUBlock.run();

Maintainers

This project is mantained by: | Avatar | Contributor | |---|:---:| | npm.io | DatLag |

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push your branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

View full license here. In short:

Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights.