{"_id":"@5x9/detect","_rev":"1-4377876823487b3ae7bd4a0b3269ff4d","name":"@5x9/detect","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@5x9/detect","version":"0.1.0","description":"Simple library for detecting adblockers","main":"fivenine.detect.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/burtcorp/5x9-detect.js.git"},"author":{"name":"joel@burtcorp.com"},"license":"ISC","bugs":{"url":"https://github.com/burtcorp/5x9-detect.js/issues"},"homepage":"https://github.com/burtcorp/5x9-detect.js#readme","gitHead":"e76cd4247d373f2440ac832d00125b19642802b8","_id":"@5x9/detect@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.2.1","_npmUser":{"name":"jowl","email":"joel.segerlind@gmail.com"},"dist":{"integrity":"sha512-x4xykd2XpVtoXToXK5gDWDZ0hHFmihuXHFWXMk87oJEJxHM/L3dXMG/y3J6VVu8nFt2z5eQumkNNdDH83WhV6g==","shasum":"816ac8a6949bc26c2660db1bb089815f01307bc7","tarball":"https://registry.npmjs.org/@5x9/detect/-/detect-0.1.0.tgz","fileCount":5,"unpackedSize":2252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcClk2CRA9TVsSAnZWagAA8eoQAJY1Biu4M9XMqljD6heg\nk821qT+FMiv0oKlH8lhQiRlgyJB2jVJpvKxmBUiNOYZSPwZV7Af9VgwzFv7l\nxMW3ywcx4EXhkFYPAMmwQp9oUhFQLWbzonWGF6cgY+N2kcA8s2IrZqcH20ZU\nge3hmubrntOPB/YNXQgIMh1qDStlYaMxuGIxD+6LpL68gDY6zZatgggYmGuO\n49RtDYWVYC3AuKiNepSyw8RFQvl12Ze1ed3hvu42HklDp7WerwEIbUhvnRge\nbys+UfxtMf/mi8VrvbAt3Qo1WjyJdWiv9qRAO0ly+k8zmo1zjIIcHxCAW2gw\nJcenVhsXqomJK9N/ao9Es71ScYXrx7R5Kim1cSQXvhxeh1LG7Wjavji3PPgG\n9emvD0OjHgQ5pXzVhiIYsToLR3+PKdPWWggXx0CJX9ySETF+5znMaTXDNzBb\nmkaxYEMIgrnk4EB8xb3hOW0WZWpEr5Jd/fjlnmeAyL4sGyCVpu+8P38UUuZ5\nyE2rMpHS0K0mNqJNomBLXUhx/RmRQH1ro86mCe4nH083l4FtV7GmeNaAHsn6\nE3WbC3QK+jH6RkeOHDhN+7l+IewnTcQ8rhkINXJ5ZXr+MpTGvcWpFaSoiotP\n7NYpkYUiFXiWoumAqjxVYDG0Ir2vkfIuYA+pB40j4NJr9ln+P+J2M7iH+hje\niXoQ\r\n=LeMq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHGQxqFZGdTmPOTvUaastPvMVp6roQa1xXZ9XyjR+4yQIgTYRMotsGMm8Ag81E6RkepZuXbuulEyogeNkdAuTXIKQ="}]},"maintainers":[{"name":"bjorne","email":"bjorne@gah.se"},{"name":"jowl","email":"joel.segerlind@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect_0.1.0_1544182070036_0.5198021742752079"},"_hasShrinkwrap":false}},"time":{"created":"2018-12-07T11:27:49.878Z","0.1.0":"2018-12-07T11:27:50.171Z","modified":"2022-04-04T10:48:40.938Z"},"maintainers":[{"name":"bjorne","email":"bjorne@gah.se"},{"name":"jowl","email":"joel.segerlind@gmail.com"}],"description":"Simple library for detecting adblockers","homepage":"https://github.com/burtcorp/5x9-detect.js#readme","repository":{"type":"git","url":"git+https://github.com/burtcorp/5x9-detect.js.git"},"author":{"name":"joel@burtcorp.com"},"bugs":{"url":"https://github.com/burtcorp/5x9-detect.js/issues"},"license":"ISC","readme":"# @5x9/detect\n\nDetect whether your visitors are using adblockers or not.\n\n## How to use\n\n```html\n<script src=\"fivenine.detect.js\"></script>\n<script>\n  fivenine.detectAdblock(function(adblockDetected) {\n    if(adblockDetected) {\n      // the user has enabled adblock\n    } else {\n      // no adblocker detected\n    }\n  })\n</script>\n```\n\n## How it works\n\nThe 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.","readmeFilename":"README.md"}