diff --git a/docs/general/ad-filtering/create-own-filters.md b/docs/general/ad-filtering/create-own-filters.md index 66a357d6b28..ba6a216560a 100644 --- a/docs/general/ad-filtering/create-own-filters.md +++ b/docs/general/ad-filtering/create-own-filters.md @@ -4658,6 +4658,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 @@ -4677,6 +4678,21 @@ 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 +``` + +:::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]).