mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-09-24 22:03:36 +01:00
Added notes about "$domain=" TLD blocking and :style
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
* `##element.element2`: Hide something both based on its element (##element1) and `class` value (.element2). Note the placement/absence of fullstops.
|
||||
* While they're based on the same `class` values, `##.element1` will match any `class` (sub-)value, whereas `##div[class="element1"]` and their modifiers are based on the *entire* `class` string in the F12 filetree.
|
||||
* `##.` / `##` / `###` entries can either be *generic*, in which they have no domains in front of them; or (domain-)specific, where they have one or more domains in front of them, separated by commas. Only Nano and uBO support wildcard asterisks (`*`) in such domains, while other adblockers do not.
|
||||
* In `$domain=` below, top-level domains can be added through e.g. `$domain=tk` and `$domain=~tk`. No other types of wildcardings are supported by `$domain=`.
|
||||
|
||||
#### File blocking (a.k.a. blocking rules, a.k.a. non-#-rules)
|
||||
* `||`: Blocks resources from domains or parts thereof from being loaded. For non-domain-specific resources, no pre-emption is needed at all.
|
||||
@@ -143,7 +144,7 @@
|
||||
|
||||
* To make the text detection for `:-abp-contains` and `:has-text` case-insensitive, wrap the paranthesised text into `(/Example text/i)`.
|
||||
* The `"` in `[href="text"]` is optional, but *only* if the criteria text is only a single word, and has no numbers, slashes, or certain other characters.
|
||||
* `:style` and `{ }` does not allow changing `background-image` into a URL value.
|
||||
* `:style` and `{ }` do not allow the use of URL values.
|
||||
* It is claimed in [this comment](https://github.com/DandelionSprout/adfilt/issues/7#issuecomment-481978609) that Safari does not properly accept the use of `$third-party`.
|
||||
* Amazingly, using `! Redirect: ` in the intended target link's list, will cause an infinite loop that prevents the list from being loaded.
|
||||
* In Opera, the F12 filetree is not actually opened with F12 by default, but instead with Ctrl+Shift+I (Capital İ).
|
||||
|
||||
Reference in New Issue
Block a user