Updated Inline script tag filtering (markdown)

Raymond Hill 2015-10-15 13:02:07 -04:00
parent 3d1ebdf1de
commit 6c4a1c10ec

@ -79,12 +79,16 @@ Wholesale blocking of inline script tags does prevent the self-defacing, but pos
www.focus.de##script:contains(uabInject)
***
#### Compatibility with Adblock Plus
It appears inline script tag cosmetic filters can be used in filter lists which are also meant to be used for Adblock Plus ("ABP") -- ABP will ignore the `[...]##script:contains([...])` filters. This makes it possible for maintainers of filter lists to make use of this new filter syntax for the benefit of uBlock Origin users while not causing problem for users of ABP.
The compatibility was verified for the Firefox version of ABP however, I did not check for the Chromium version of ABP. This will need confirmation for whether using the new filter on a Chromium version of ABP has no negative consequences.
***
#### Concrete examples of usefulness
A concrete example of a site which resorts to self-defacement when it detects that a blocker is in use -- the front page of [rp-online.de](http://www.rp-online.de/):
@ -103,6 +107,8 @@ Because blocking inline script tags are conceptually closer to cosmetic filterin
Whatever can't be blocked using a network request filter can be taken care by a cosmetic filter, which is the removal of DOM elements from a web page. Hence inline script tag filtering is implemented using the cosmetic filter syntax -- the only difference is that when blocked, inline script tags are not removed from view (they are already invisible) but instead the execution of the javascript code inside the script tag is blocked.
***
#### Does Adblock Plus support this filter syntax?
No. And apparently, [they won't](https://issues.adblockplus.org/ticket/748#comment:9) ("trev" on Adblock Plus issue tracker):