mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-06 08:54:53 +01:00
Update SyntaxMeaningsThatAreActuallyHumanReadable.md
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
* `! Version:` The version number/alphanumeric of the list. Unofficially used to distinguish which version of a list a user is using. Used administratively by Adblock Plus' list report system (which requires a number-only version value). Many lists choose to use `! Last modified` as well or instead.
|
||||
* `! Expires:`: Determines the timespan between each automated sync attempt with the list's source. Values are given in "n day/days". ABP also supports "hour/hours".
|
||||
|
||||
## uBlock Origin, AdGuard and Nano Adblocker only:
|
||||
## uBlock Origin and AdGuard only:
|
||||
#### Hiding
|
||||
* `:style`: Changes the CSS values of an element, in much the same way as what userstyle extensions like Stylish would've done.
|
||||
* `{ }`: Same as above.
|
||||
@@ -81,10 +81,10 @@
|
||||
* `$redirect`: Redirects resources to a neutered version that has been embedded in those extensions. Possible options are listed in [this file](https://github.com/gorhill/uBlock/blob/master/src/js/redirect-engine.js) (AdGuard has a [slightly smaller selection](https://github.com/AdguardTeam/AdguardBrowserExtension/blob/master/Extension/lib/filter/rules/scriptlets/redirects.yml)).
|
||||
* `$empty`: Results in a fake empty page or resource being loaded, instead of blocking the resource itself.
|
||||
|
||||
## uBlock Origin and Nano Adblocker only:
|
||||
## uBlock Origin only:
|
||||
#### Hiding
|
||||
* `!#include`: Embeds another filterlist that is hosted on the same domain (with a whole lot of restrictions). Despite AdGuard's claim that they also support it, their support only applies to lists that are natively included in AdGuard.
|
||||
* `##+js` (prev. `##script:inject`): Invokes a script that is embedded in those extensions, and usually using the script to modify a value on the site. Possible options are listed in [this file](https://github.com/gorhill/uBlock/blob/master/assets/resources/scriptlets.js) (The top strings of each paragraph). Nano has a select few additional scripts.
|
||||
* `##+js` (prev. `##script:inject`): Invokes a script that is embedded in those extensions, and usually using the script to modify a value on the site. Possible options are listed in [this file](https://github.com/gorhill/uBlock/blob/master/assets/resources/scriptlets.js) (The top strings of each paragraph).
|
||||
* `:xpath`: An entry written with the very advanced Xpath syntax.
|
||||
* `##^.element`: Blocks page elements before they've even been loaded, based on their values in *View source* instead of their F12 ones. **Only** works in Firefox.
|
||||
* `##^script:has-text` (prev. `##script:contains`): Intends to prevent inline scripts from starting up, based on the content of the scripts in the F12 filetree. Also only works in Firefox.
|
||||
@@ -160,4 +160,4 @@
|
||||
* No entries can use both `||` and `##` at the same time.
|
||||
* Major note to advanced CSS experts: Some advanced terms have been replaced in this guide, because they'd be less than obvious to laymen who'd need this guide. For instance, I replaced `DOM tree` with `F12 filetree`, because I 100% genuinely felt that it was easy to think `DOM` was short for "dominatrix", and also because many people may not even know how to open said tree in web browsers.
|
||||
|
||||
¹ = Includes uBlock Origin ≥1.20.0, AdGuard (except iOS), AdNauseum, Nano Adblocker ≤1.0.0.153, Adblock Plus version ≥3.5, 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.
|
||||
¹ = Includes uBlock Origin ≥1.20.0, AdGuard (except iOS), AdNauseum, Adblock Plus version ≥3.5, 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