mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-09-24 20:00:18 +01:00
Added info on 2 syntaxes
As per https://github.com/AdguardTeam/AdguardFilters/issues/51978#issuecomment-603182071.
This commit is contained in:
@@ -114,6 +114,7 @@
|
||||
* `#%#AG_`: A few extra scriptlets for whom documentation appears to be non-existent.
|
||||
* `#%#` without `//scriptlet`: Appears to insert JavaScript code that is written into the list, as opposed to from an embedded file. Requires heavy privileges.
|
||||
* `:properties`: Claims to be similar to `:-abp-properties`, but is incompatible with it.
|
||||
* `!+ PLATFORM`: Very similar to `!#if`, but is designed to have AdGuard's many versions be used as criteria, and not necessarily the browser that is being used.
|
||||
#### Blocking
|
||||
* `$match-case`: Makes the criteria case-sensitive.
|
||||
* `$$script`: Uses very advanced criteria to block scripts that meet them.
|
||||
@@ -133,6 +134,10 @@
|
||||
* `@@` + `$stealth`: Turns off Stealth Mode on that site.
|
||||
* `$replace`: Changes the text of text elements on a site. Supports and requires use of RegEx. Requires ridiculous amounts of trust rights and cannot be used in web-hosted lists.
|
||||
|
||||
### AdGuard for [Android/iOS] only:
|
||||
|
||||
* `!+ NOT_OPTIMIZED`: Used to state that the entry immediately below is to be discarded, when an end-user has turned on "Simplified rules" mode in the AdGuard settings.
|
||||
|
||||
# Other particularly important usage notes
|
||||
|
||||
* To make the text detection for `:-abp-contains` and `:has-text` case-insensitive, wrap the paranthesised text into `(/Example text/i)`.
|
||||
|
||||
Reference in New Issue
Block a user