All Projects → wmcmurray → just-detect-adblock

wmcmurray / just-detect-adblock

Licence: other
It's FuckAdBlock with a minimalist API.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to just-detect-adblock

Fuckadblock
Detects ad blockers (AdBlock, ...)
Stars: ✭ 1,820 (+2463.38%)
Mutual labels:  adblock, adblocker, fuckadblock
CoinHive
A nice friendly simple and easly customizable GUI for coinhives javascript miner to embed onto websites so users of your site can interact with features of the miner on every single page this javascript miner is to help those who have problems with advertisements/advertising/ads popups banners mobile redirects malvertising/malware etc and provid…
Stars: ✭ 58 (-18.31%)
Mutual labels:  adblock, adblocker, adblocking
Sponsorblock
Skip YouTube video sponsors (browser extension)
Stars: ✭ 3,627 (+5008.45%)
Mutual labels:  adblock, adblocker
Easylist
EasyList filter subscription (EasyList, EasyPrivacy, EasyList Cookie, Fanboy's Social/Annoyances/Notifications Blocking List)
Stars: ✭ 859 (+1109.86%)
Mutual labels:  adblock, adblocker
Whitelist
A simple tool to add commonly white listed domains to your Pi-Hole setup.
Stars: ✭ 3,033 (+4171.83%)
Mutual labels:  adblock, adblocker
Blockparty
Ad Blocker App for iOS, macOS
Stars: ✭ 722 (+916.9%)
Mutual labels:  adblock, adblocker
Hblock
Improve your security and privacy by blocking ads, tracking and malware domains.
Stars: ✭ 724 (+919.72%)
Mutual labels:  adblock, adblocker
Xspotify
A modified Spotify client with DRM bypass.
Stars: ✭ 1,376 (+1838.03%)
Mutual labels:  adblock, adblocker
Youtube Music
YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
Stars: ✭ 376 (+429.58%)
Mutual labels:  adblock, adblocker
Ttv aderaser
TTV AdEraser aims to remove livestream ads as well as add some useful features to our favourite streaming site.
Stars: ✭ 122 (+71.83%)
Mutual labels:  adblock, adblocker
Hosts.extras
Extra rules for https://github.com/StevenBlack/hosts project
Stars: ✭ 120 (+69.01%)
Mutual labels:  adblock, adblocker
Twitch Hls Adblock
Block advertisements that are inserted in Twitch streams directly.
Stars: ✭ 242 (+240.85%)
Mutual labels:  adblock, adblocker
Blockadblock
Allows you to detect the extension AdBlock (and other)
Stars: ✭ 543 (+664.79%)
Mutual labels:  adblock, adblocker
Blocky
Fast and lightweight DNS proxy as ad-blocker for local network with many features
Stars: ✭ 523 (+636.62%)
Mutual labels:  adblock, adblocker
Iosadblocklist
Ultimate Host List for Mobile Adblockers (Focused on iOS)
Stars: ✭ 229 (+222.54%)
Mutual labels:  adblock, adblocker
Blacklist
Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒
Stars: ✭ 492 (+592.96%)
Mutual labels:  adblock, adblocker
Pornlist
Ad-blocking porn websites filter list for Adblock Plus and uBlock Origin.
Stars: ✭ 21 (-70.42%)
Mutual labels:  adblock, adblocker
Begoneads
BeGoneAds is a script that puts some popular hosts file lists into the systems hosts file as a adblocker measure.
Stars: ✭ 314 (+342.25%)
Mutual labels:  adblock, adblocker
Resilience
Resilience is an ad blocker for your computer.
Stars: ✭ 379 (+433.8%)
Mutual labels:  adblock, adblocker
Addon Pi Hole
Pi-hole - Home Assistant Community Add-ons
Stars: ✭ 120 (+69.01%)
Mutual labels:  adblock, adblocker

just-detect-adblock 🚫 🕵️

npm Language grade: JavaScript

live demo

This package was originally inspired copied from BlockAdBlock & FuckAdBlock, then I added features that those don't have. I just didn't like how overly complicated their API was, so I made this, which contains only helper functions that can be called manually. The rest is up to you !

Features

  • Browser extensions detection (like AdBlock, Adblock Plus, uBlock, etc.)
  • Brave browser shields detection
  • Opera browser adblocker detection

How to use

npm install just-detect-adblock --save
Methods Return Description
detectAnyAdblocker() Promise(detected=true/false) perform all available checks below until at least one is positive
detectDomAdblocker() Promise(detected=true/false) detect if a browser extension is hiding ads from the DOM
detectBraveShields() Promise(detected=true/false) detect if Brave browser shields seems to be activated
detectOperaAdblocker() Promise(detected=true/false) detect if Opera browser adblocker seems to be activated
DEPRECATED isDetected() true/false if an adblocker is detected (old behavior only, this method does not detect Brave or Opera adblockers, please use detectAnyAdblocker instead)

Exemples

Webpack

import { detectAnyAdblocker } from 'just-detect-adblock'

detectAnyAdblocker().then((detected) => {
  if(detected){
    // an adblocker is detected
  }
});

Browser

<script type="text/javascript" src="/dist/bundle.umd.js"></script>

<script type="text/javascript">
  justDetectAdblock.detectAnyAdblocker().then(function(detected) {
    if(detected){
      // an adblocker is detected
    }
  });
</script>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].