Created
October 13, 2012 09:24
-
-
Save zerowebcorp/3883935 to your computer and use it in GitHub Desktop.
jQuery AdBlock Detection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* jQuery AdBlock Detection | |
* Author: Vivek | |
* Web: http://www.vivekv.com | |
* | |
* Create a file named advertisement.js with this one line content "$.ads = true;" | |
* Then include the file in your html. | |
*/ | |
$(function(){ | |
if($.ads == undefined) | |
alert("Ads are disabled"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Script seems doesn't work - event reacts even without any adblocks.