{"id":18743322,"url":"https://github.com/rimiti/abm","last_synced_at":"2025-04-30T17:06:39.376Z","repository":{"id":40845622,"uuid":"245652051","full_name":"rimiti/abm","owner":"rimiti","description":"✋ Detects AdBlock and display an unclosable modal. (AdBlockModal)","archived":false,"fork":false,"pushed_at":"2024-10-29T16:13:53.000Z","size":418,"stargazers_count":2,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T17:06:32.331Z","etag":null,"topics":["adblock","ads","advertising","block","blocker","modal"],"latest_commit_sha":null,"homepage":"https://rimiti.github.io/abm/demo/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rimiti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-07T14:56:32.000Z","updated_at":"2024-08-30T07:51:49.000Z","dependencies_parsed_at":"2022-09-07T00:12:59.165Z","dependency_job_id":null,"html_url":"https://github.com/rimiti/abm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fabm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fabm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fabm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fabm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rimiti","download_url":"https://codeload.github.com/rimiti/abm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251748947,"owners_count":21637418,"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":["adblock","ads","advertising","block","blocker","modal"],"created_at":"2024-11-07T16:11:01.516Z","updated_at":"2025-04-30T17:06:39.326Z","avatar_url":"https://github.com/rimiti.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# abm\n\n[![MIT License][license-badge]][license]\n[![PRs Welcome][prs-badge]][prs]\n\n## Description\n\nAdblock modal blocker.\n\n## Install\n\n```\n$ yarn add @rimiti/abm\n```\n\n## Demo\n\n[Live demo](https://rimiti.github.io/abm/demo/)\n\n\u003c!-- ![Example](https://github.com/rimiti/abm/blob/master/demo/demo.png) --\u003e\n\u003cimg src=\"https://github.com/rimiti/abm/blob/master/demo/demo.png\" height=\"550\"\u003e\n\n## How it works?\n\n1. Add these rows into the *head* block:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/npm/@rimiti/abm@latest/dist/index.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" media=\"all\"  href=\"https://cdn.jsdelivr.net/npm/@rimiti/abm@latest/dist/style.css\" /\u003e\n\n```\n\n2. Add this HTML block into the *body*:\n\n```html\n\u003cdiv id=\"abm\"\u003e\n  \u003cdiv class=\"abm-position\"\u003e\n    \u003cdiv class=\"abm-container\"\u003e\n      \u003ch3 class=\"abm-title\"\u003eAdblock detected\u003c/h3\u003e\n      \u003cp class=\"abm-text\"\u003ePlease, \u003cstrong\u003eturn off\u003c/strong\u003e your ad blocker in order to continue browsing.\u003c/p\u003e\n      \u003ca class=\"abm-reload\" onclick=\"window.location.reload()\" href=\"#\"\u003eRefresh the page\u003c/a\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\n\n## Scripts\n\nRun using yarn \u003cscript\u003e command.\n\n    clean - remove temporary files\n    build - compile source files\n    build:dev - compile source files for development\n\n## License\n\nMIT © [Dimitri DO BAIRRO](https://github.com/rimiti/abm/blob/master/LICENSE)\n\n[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\n[license]: https://github.com/rimiti/abm/blob/master/LICENSE\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimiti%2Fabm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frimiti%2Fabm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimiti%2Fabm/lists"}