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

https://github.com/magiclen/adblock-checker

Check if the current web browser has any ad blockers (AdBlock, Adblock Plus, uBlock, AdGuard, ...) enabled.
https://github.com/magiclen/adblock-checker

adblock adblocker typescript

Last synced: about 1 year ago
JSON representation

Check if the current web browser has any ad blockers (AdBlock, Adblock Plus, uBlock, AdGuard, ...) enabled.

Awesome Lists containing this project

README

          

AdBlock Checker
==========

[![CI](https://github.com/magiclen/adblock-checker/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/adblock-checker/actions/workflows/ci.yml)

Check if the current web browser has any ad blockers (AdBlock, Adblock Plus, uBlock, AdGuard, ...) enabled.

## Usage

```typescript
import { checkAdBlock } from "adblock-checker";

console.log(await checkAdBlock()); // true or false
```

## Usage for Browsers

[Source](demo.html)

[Demo Page](https://rawcdn.githack.com/magiclen/adblock-checker/master/demo.html)

## License

[MIT](LICENSE)