Assassinate Ad Block Blockers

You know those annoying content blockers that demand you remove your AdBlock so you can read the content? This script removes them by force. Please note, this is not automatically universal like AdBlock Plus. It operates on a per-site basis that the author must add.

< Feedback on Assassinate Ad Block Blockers

Review: Good - script works

Addition of The Independent

I made a couple of additions to mop up the garbage on the Independent website, could you perhaps include it in your next release? Many thanks!

  • Matched independent: // @match *://www.independent.co.uk/*

  • Added domain:

    var arrayAbnormalBlockerDomains = [ "www.makeuseof.com",
                                    "www.businessinsider.com",
                                    "www.thedailybeast.com",
                                    "www.independent.co.uk"].map(String);
    
  • Added switch and removals for Independent:

    function SledgehammerRemoval() 
    {
    switch(window.location.hostname)
    {
        case arrayAbnormalBlockerDomains[2]: // dailybeast
            $(".tp-modal").remove();
            $(".tp-backdrop").remove();
            $("body").removeClass("tp-modal-open");
            $("[id*='offer-0-']").remove();
            $("[displayname*='PianoTag']").remove();
            $("[src*='tinypass.min.js']").remove();
            $("#piano_bottom_ribbon_wrapper").remove();
            console.clear();
            console.log("blocker code removed");
        break;
        case arrayAbnormalBlockerDomains[3]: //The Independent
            $(".tp-modal").remove();
            $(".tp-backdrop").remove();
            $("body").removeClass("tp-modal-open");
            $("html").removeClass("tp-modal-open");
            $("[src*='tinypass.min.js']").remove();
            console.clear();
            console.log("blocker code removed");
        break;
    }
    }
    
KxmodeAuthor
§
Posted: 2019-08-05

Thanks! Will review soon.

@Kxmode said: Thanks! Will review soon.

Thanks very much!

KxmodeAuthor
§
Posted: 2019-12-05

Hey Freeman, posting a follow-up to say that I haven't forgotten your contribution. It's still on my to-do list.

KxmodeAuthor
§
Posted: 2020-02-04

Hi, Freeman. So I had a chance to review www.independent.co.uk. From what I observed, the only thing that appeared is a basic modal that can be closed. Once closed, it did not reappear. It's a nuisance to be sure, but it doesn't prevent you from reading the content. This script is for websites that employ aggressive blockers that force you to turn off your AdBlock or some other blocker. I very much appreciate the help, but I prefer not to include simple modals. If you do encounter a section on that site with a proper ad block blocker, let me know, and I'll investigate, or better yet, feel free to create the code, and I'll add.

Post reply

Sign in to post a reply.