@duckduckgo/autoconsent 16.43.1 → 16.43.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +9 -1
- package/CHANGELOG.md +18 -0
- package/data/coverage.json +2005 -1512
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-mv3/manifest.json +1 -1
- package/docs/rule-syntax.md +4 -4
- package/package.json +1 -1
package/docs/rule-syntax.md
CHANGED
|
@@ -66,7 +66,7 @@ Returns true if the given selector matches one or more elements.
|
|
|
66
66
|
"check": "any" | "all" | "none"
|
|
67
67
|
}
|
|
68
68
|
```
|
|
69
|
-
Returns true if elements matched by ElementSelector are currently visible on the page. If `check` is `all` (default), every element must be visible. If `check` is `none`, no element should be visible. Visibility check is a CSS-based heuristic.
|
|
69
|
+
Returns true if elements matched by ElementSelector are currently visible on the page. If `check` is `all` (default), every element must be visible. If `check` is `none`, no element should be visible. Visibility check is a CSS-based heuristic. Prehiding does not affect this check.
|
|
70
70
|
|
|
71
71
|
## Wait for element
|
|
72
72
|
|
|
@@ -87,7 +87,7 @@ Waits until `selector` exists in the page. After `timeout` ms the step fails.
|
|
|
87
87
|
"check": "any" | "all" | "none"
|
|
88
88
|
}
|
|
89
89
|
```
|
|
90
|
-
Waits until element is visible in the page. After `timeout` ms the step fails.
|
|
90
|
+
Waits until element is visible in the page. After `timeout` ms the step fails. To wait until an element is not visible, use `check: "none"`, not `negated`.
|
|
91
91
|
|
|
92
92
|
## Click an element
|
|
93
93
|
```javascript
|
|
@@ -183,7 +183,7 @@ The optional `stylesheetId` is a marker used to prevent duplicate inserts when t
|
|
|
183
183
|
"cookieContains": "substring"
|
|
184
184
|
}
|
|
185
185
|
```
|
|
186
|
-
Checks if the substring is present in the document.cookie string.
|
|
186
|
+
Checks if the substring is present in the document.cookie string. `HttpOnly` cookies are not in this string.
|
|
187
187
|
|
|
188
188
|
## Eval
|
|
189
189
|
|
|
@@ -234,7 +234,7 @@ Evaluates a list of steps in order. If any return true (success), then the step
|
|
|
234
234
|
}
|
|
235
235
|
```
|
|
236
236
|
|
|
237
|
-
If `negated` is true, the result will be inverted. For example, `{ "exists": ".my-class", "negated": true }` will return true if `.my-class` does not exist.
|
|
237
|
+
If `negated` is true, the result will be inverted. For example, `{ "exists": ".my-class", "negated": true }` will return true if `.my-class` does not exist. The result is inverted after the step is complete, so `negated` does not change what a waiting step waits for.
|
|
238
238
|
|
|
239
239
|
## Optional actions
|
|
240
240
|
|