@5x9/detect 中文文档教程
@5x9/detect
检测您的访问者是否在使用广告拦截器。
How to use
<script src="fivenine.detect.js"></script>
<script>
fivenine.detectAdblock(function(adblockDetected) {
if(adblockDetected) {
// the user has enabled adblock
} else {
// no adblocker detected
}
})
</script>
How it works
这些脚本尝试加载一个文件名被广告拦截器列入黑名单的第三方脚本,然后检查它是否成功加载和运行。
@5x9/detect
Detect whether your visitors are using adblockers or not.
How to use
<script src="fivenine.detect.js"></script>
<script>
fivenine.detectAdblock(function(adblockDetected) {
if(adblockDetected) {
// the user has enabled adblock
} else {
// no adblocker detected
}
})
</script>
How it works
The scripts attempts to load a 3rd party script with a filename that is blacklisted by adblockers, and then checks whether it was successfully loaded and run or not.
更多
你可能也喜欢
- 2d-sparse-bitmaps 中文文档教程
- @0x-klaytn/orderbook 中文文档教程
- @0x/mesh-graphql-client 中文文档教程
- @0x0/restify 中文文档教程
- @0xsequence/erc-1155 中文文档教程
- @0xslime/sdk 中文文档教程
- @3kles/kles-material-dynamicforms 中文文档教程
- @aapokiiso/hsl-congestion-route-repository 中文文档教程
- @aaronpowell/apollo-server-logger-appinsights 中文文档教程
- @abaxx/core 中文文档教程