Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] describe 'advanced' value for !#safari_cb_affinity directive #556

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/general/ad-filtering/create-own-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be AdGuard v4.x.x for iOS


:::

### Hints

"Hint" is a special comment, instruction to the filters compiler used on the server side (see [FiltersRegistry]).
Expand Down
Loading