Skip to content

Commit dcde489

Browse files
authored
Update README.md
1 parent 1cce17b commit dcde489

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Adblock Detection Script (JavaScript)
22
JavaScript function to detect the presence of an ad blocker. More info in the blog post on [AdGlare Ad Server](https://www.adglare.com/kb/45/adblock-detection-script-incredibly-simple-and-effective).
33

4-
##Usage
4+
## Usage
55
Include the JS file, and then call the function `hasAdblock`.
66

7-
##Example
7+
## Example
8+
`
89
<script src='adblock-detection-script.js'></script>
910
<script>
1011
if(hasAdblock()) {
@@ -13,3 +14,4 @@ Include the JS file, and then call the function `hasAdblock`.
1314
//do something
1415
}
1516
</script>
17+
`

0 commit comments

Comments
 (0)