Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Anti-AdBlock

# index html
# int html
The above HTML code creates a simple message with a heading, paragraph, and a button. The CSS code adds some styling to the message and button. The JavaScript code checks if an ad blocker is enabled by creating a test ad element and checking its height. If the height is 0, then an ad blocker is enabled. If an ad blocker is enabled, the anti-adblock message is displayed, and the disable ad block button is created. When the button is clicked, the page is reloaded, allowing ads to be displayed.

Note that this is a very basic example and may not work in all situations. It's also important to note that some users may choose to leave a website rather than disable their ad blocker, so it's important to weigh the pros and cons of implementing an anti-adblock solution.