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.

< Spätná väzba na Assassinate Ad Block Blockers

Otázka/komentár

§
Pridaný: 06.05.2020

Yahoo Mail

Yahoo recently started to detect an ad blocker. Refreshing the page bypasses it but it will pop up again randomly. Please add mail.yahoo.com if possible

Thanks for your efforts

KxmodeAutor
§
Pridaný: 08.05.2020

Added to the list. No ETA. Thanks!

KxmodeAutor
§
Pridaný: 08.05.2020
Upravený: 08.05.2020

Hi. So I logged into my mail.yahoo.com account with Adblock Plus enabled and didn't see what you see. Are you using AdBlock or Adblock Plus?

KxmodeAutor
§
Pridaný: 08.05.2020

Oh. I see it now. https://i.imgur.com/2AR8W9p.jpg

Working on it.

KxmodeAutor
§
Pridaný: 08.05.2020
Upravený: 08.05.2020

Yahoo has a Content-Security-Policy in place that blocks externals scripts from executing on mail.yahoo.com. They've put all resources they load behind a group of about 21 domains that their Content-Security-Policy allows. Yahoo owns all those domains. From what I observed, Yahoo doesn't use jQuery, so it is not like I can bypass the script load and use theirs. I gave it an hour and determined my script cannot run on this domain.

KxmodeAutor
§
Pridaný: 08.05.2020
Upravený: 08.05.2020

As a follow-up, the thought had occurred to me that I might want to convert the script over to pure JavaScript so that it is not reliant on jQuery. DOM selection is effortless in Jquery than pure JavaScript. Its library provides me with the ability to quickly do things that would otherwise take longer in pure JavaScript. That said, I'm certain Yahoo's Content-Security-Policy would have still blocked my script from executing regardless of its reliance on jQuery.

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.