Skip to content

Commit

Permalink
update examples of directives
Browse files Browse the repository at this point in the history
  • Loading branch information
el-termikael committed Aug 10, 2023
1 parent 9f99a47 commit 95f24bf
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=()\, display-capture=()` disallows using the Storage Access API to request access to unpartitioned cookies, using video input devices, and using the getDisplayMedia() method to capture screen contents 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 95f24bf

Please sign in to comment.