From e862986ef9575e2798d54cd49e3183b8a11f3525 Mon Sep 17 00:00:00 2001 From: gwarser Date: Wed, 14 Aug 2019 22:11:19 +0200 Subject: [PATCH] 'empty' --- Static-filter-syntax.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Static-filter-syntax.md b/Static-filter-syntax.md index 14091d2..b54b30b 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -187,6 +187,14 @@ For _block_ filters only. This is _type_ option (like `image` or `script`) which See also: [`all`](#all) +#### `empty` + +New in [1.21.7b7](https://github.com/gorhill/uBlock/commit/3e5c9e00ab3603ae0c02e08b007b084404bbb71d) + +The filter option `empty` is converted to `redirect=empty` by uBO internally; however unlike when the [`redirect`](#redirect) option is used expressly, the `empty` option does not require a resource type. + +When `empty` is used, only network requests which are meant to return a text response will be redirected to an empty response body by uBO - so `empty` will not work for resources such as images, media, or other binary resources. + #### `first-party` Equivalent to `~third-party` [option](https://adblockplus.org/filters#options). Provided strictly for convenience (0.9.9.0).