Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
/ adcheck Public archive

A simple AdBlocker checker, with the typing file of TypeScript.

License

Notifications You must be signed in to change notification settings

pan93412/adcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdCheck

A simple AdBlocker checker, with the typing file of TypeScript.

The source code is from here, thanks GoneTone! :)

Usage

<script src="./checker.js"></script>
<script>
adcheck().then((result) => {
    if (result) {
        alert("Disable your AdBlocker!");
    }
});
</script>

Use webpack (not tested yet)

# npm
npm install adcheck

# yarn
yarn add adcheck
import * as adc from 'adcheck';

adc.adcheck().then((result) => {
    if (result) {
        alert("Disable your AdBlocker!");
    }
});

About

A simple AdBlocker checker, with the typing file of TypeScript.

Resources

License

Stars

Watchers

Forks