From ab8148196083463cf5326f461400f3eedb2a1633 Mon Sep 17 00:00:00 2001 From: Slava Leleka <v.leleka@adguard.com> Date: Thu, 22 Aug 2024 21:32:17 +0300 Subject: [PATCH 1/2] descrive advanced value for safari_cb_affinity --- docs/general/ad-filtering/create-own-filters.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/general/ad-filtering/create-own-filters.md b/docs/general/ad-filtering/create-own-filters.md index 8ced108c2ef..2b7bce745e9 100644 --- a/docs/general/ad-filtering/create-own-filters.md +++ b/docs/general/ad-filtering/create-own-filters.md @@ -4480,6 +4480,7 @@ where: - `other` — AdGuard Other content blocker - `custom` — AdGuard Custom content blocker - `all` — special keyword that means that the rules must be included into **all** content blockers + - `advanced` — special keyword to apply rules by the [Advanced protection](/adguard-for-ios/features/advanced-protection) module - `rules_list` — list of rules - `!#safari_cb_affinity` — end of the block @@ -4499,6 +4500,14 @@ example.org#@#.adBanner !#safari_cb_affinity ``` +```adblock +! to apply both basic and advanced rules by the Advanced protection module: +!#safari_cb_affinity(advanced) +||ads.com/loader.min.js$domain=example.com +example.com#%#//scriptlet('set-constant', 'test123', '123') +!#safari_cb_affinity +``` + ### Hints "Hint" is a special comment, instruction to the filters compiler used on the server side (see [FiltersRegistry]). From c26ccb6a27c07f3ddb2838c01bc772012918314d Mon Sep 17 00:00:00 2001 From: Slava Leleka <v.leleka@adguard.com> Date: Thu, 22 Aug 2024 21:35:48 +0300 Subject: [PATCH 2/2] add compatibility note for safari_cb_affinity --- docs/general/ad-filtering/create-own-filters.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/general/ad-filtering/create-own-filters.md b/docs/general/ad-filtering/create-own-filters.md index 2b7bce745e9..675f36b3736 100644 --- a/docs/general/ad-filtering/create-own-filters.md +++ b/docs/general/ad-filtering/create-own-filters.md @@ -4508,6 +4508,13 @@ example.com#%#//scriptlet('set-constant', 'test123', '123') !#safari_cb_affinity ``` +:::info Compatibility + +<!-- FIXME: specify the app version --> +The `advanced` value for the `!#safari_cb_affinity` directive is supported by AdGuard for iOS v4.x.x or later. + +::: + ### Hints "Hint" is a special comment, instruction to the filters compiler used on the server side (see [FiltersRegistry]).