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.
- Host: GitHub
- URL: https://github.com/magiclen/adblock-checker
- Owner: magiclen
- License: mit
- Created: 2023-05-11T08:24:30.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T07:26:54.000Z (over 1 year ago)
- Last Synced: 2025-03-27T23:37:46.799Z (about 1 year ago)
- Topics: adblock, adblocker, typescript
- Language: JavaScript
- Homepage:
- Size: 462 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
AdBlock Checker
==========
[](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)