{"_id":"just-detect-adblock","_rev":"4-48e70aaaf0afab6b6b267301e41c7884","name":"just-detect-adblock","description":"It's FuckAdBlock with a minimalist API.","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"just-detect-adblock","version":"1.0.0","description":"It's FuckAdBlock with a minimalist API.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/wmcmurray/just-detect-adblock.git"},"keywords":["detect","adblock","adblocker","blockadblock","fuckadblock"],"author":{"name":"William McMurray","email":"tiwilinlove@hotmail.com"},"license":"ISC","bugs":{"url":"https://github.com/wmcmurray/just-detect-adblock/issues"},"homepage":"https://github.com/wmcmurray/just-detect-adblock#readme","gitHead":"eb2b8e3bb56046f802f94794e0a820e4dd93aa3c","_id":"just-detect-adblock@1.0.0","_shasum":"7bf8660cf15571fe7cf3b49c222e4716e1605a0c","_from":".","_npmVersion":"4.4.1","_nodeVersion":"6.10.0","_npmUser":{"name":"wmcmurray","email":"tiwilinlove@hotmail.com"},"dist":{"shasum":"7bf8660cf15571fe7cf3b49c222e4716e1605a0c","tarball":"https://registry.npmjs.org/just-detect-adblock/-/just-detect-adblock-1.0.0.tgz","integrity":"sha512-yZONilmka0UXAMoDR7ieKO9iHUe3HhUNvg/megpehXXf08f5MM26SmtkHuHoDGMOJ736MnqCJCNc9gHKdq1raA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG/ikBbdnufBpTuNxFjkPOZcer7WE/wTylv6c+q3ivegIhAKIr35hTOtwEIUd1+PboLoWQBEdFZVOr/dCE9YzqVV/f"}]},"maintainers":[{"name":"wmcmurray","email":"tiwilinlove@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/just-detect-adblock-1.0.0.tgz_1490458802043_0.6597497318871319"},"directories":{}},"1.1.0":{"name":"just-detect-adblock","version":"1.1.0","description":"It's FuckAdBlock with a minimalist API.","main":"dist/bundle.cjs.js","module":"dist/bundle.esm.js","browser":"dist/bundle.umd.js","scripts":{"build":"rollup -c","dev":"rollup -c -w","test":"http-server ./ --silent -c-1 -o /test/index.html"},"repository":{"type":"git","url":"git+https://github.com/wmcmurray/just-detect-adblock.git"},"keywords":["detect","adblock","adblocker","blockadblock","fuckadblock"],"author":{"name":"William McMurray","email":"tiwilinlove@hotmail.com"},"license":"ISC","bugs":{"url":"https://github.com/wmcmurray/just-detect-adblock/issues"},"homepage":"https://github.com/wmcmurray/just-detect-adblock#readme","devDependencies":{"http-server":"^0.12.3","rollup":"^2.32.0","rollup-plugin-terser":"^7.0.2"},"gitHead":"b8fc381a152814b0fc100021ebf01ca0fe2efd9a","_id":"just-detect-adblock@1.1.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xtgnwBBZaLtKspGo6jDX/H0FDsHrn41mQVWhNHge7pZe6Nj2gU2izfC09O0rPU/i97iMcJFVjbecFiTAvmNhLQ==","shasum":"01910678247394b8d8b146afc869055eda2edd2e","tarball":"https://registry.npmjs.org/just-detect-adblock/-/just-detect-adblock-1.1.0.tgz","fileCount":5,"unpackedSize":10406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjL/5CRA9TVsSAnZWagAAL8EP/2nhoGP31Jd7rb5szNy5\nuIRcxt3reSgkCZk4snaa2/8mBS+EsFug0UiOH/aZMFvoOtkdd0jNGJSBNsYn\nIufD86yaHOwr86a7zExcKl5dHDO9Wn0fnGakXLdjSIXnOSYUH6GreTosROHB\n5FJ8cqyVXVZAfVnt7vRLV+SSy6AD0S9Ussu7ZGCZcnc+bn+fIxBIPYnKuQQj\nTY3j6JT+O50XjMv3DUpUIyXdrAYG1cFBTDAKbfTj0MxV1q+x3arThitVpHxf\njUB3l9Fm6QF3JtbFaZe3UoGubZDpklqVo6H7VjWW9iGHAQZvnFNzYrVW7FSl\nRc6vVaA/dF9LDQZFW8ZI3e2ePNQvOo12Vhgw4+s6EIX2ZzEQ2jJUNGlanZ8d\nAYpntKvCwVrqSSy7XwCLgKGhktu3LfMlmvfqIp/LqjHttZHER6U1XLpOuqts\nGY/LbBhhxOFG14PG4TiG9n4aGcX8U6jn/+B2KxqX8Ygqskx6RIonlVZtzD4a\n9juirG24mkinswEvyUWty3Gsj/nPvymYI+04KRuNkhpae4PPolF5QG/me01b\nhbTm3ci3mf97aYK2lutPx66XE3a69Mpt4vtksPIpWAYA1EoviB2EmH3k6vza\nUO2m58QOqkOlXSMGP2OEiEgil2VWMBhF7aQgVm8XqnscLWx0p7fdIcJjHoQ3\njAYg\r\n=PBmz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICnJcq/Akt6NSmOrBzprIdt4zdN8xt5sCXaZ7baPUDtuAiA96EPx/ZdN7LOP1A6JEn2EhyUXfXQgReJr1ymtABIX9Q=="}]},"maintainers":[{"name":"wmcmurray","email":"tiwilinlove@hotmail.com"}],"_npmUser":{"name":"wmcmurray","email":"tiwilinlove@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-detect-adblock_1.1.0_1603059705252_0.3783615559809188"},"_hasShrinkwrap":false}},"readme":"# just-detect-adblock :no_entry_sign::detective:\nThis package was originally ~~inspired~~ copied from [BlockAdBlock](https://github.com/sitexw/BlockAdBlock) & [FuckAdBlock](https://github.com/sitexw/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 !\n\n\n## Features\n\n- can detect **browser extensions** (like **Adblock Plus**)\n- can detect **Brave browser** shields\n- can detect **Opera browser** adblocker\n\n<br>\n\n\n## How to use\n\n```\nnpm install just-detect-adblock --save\n```\n\n| Methods                       | Return                          | Description                                                        |\n| :---------------------------- | :------------------------------ | :------------------------------------------------------------------|\n| `detectAnyAdblocker()`        | *Promise(detected=true/false)*  | perform all available checks below until at least one is positive  |\n| `detectDomAdblocker()`        | *Promise(detected=true/false)*  | detect if a browser extension is hiding ads from the DOM           |\n| `detectBraveShields()`        | *Promise(detected=true/false)*  | detect if Brave browser shields seems to be activated              |\n| `detectOperaAdblocker()`      | *Promise(detected=true/false)*  | detect if Opera browser adblocker seems to be activated            |\n| **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)** |\n\n<br>\n\n## Exemples\n\n### Webpack\n```javascript\nimport { detectAnyAdblocker } from 'just-detect-adblock'\n\ndetectAnyAdblocker().then((detected) => {\n  if(detected){\n    // an adblocker is detected\n  }\n});\n```\n\n### Browser\n```html\n<script type=\"text/javascript\" src=\"/dist/bundle.umd.js\"></script>\n\n<script type=\"text/javascript\">\n  justDetectAdblock.detectAnyAdblocker().then(function(detected) {\n    if(detected){\n      // an adblocker is detected\n    }\n  });\n</script>\n```\n","maintainers":[{"name":"wmcmurray","email":"tiwilinlove@hotmail.com"}],"time":{"modified":"2022-06-19T07:24:58.757Z","created":"2017-03-25T16:20:04.065Z","1.0.0":"2017-03-25T16:20:04.065Z","1.1.0":"2020-10-18T22:21:45.379Z"},"homepage":"https://github.com/wmcmurray/just-detect-adblock#readme","keywords":["detect","adblock","adblocker","blockadblock","fuckadblock"],"repository":{"type":"git","url":"git+https://github.com/wmcmurray/just-detect-adblock.git"},"author":{"name":"William McMurray","email":"tiwilinlove@hotmail.com"},"bugs":{"url":"https://github.com/wmcmurray/just-detect-adblock/issues"},"license":"ISC","readmeFilename":"README.md"}