You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/scriptlets/trusted-click-element.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,8 @@ import {
18
18
*
19
19
* - `selectors` — required, string with query selectors delimited by comma
20
20
* - 'delay' - optional, time in ms to delay scriptlet execution after elements are loaded and targeted on the page, defaults to 0
21
-
* - `extraMatch` - optional, extra values to match on a page as keyword:value pairs delimited by commas. Possible keywords:
21
+
* - `extraMatch` — optional, extra condition to check on a page; allows to match `cookie` and `localStorage`; can be set as `name:key[=value]` where `value` is optional.
22
+
* Multiple conditions are allowed inside one `extraMatch` but they should be delimited by comma and each of them should match the syntax. Possible `name`s:
22
23
* - `cookie` - test substring against document.cookie string
23
24
* - `localStorage` - check if localStorage item is present
24
25
* **Examples**
@@ -39,7 +40,7 @@ import {
39
40
*
40
41
* 4. Match by cookie strings and click multiple elements by selector
0 commit comments