weixin_39775106
2021-01-11 23:41 阅读 6

hackintosh.zone

This website is at it again, this time with a full redirect. http://hackintosh.zone redirects to: https://www.hackintosh.zone/adblock/stop_adblock.html?goback=https://www.hackintosh.zone/ I am using AdBlock on Chrome with Tampermonkey. I have tried the following custom filters: @@||hackintosh.zone^$generichide @@.ico$image,domain=hackintosh.zone @@.jpg$image,domain=hackintosh.zone @@|https://$script,domain=hackintosh.zone,third-party and @@||hackintosh.zone^$generichide @@||hackintosh.zone/*ad$script @@||pagead2.googlesyndication.com^$script,domain=hackintosh.zone hackintosh.zone##.adscenter hackintosh.zone###googleads They don't work on this site However, these work on the sister site hackintosh.computer

This is what the blocking page looks like: capture

I don't really know how to use the chrome Developer Tools that well, however I have manager to capture this script using the "pause on exceptions" feature:


var l1l1ll1l = 'www.hackintosh.zone';
if (window.location.hostname.replace("www.", "") != l1l1ll1l.replace("www.", "")) {
    var ll = '';
    if (ll !== '') {
        alert(ll);
    }
    throw new Error('');
}
window.nobkn = true;
function r_direct() {
    window.location = "https://www.hackintosh.zone/adblock/stop_adblock.html?goback=" + window.location.href;
}
;function loadscriptcheck() {
    if (window.nobkn === true) {
        var tag = document.createElement("script");
        tag.type = "text/javascript";
        tag.src = "https://cdnjs.cloudflare.com/ajax/libs/postscribe/2.0.6/postscribe.min.js";
        document.getElementsByTagName('head')[0].appendChild(tag);
        (function() {
            var s = document.createElement('script');
            s.type = 'text/javascript';
            s.async = true;
            s.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
            var x = document.getElementsByTagName('script')[0];
            x.parentNode.insertBefore(s, x);
        })();
        postscribe('.adsense', '<script src="%5C%22https:%5C/%5C/pagead2.googlesyndication.com%5C/pagead%5C/show_ads.js%5C%22"><\/script>');
    }
}
;function adchecka() {
    var l1 = false;
    var addiv = ['panelAd', 'partner-ad', 'pencil-ad', 'permads', 'post-ad', 'pr_ad', 'publicidad', 'pushDownAd', 'pusher-ad', 'quigo-ad', 'railAd', 'related_ad', 'rhsBottomAd', 'rhs_ads', 'rhs_adverts', 'rightAd', 'rightAdBar', 'rightAdsDiv', 'rightad2', 'rightads', 'rotating_ad', 'rowAdv', 'rxgheader', 'search-ads1', 'secondBoxAd', 'sideAD', 'sideAd', 'sideBarAd', 'side_ad', 'sidead', 'sideadzone', 'sidebar-ad1', 'sidebar-ad2', 'sidebarad', 'singleAd', 'singlead', 'site-ads', 'sitead', 'skinmid-ad', 'slide_ad', 'slideboxad', 'slider_ad', 'slideshowAd', 'small_ads', 'socialAD', 'source_ad', 'special_ads', 'sponlink', 'sponsLinks', 'sponsorAd', 'sponsorBar', 'sponsor_ads', 'sponsored1', 'spotadvert3', 'sprint_ad', 'story_ads', 'storyad2', 'subheaderAd', 'swfAd1', 'takeoverad'];
    lI = addiv[Math.floor(Math.random() * addiv.length)];
    var testAd = document.createElement(lI);
    testAd.innerHTML = ' ';
    testAd.className = 'adsbox';
    document.body.appendChild(testAd);
    if (testAd.offsetHeight === 0) {
        l1 = true;
        window.nobkn = false;
        r_direct();
    }
    testAd.remove();
}
;function adcheckb() {
    window.addEventListener('load', function() {
        if (window.ga && ga.create) {} else {
            window.nobkn = false;
        }
    }, false);
}
;function adcheckc() {
    jQuery.ajax('https://tpc.googlesyndication.com/simgad/16130901341720316100').fail(function(d) {
        if (d.status === 0 || d.statusText == 'error') {
            window.nobkn = false;
            r_direct();
        }
    });
}
;document.addEventListener("DOMContentLoaded", function(event) {
    jQuery.when(adchecka()).then(adcheckb()).then(adcheckc()).then(loadscriptcheck());
});
Screenshot: ![image](https://cloud.githubusercontent.com/assets/9735911/21734345/f61b2b62-d430-11e6-9dc6-0eaa42c61271.png)

该提问来源于开源项目:reek/anti-adblock-killer

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • weixin_39787826 weixin_39787826 2021-01-11 23:41

    add in your adblock these filters

    
    @@/^((?!googlesyndication|adsystem).)*$/$script,third-party,domain=hackintosh.zone
    @@||$xmlhttprequest,image,domain=hackintosh.zone,third-party
    @@||cdn.hackintosh.zone/ads/ads.js
    
    点赞 评论 复制链接分享
  • weixin_39775106 weixin_39775106 2021-01-11 23:41

    thanks, it worked! Closing Issue.

    点赞 评论 复制链接分享
  • weixin_39778393 weixin_39778393 2021-01-11 23:41

    for uBO

    `
    ||hackintosh.zone/advjs/bin/jso.php^$script
    hackintosh.zone##script:inject(setTimeout-defuser)
    

    `

    点赞 评论 复制链接分享

相关推荐