mirror of
https://github.com/AdguardTeam/AdguardKnowledgeBase.git
synced 2025-02-20 11:13:10 +08:00
Formatting fixed
This commit is contained in:
parent
c7555039ae
commit
86e44ee9f8
@ -233,7 +233,7 @@ Cosmetic rules are based on using a special language named CSS, which every brow
|
||||
| ID selector | `#banners` | Matches all elements with `id` attribute equal to `banners`.<br/> |
|
||||
| Class selector | `.banners` | Matches all elements with `class` attribute containing `banners`.<br/> |
|
||||
| Attribute selector | `div[class="banners"]` | Matches all `div` elements with `class` attribute **exactly equal** to `banners`.<br/> |
|
||||
| Attribute substring selector | `div[class^="advert1"] ` | Matches all `div` elements which `class` attribute **starts with** the `advert1` string.<br/> |
|
||||
| Attribute substring selector | `div[class^="advert1"]` | Matches all `div` elements which `class` attribute **starts with** the `advert1` string.<br/> |
|
||||
| Attribute substring selector | `div[class$="banners_ads"]` | Matches all `div` elements which `class` attribute **ends with** the `banners_ads` string.<br/> |
|
||||
| Attribute substring selector | `a[href^="http://example.com/"]` | Matches all links that are loaded from `http://example.com/` domain.<br/> |
|
||||
| Attribute selector | `a[href="http://example.com/"]` | Matches all links to **exactly** the `http://example.com/` address.<br/> |
|
||||
@ -301,7 +301,7 @@ For the basic rules the described logic will be applicable only for the domains
|
||||
|
||||
* `||example.com/ads/*` — a simple rule, which corresponds to addresses like `http://example.com/ads/banner.jpg` and even `http://subdomain.example.com/ads/otherbanner.jpg`.
|
||||
|
||||
* `||example.org^$third-party` — a rule that blocks third-party requests to` example.org` and it's subdomains.
|
||||
* `||example.org^$third-party` — a rule that blocks third-party requests to `example.org` and it's subdomains.
|
||||
|
||||
* `@@||example.com$document` — general exception rule. It completely disables filtering for `example.com` and all subdomains. There is a number of modifiers which can be used in exception rules. For more details, please follow the link [below](#exceptions-modifiers).
|
||||
|
||||
@ -1757,7 +1757,7 @@ For example:
|
||||
```
|
||||
$$div[tag-content="banner"][max-length="400"]
|
||||
```
|
||||
This rule will remove all the `div` elements, whose code contains the substring` banner` and the length of which does not exceed `400` characters.
|
||||
This rule will remove all the `div` elements, whose code contains the substring `banner` and the length of which does not exceed `400` characters.
|
||||
|
||||
<a id="min-length-attribute"></a>
|
||||
##### `min-length`
|
||||
@ -1769,7 +1769,7 @@ For example:
|
||||
$$div[tag-content="banner"][min-length="400"]
|
||||
```
|
||||
|
||||
This rule will remove all the `div` elements, whose code contains the substring` banner` and the length of which exceeds `400` characters.
|
||||
This rule will remove all the `div` elements, whose code contains the substring `banner` and the length of which exceeds `400` characters.
|
||||
|
||||
<a id="html-filtering-rules-exceptions"></a>
|
||||
#### Exceptions
|
||||
|
@ -233,7 +233,7 @@ visible: true
|
||||
| ID selector | `#banners` | Соответствует всем элементам с атрибутом `id` равным `banners`.<br/> |
|
||||
| Class selector | `.banners` | Соответствует всем элементам типа `class` содержащих `banners`.<br/> |
|
||||
| Attribute selector | `div[class="banners"]` | Соответствует всем `div` элементам с `class` **равным** `banners`.<br/> |
|
||||
| Attribute substring selector | `div[class^="advert1"] ` | Соответствует всем `div` элементам класс `class` которых **начинается** с `advert1` строки.<br/> |
|
||||
| Attribute substring selector | `div[class^="advert1"]` | Соответствует всем `div` элементам класс `class` которых **начинается** с `advert1` строки.<br/> |
|
||||
| Attribute substring selector | `div[class$="banners_ads"]` | Соответствует всем `div` элементам `class` которых **заканчивается** на `banners_ads`.<br/> |
|
||||
| Attribute substring selector | `a[href^="http://example.com/"]` | Соответствует всем ссылкам загруженным с `http://example.com/` <br/> |
|
||||
| Attribute selector | `a[href="http://example.com/"]` | Соответствует всем ссылкам **конкретно** `http://example.com/` .<br/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user