diff --git a/Dynamic-filtering:-rule-syntax.md b/Dynamic-filtering:-rule-syntax.md index b5d8e1b..8dfae8b 100644 --- a/Dynamic-filtering:-rule-syntax.md +++ b/Dynamic-filtering:-rule-syntax.md @@ -83,3 +83,29 @@ A matching rule can do one of three things: - Thus they are most useful to create finer-grained exceptions, and to un-break websites broken by some static filters somewhere. - `noop`: exclude network requests from being subjected to dynamic filtering. - It cancels dynamic filtering, but it does not cancel static filtering. + +*** + +### List of uBlock dynamic filtering translated to static filters + +| hostname & type |local dynamic filtering|local static filters| +| - | - | - | +|all:|`github.com * * block` |`*$domain=github.com` | +|images:|`github.com * image block` |`*$image,domain=github.com` | +|3rd-party:|`github.com * 3p block` |`*$3p,domain=github.com` | +|inline scripts:|`github.com * inline-script block`|`\|\|github.com^$inline-script` | +|1st-party scripts:|`github.com * 1p-script block`|`\|\|github.com^$script,1p` | +|3rd-party scripts:|`github.com * 3p-script block`|`*$script,3p,domain=github.com` | +|3rd-party frames:|`github.com * 3p-frame block`|`*$subdocument,3p,domain=github.com` | + +| hostname & type | global dynamic filtering|global static filters| +| - | - | - | +|all:| `* * * block` |`*` | +|images:| `* * image block` |`*$image` | +|3rd-party:| `* * 3p block` |`*$3p` | +|inline scripts:| `* * inline-script block`|`*$inline-script` | +|1st-party scripts:| `* * 1p-script block`|`*$script,1p` | +|3rd-party scripts:| `* * 3p-script block`|`*$script,3p` | +|3rd-party frames:| `* * 3p-frame block` |`*$subdocument,3p` | + +Source: [How to make dynamic filters static?](https://github.com/gorhill/uBlock/issues/1063) \ No newline at end of file