From cdac5066082e499937f943fc2948b423a90a7d74 Mon Sep 17 00:00:00 2001 From: grossdm Date: Wed, 26 Sep 2018 20:37:19 -0400 Subject: [PATCH] Added updated filter syntax (induced by HTML filtering) and included a link to the HTML filters tag. --- Inline-script-tag-filtering.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Inline-script-tag-filtering.md b/Inline-script-tag-filtering.md index d635dd0..934ea12 100644 --- a/Inline-script-tag-filtering.md +++ b/Inline-script-tag-filtering.md @@ -66,6 +66,8 @@ uBlock Origin 1.2.0 introduces a new way to block **specific** inline script tag example.com##script:contains(...) +Please note that with the introduction of [HTML filtering](https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#html-filters), the `script:contains(...)` syntax is now deprecated and internally converted into an equivalent `##^script:has-text(...)` HTML filter. + Where the value inside the parenthesis in `contains(...)` can be a plain string or a literal javascript regular expression (`/.../`). A script tag cosmetic filter will prevent the execution of whatever javascript inside a **specific** script tag when there is a match, i.e. when the plain text or the regular expression is found inside the script tag. So we can use script tag filtering for our above example to specifically disable one of the script tag (assuming the page's URL is `https://foo.example/bar.html`):