Detecting AdBlocking software?

前端 未结 10 1419
梦谈多话
梦谈多话 2020-12-13 01:10

I was recently visiting a site and noticed that the page had a section that said it noticed that I was using AdBlocking software and could I kindly turn it off to help suppo

10条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 01:31

    I found this part in the code which seems to look like how they did it:

    /*MOOTOOLS*/
    window.addEvent('domready', function(){
    
    $$('.cat-item').each(function(el) { 
        var fx = new Fx.Morph(el,{ duration:300, link:'cancel' }); 
            el.addEvents({ 
            'mouseenter': function() { fx.start({ 'padding-left': 25 }); }, 
            'mouseleave': function() { fx.start({ 'padding-left': 15 }); } 
            }); 
        });
    
        if ($$(".google-sense468")[0] && $$(".google-sense468")[0].clientHeight == 0 && $('block-warning')) $('block-warning').setStyle('display','block');
    
    });
    /*MOOTOOLS END*/
    

提交回复
热议问题