{"id":16144499,"url":"https://github.com/officialrajdeepsingh/adsblock-detector","last_synced_at":"2025-04-06T20:15:49.802Z","repository":{"id":39921724,"uuid":"494428208","full_name":"officialrajdeepsingh/adsblock-detector","owner":"officialrajdeepsingh","description":"the Ad Block Detector is help to detect ads block active or not in user browser","archived":false,"fork":false,"pushed_at":"2022-05-21T18:10:15.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-29T20:06:57.156Z","etag":null,"topics":["adsbloack-detector","adsblock","adsense"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/adsblock-detector","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/officialrajdeepsingh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-20T10:55:18.000Z","updated_at":"2022-05-21T10:09:26.000Z","dependencies_parsed_at":"2022-09-17T05:40:32.572Z","dependency_job_id":null,"html_url":"https://github.com/officialrajdeepsingh/adsblock-detector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fadsblock-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fadsblock-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fadsblock-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officialrajdeepsingh%2Fadsblock-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/officialrajdeepsingh","download_url":"https://codeload.github.com/officialrajdeepsingh/adsblock-detector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543598,"owners_count":20955865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adsbloack-detector","adsblock","adsense"],"created_at":"2024-10-10T00:13:24.485Z","updated_at":"2025-04-06T20:15:49.783Z","avatar_url":"https://github.com/officialrajdeepsingh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ads Block Detector works for your website. It is very easy to step into your website. Ad Block Detector work for all browsers.\n\n### Note:\nAds Block Detector only work for Google Adsense. \n\n\n## How to use Ads Block Detector?\nYou can use an ads block detector with NPM and CDN.\n\n## NPM\n```javascript\n        import adsblock from './node_modules/adsblock-detector/dist/build.js';\n            or \n        import adsblock from 'adsblock-detector';\n\n        const ads = new adsblock()\n\n        console.log(ads.total())\n        console.log(ads.check() )\n\n```\n\n## CDN\n You can copy lalest version of ads block detector CDN link: `https://unpkg.com/adsblock-detector`\n\n#### Example 1\n```html\n\n    \u003cscript type=\"module\" src=\"https://unpkg.com/adsblock-detector@1.0.4/dist/build.js\"\u003e\n    \u003c/script\u003e\n\n    \u003cscript type=\"module\" \u003e\n        \n        import adsDetector from \"./node_modules/adsblock-detector/dist/build.js\"\n\n        const ads = new adsDetector()\n\n        console.log(ads.total())\n        console.log(ads.check())\n    \u003c/script\u003e\n```\n\n#### Example 2\n\n```cmd\n\u003cscript type=\"module\"\u003e\n \n     import adsDetector from \"https://unpkg.com/adsblock-detector@1.0.3/dist/build.js\"\n        \n     \n        let adsBlockDetector = new adsDetector()\n\n         console.log(adsBlockDetector.total())\n         console.log(adsBlockDetector.check())\n\n\u003c/script\u003e\n\n```\n\n## Inbuilt functions\nIn the ads block detector npm package, two inbuilt functions are available.\n\n1. total()\n2. check()\n\n## total()\nHelp provide the total number of ads shown on your website.\n\n```javascript\n \n    const ads = new adsDetector()\n    \n    let totalAds = ads.total()\n\n```\n\n## check()\nThe check function provides adblocker is active or not in the client or user web browser.\n\n```javascript\n \n    const ads = new adsDetector()\n    \n   let adblocker = ads.check()\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofficialrajdeepsingh%2Fadsblock-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofficialrajdeepsingh%2Fadsblock-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofficialrajdeepsingh%2Fadsblock-detector/lists"}