This is AdBlock's old support site. It is available for archival purposes only. To create a new discussion, or to visit the up-to-date knowledge base, please visit help.getadblock.com
KissAnime
Hi, KissAnime is using scripts to detect if and adblocker is
running, can you please devise a fix for this.
This is the script that they use:
"
function AddCloseButton(id) {
var elem = $('#' + id);
if (elem.position() != null) {
var top = elem.position().top + elem.height();
var left = elem.position().left;
elem.after('<div class="divCloseBut" style="position:absolute; left:' + left + 'px; top: ' + top + 'px"><a href="#" onclick="$(\'#' + id + '\').remove();$(this).remove(); InitCloseButton(); return false;">Hide</a></div>');
}
}
function InitCloseButton() {
$('.divCloseBut').remove();
AddCloseButton('adsIfrme6');
AddCloseButton('adsIfrme7');
AddCloseButton('adsIfrme8');
AddCloseButton('adsIfrme9');
AddCloseButton('adsIfrme10');
AddCloseButton('adsIfrme11');
}
InitCloseButton();
// $('#adCheck1').load(function () {
// CheckAdImage($(this));
// });
// $('#adCheck2').load(function () {
// CheckAdImage($(this));
// });
// $('#adCheck3').load(function () {
// CheckAdImage($(this));
// });
// $(window).load(function () {
// CheckAdImage($('#adCheck1'));
// CheckAdImage($('#adCheck2'));
// CheckAdImage($('#adCheck3'));
// setTimeout('DoDetect2()', 5000);
// });
function CheckAdImage(elem) {
//if (elem.width() > 1) {
if (elem.is(":visible")) {
isBlockAds2 = false;
elem.hide();
}
}
$(function () {
setTimeout('DoDetect1()', 1000);
});
function DoDetect1() {
if (!$('#adsIfrme10').is(":visible")) {
DoDetect2();
}
}
function DoDetect2() {
//var isBlock3 = ($('#adsIfrme').length == 0);
// if (!$('#adsIfrme6').is(":visible") && !$('#adsIfrme2').is(":visible")) {
// isBlockAds2 = true;
// }
// $('#adsIfrme1').hide();
// $('#adsIfrme2').hide();
// CheckAdImage($('#adCheck1'));
// CheckAdImage($('#adCheck2'));
// CheckAdImage($('#adCheck3'));
//if (isBlockAds2) {
$('#switch').hide();
$('#disqus_thread').hide();
$('#centerDivVideo').attr('style', 'width: 100%');
$('#divContentVideo').attr('style', 'width: 100%');
$('#divContentVideo').html("<div style='font-size: 15px; font-weight: bold; text-align:center; padding-top:30px; line-height: 35px'>Please disable AdBlock (or any ads blocking) to watch anime on KissAnime. You can <a href=\"/Message/GoPremium\">Go Premium</a> to disable ads.<br>You lost some KPoints because of this. If you think this is an error, please report <a href=\"https://www.facebook.com/notes/kissanimecom/disabled-adblock-but-still-cannot-watch-anime/437754683006105\" target=\"_blank\">here</a><br></div><div><img src=\"http://i.imgur.com/PyCJoo5.jpg\" /></div>");
$('#divDownload').html("");
// $.ajax( // { // type: "POST", // url: "/External/GotBanned", // success: function (message) {
// } // });
// if (isBlock3)
// location.href = "/";
//}
}
</script>
<iframe src="/Ads/check.aspx" style="display: none !important; width: 5px; height: 5px;">
</iframe>
"
Discussions are closed to public comments.
If you need help with AdBlock please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Rhana on 10 Nov, 2015 04:19 PM
Hi Arion,
If you're on a site that's refusing to show content if AdBlock is installed, please follow the instructions in this Knowledge Base article about websites detecting AdBlock and let us know how it goes!
A quick alternative is just to disable AdBlock on that site. Click the AdBlock button and select Don't run on pages on this domain, and then click Exclude.
Rhana
AdBlock Community Manager