mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-09-24 21:00:23 +01:00
Update SyntaxMeaningsThatAreActuallyHumanReadable.md
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
* `$generichide`: Prevents all non-domain-specific (a.k.a. generic) hiding entries from working on a website. On Nano/uBO it prevents *all* non-domain-specific entries from working.
|
||||
* `$script`: Blocks resources from domains or parts thereof from being loaded, but only if it's a script, e.g. a JavaScript runtime.
|
||||
* `$csp`: Inserts additional *Content Security Policies* into the page.
|
||||
* `$xmlhttprequest`: Prevents such resources from being downloaded through the titular JavaScript API.
|
||||
* `$popup` / `$image` / `$object` / `$other`: These ones should hopefully be self-explanatory (Give me a heads-up in an issue report if it isn't).
|
||||
* `$xmlhttprequest` / `$websocket` / `$dom`: Prevents such resources from being downloaded through the titular JavaScript APIs.
|
||||
* `$popup` / `$image` / `$object` / `$font` / `$other`: These ones should hopefully be self-explanatory (Give me a heads-up in an issue report if it isn't).
|
||||
|
||||
#### Universal
|
||||
* `! ` / `# `: Marks the start of a comment that shall not be interpreted as an entry.
|
||||
@@ -89,21 +89,21 @@
|
||||
### AdGuard for [Windows/Mac/Android] only:
|
||||
|
||||
* `! Description:`: Shows a description of the list's purpose, when the question mark next to the list in the AdGuard settings is hovered over. That being said, a description is convenient for users of all adblockers, if they're willing to look up a list's raw content.
|
||||
* `$network`: When applied to an IP address, it blocks all incoming requests from it, and not just when it's typed into a browser address bar. Can very easily break legitimate sites as collateral damage, and should be used very sparingly.
|
||||
* `$network`: When applied to an IP address, it blocks all incoming requests from it, and not just when it's typed into a browser address bar. Individual ports can be specified. IPv6 addresses must be surrounded by square brackets. Can very easily break legitimate sites as collateral damage, and should be used very sparingly.
|
||||
|
||||
# Particularly important usage notes
|
||||
|
||||
* `||` entries do support asterisk wildcards, but only in the criteria text. Additionally, when using `$domain=`, domains are separated with vertical lines, since commas are instead used to stack multiple `$` values.
|
||||
* `$generichide` entries must start with `@@||`.
|
||||
* ABP is known to severely struggle with handling `:style` entries, to the point where having ABP try to load a list with such an entry will cause it to invalidate the list *and* all its entries.
|
||||
* ABP is known to severely struggle with handling `:style` entries, to the point where having ABP try to load a list with such an entry will cause it to invalidate the list *and* all its entries. A workaround is to use `#?#` in all `:style` entries.
|
||||
* To make the text detection for `:-abp-contains` and `:has-text` case-insensitive, wrap the paranthesised text into `(/Example text/i)`.
|
||||
* `127.0.0.1` / `0.0.0.0` / `::1` supports only whole domains, and it can not be narrowed down to subdomains or elements.
|
||||
* The `"` in `[href="text"]` is optional, but *only* if the criteria text is only a single word.
|
||||
* In `:-abp-has` and `:has`, it is not needed to pre-empt the criteria elements with `##`.
|
||||
* `:style` and `{ }` does not allow to change `background-image` into a URL value.
|
||||
* `:style` and `{ }` does not allow changing `background-image` into a URL value.
|
||||
* 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`.
|
||||
* Domains in `$domain=` are seperated by a vertical line (`|`), instead of the usual comma.
|
||||
* 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 İ).
|
||||
|
||||
¹ = Includes Nano Adblocker, uBlock Origin ≥1.14.0, AdGuard, AdNauseum, Adblock Plus version ≥3.1, and AdBlock. It does **not** include AdGuard Home, Brave Browser, Slimjet, uBlock non-Origin, Tracking Protection List, AdAway, or Blokada, whose syntax supports are considerably inferior to the above list.
|
||||
¹ = Includes Nano Adblocker, uBlock Origin ≥1.14.0, AdGuard, AdNauseum, Adblock Plus version ≥3.1, and AdBlock. It does **not** include AdGuard Home, Brave Browser, Slimjet, uBlock non-Origin, Tracking Protection List, or Blokada, whose syntax supports are considerably inferior to the above list.
|
||||
|
||||
Reference in New Issue
Block a user