Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.
/ AdBlock-Checker Public archive

Detect AdBlock (working on Firefox and Chrome browser) and show a message to users.

Notifications You must be signed in to change notification settings

J2TEAM/AdBlock-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdBlock Checker

Detect AdBlock and show a message to users.

Demo

Works well on both most popular browser ✅

Demo Online: http://j2team.github.io/AdBlock-Checker/

Screenshot:

AdBlock Checker

How to use

Step 1: CSS

Add before </head>:

<link rel="stylesheet" href="adblock-checker.css" />

Step 2: Javascript

Add before </body>:

<script src="advertisement.js"></script>
<script src="adblock-checker.js"></script>
<script type="text/javascript">
	adb_checker({
		url: 'http://www.afreesms.com/adblock/disabling/', // Link to help users disable AdBlock
		redirect: false, // True to redirect user to the above url
		warning: {
			text: 'Please disable AdBlock!', // Message to the users
			button: 'Help me to disable!'
		}
	});
</script>

Contact

If you have an ideas or want to report a bug, please contact me:

About

Detect AdBlock (working on Firefox and Chrome browser) and show a message to users.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published