Index: pages/filter-cheatsheet.html =================================================================== --- a/pages/filter-cheatsheet.html +++ b/pages/filter-cheatsheet.html @@ -805,22 +805,26 @@
:-abp-properties()
:-abp-has()
:-abp-contains()
{{ abp-pseudo-select-2 When writing element hiding filters that make use those you must use the #?#
syntax (replace ##
with #?#
) and take care to specify one or more domains. Some examples: }}
example.com#?#div:-abp-has(> div > img:-abp-properties(width:300px;height:250px;)) |
{{ abp-has-example2 Matches elements that contain as a direct descendant a element whose direct descendant is an element whose style properties contain the specified properties, a of 300 pixels and an of 250 pixels }} |
example.com#?#div:-abp-has(> div > img:-abp-properties(WidTh:300px;hEigHt:250px;)) |
{{ abp-has-example3 Since the CSS properties are matched case-insensitively, this filter matches the same thing as above }} |
example.com#?#div:-abp-has(> span:-abp-contains(Advertisment)) |
+ {{ abp-contains-example1 Matches elements that have a direct descendent element containing the text "Advertisment" }} |
+
example.com#?#div > img:-abp-properties(width:*px;height:250px;) |
{{ abp-properties-example1 By using a wildcard * , this filter matches an img whose CSS style properties have a width specified in pixels and a height of 250 pixels }} |
example.com#?#div > img:-abp-properties(/width: 3[2-8]px;/) |
{{ abp-properties-example2 By using a regular expression, this filter matches an img whose CSS style properties have a width between 32 and 38 pixels }} |