Addition of The Independent

About: Assassinate Ad Block Blockers

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;
  }
}

Réponses

  • Thanks! Will review soon.

  • @Kxmode said:
    Thanks! Will review soon.

    Thanks very much!

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

  • 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.

Connectez-vous ou Inscrivez-vous pour répondre.