Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

adblock-detector

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adblock-detector

Simple library for detecting ad blocker presence on web page

latest
Source
npmnpm
Version
2.1.0
Version published
Weekly downloads
1.6K
-52.03%
Maintainers
1
Weekly downloads
 
Created
Source

AdblockDetector

Micro library for detecting adblock presense in user browser.

Detection on server side is not supported. Please use library only on client side.

npm version package size minified

total downloads total downloads per year total downloads per week total downloads per month

Installation

Via NPM

npm i adblock-detector

Via Yarn

yarn add adblock-detector

Usage


import AdblockDetector from 'adblock-detector';

const adbDetector = new AdblockDetector()

const userHasAdblock = adbDetector.detect(); // true if user has it false if not

That's it!

Keywords

adblockdetector

FAQs

Package last updated on 18 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts