From 8f5c7ba66eb0669d9dc5be3f0577aabe9ee8e900 Mon Sep 17 00:00:00 2001 From: gwarser Date: Wed, 29 Aug 2018 15:08:57 +0200 Subject: [PATCH] Updated Static filter syntax (markdown) --- Static-filter-syntax.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Static-filter-syntax.md b/Static-filter-syntax.md index d6ef0e4..99135bc 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -221,6 +221,10 @@ With the introduction of HTML filtering, the `script:contains(...)` is now depre script:inject(...) +Starting from [1.15.12](https://github.com/gorhill/uBlock/commit/ec56165d0d36ab91fba7d5cf44a4552d19fefdd5) uBO supports new syntax: + + +js(...) + This allows the injection of specific javascript code into pages. The `...` part is a token identifying a javascript resource from the [resource library](https://github.com/uBlockOrigin/uAssets/blob/master/filters/resources.txt). Keep in mind the resource library is completely under control of the uBO project, hence only javascript code vouched by uBO can be inserted into web pages, through the use of a valid resource token. Generic `script:inject` filters are ignored: those filters **must** be specific, i.e. they must apply to specific hostnames, e.g. `example.com##script:inject(yavli-defuser.js)`.