SombodyLoLz
Junior Member
- Jan 24, 2013
- 183
- 140
If you guys have lotsa AdBlock traffic, this script can help you.
It will detect when somebody is using a website and redirect it to some url of your choice
Example:https://dl.dropboxusercontent.com/u/45938389/bhwadblockdemo.html
(clicking on this link will always say that you are using adblock just for the sake of the demostration)
Just edit the [Pointers] (you SHOULD remove the brackets) and put it where your ad code usually goes.
And then test it out, if it worked, then that's it! (duh), if not, then you need to use a slightly modified version of the script
It will detect when somebody is using a website and redirect it to some url of your choice
Example:https://dl.dropboxusercontent.com/u/45938389/bhwadblockdemo.html
(clicking on this link will always say that you are using adblock just for the sake of the demostration)
Just edit the [Pointers] (you SHOULD remove the brackets) and put it where your ad code usually goes.
Code:
<div id="fab13">
[SIZE=3][B][Your usual ad code here][/B][/SIZE]
</div>
<script type="text/javascript">
jQuery(document).ready(function () {
if (jQuery("#fab13").height() < 10) {
alert("[SIZE=3]A message before the user is redirected[/SIZE]");
document.location = "[[B][URL="http://Site.that.the.adblock.user.will.be.redirected.com"]S[/URL]ite where the user will be redirected][/B]";
}
});
</script>
Code:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<div id="fab13">
[SIZE=3][B][Your usual ad code here][/B][/SIZE]
</div>
<script type="text/javascript">
jQuery(document).ready(function () {
if (jQuery("#fab13").height() < 10) {
alert("[SIZE=3]A message before the user is redirected[/SIZE]");
document.location = "[Site where the user will be redirected[B]][/B]";
}
});
</script>
Last edited: