Skip to content

Commit

Permalink
Merge pull request #272 from AdguardTeam/update-examples-for-permissi…
Browse files Browse the repository at this point in the history
…ons-modifier

update create-own-filters.md
  • Loading branch information
el-termikael authored Aug 10, 2023
2 parents c2e9514 + 93b95a7 commit 0334b96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/general/ad-filtering/create-own-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -1527,10 +1527,10 @@ The list of the available directives is available [here](https://developer.mozil

**Examples**

* `||example.org^$permissions=sync-xhr=()` disallows synchronous `XMLHttpRequest` requests across `example.org`.
* `@@||example.org/page/*$permissions=sync-xhr=()` disables all rules with the `$permissions` modifier exactly matching `sync-xhr=()` on all the pages matching the rule pattern. For instance, the rule above.
* `||example.org^$permissions=autoplay=()` disallows autoplay media requested through the `HTMLMediaElement` interface across `example.org`.
* `@@||example.org/page/*$permissions=autoplay=()` disables all rules with the `$permissions` modifier exactly matching `autoplay=()` on all the pages matching the rule pattern. For instance, the rule above.
* `@@||example.org/page/*$permissions` disables all the `$permissions` rules on all the pages matching the rule pattern.
* `$domain=example.org|example.com,permissions=oversized-images=()\, sync-script=()\, unsized-media=()` disallows oversized images, synchronous scripts and unsized media features across `example.org` and `example.com`.
* `$domain=example.org|example.com,permissions=storage-access=()\, сamera=()` disallows using the Storage Access API to request access to unpartitioned cookies and using video input devices across `example.org` and `example.com`.
* `@@||example.org^$document` or `@@||example.org^$urlblock` disables all the `$permission` rules on all the pages matching the rule pattern.

:::caution Limitations
Expand Down

0 comments on commit 0334b96

Please sign in to comment.