A simple AdBlocker checker, with the typing file of TypeScript.
The source code is from here, thanks GoneTone! :)
<script src="./checker.js"></script>
<script>
adcheck().then((result) => {
if (result) {
alert("Disable your AdBlocker!");
}
});
</script>
# npm
npm install adcheck
# yarn
yarn add adcheck
import * as adc from 'adcheck';
adc.adcheck().then((result) => {
if (result) {
alert("Disable your AdBlocker!");
}
});