From 1a2ab8c804e873bdb270dde8005d2cb581ac7418 Mon Sep 17 00:00:00 2001 From: Hugo Xu Date: Sun, 5 Aug 2018 15:45:01 -0600 Subject: [PATCH] `*/$script,redirect=noopjs,first-party` does not work --- Static-filter-syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Static-filter-syntax.md b/Static-filter-syntax.md index e6682ea..a507f3d 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -147,9 +147,9 @@ The filter syntax for `redirect=` filter option is a subset of ABP-compatible fi ||example.com^$script,redirect=noopjs,domain=github.com ||example.com/path/to/image$image,redirect=2x2-transparent.png,domain=github.com - */$script,redirect=noopjs,first-party + ||example.com/$script,redirect=noopjs,first-party -Specifically, notice that the filter **must** start with `||` or `*`, otherwise no redirection directive will be created, though a blocking filter will be created. Essentially, a redirection filter must always have a destination hostname specified, or `*` if the filter is to apply to all destinations. +Specifically, notice that the filter **must** start with `||` or `*`, otherwise no redirection directive will be created, although a blocking filter will be created. Essentially, a redirection filter must always have a destination hostname specified, or `*` if the filter is to apply to all destinations. A source hostname should always be specified, so the `domain=` option is strongly recommended. It is allowed to use `first-party` instead of `domain=[...]`, in which case the source hostname will be that of the destination hostname.