New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

just-detect-adblock

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-detect-adblock

It's FuckAdBlock with a minimalist API.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.6K
decreased by-9.81%
Maintainers
1
Weekly downloads
 
Created
Source

just-detect-adblock

This package is strongly inspired copied from BlockAdBlock & FuckAdBlock. I just didn't liked how overly complicated the end user API was so I made this, which contains only one function to detect if an adblocker is active or not.

Installation

npm install just-detect-adblock --save

API

  • isDetected() Returns true/false if an adblocker is detected.

Exemples

Webpack

import adBlocker from 'just-detect-adblock'

if(adBlocker.isDetected()){
  // an adblocker is detected
}

Keywords

FAQs

Package last updated on 25 Mar 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc