Skip to content

Commit

Permalink
fix examples in description
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Oct 12, 2022
1 parent 991d55d commit f8097f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/scriptlets/trusted-click-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
*
* **Syntax**
* ```
* example.com#%#//scriptlet('trusted-click-element', selectors[, delay[, extraMatch]])
* example.com#%#//scriptlet('trusted-click-element', selectors[, extraMatch[, delay]])
* ```
*
* - `selectors` — required, string with query selectors delimited by comma
Expand All @@ -31,7 +31,7 @@ import {
*
* 2. Delay click execution by 500ms
* ```
* example.com#%#//scriptlet('trusted-click-element', 'button[name="agree"]', '500')
* example.com#%#//scriptlet('trusted-click-element', 'button[name="agree"]', '', '500')
* ```
*
* 3. Click multiple elements by selector with a delay
Expand All @@ -41,17 +41,17 @@ import {
*
* 4. Match cookies by keys using regex and string
* ```
* example.com#%#//scriptlet('trusted-click-element', 'button[name="agree"]', 'cookie:userConsentCommunity, cookie:/cmpconsent|cmp/', '')
* example.com#%#//scriptlet('trusted-click-element', 'button[name="agree"]', 'cookie:userConsentCommunity, cookie:/cmpconsent|cmp/')
* ```
*
* 5. Match by cookie key=value pairs using regex and string
* ```
* example.com#%#//scriptlet('trusted-click-element', 'button[name="agree"]', 'cookie:userConsentCommunity=true, cookie:/cmpconsent|cmp/=/[a-z]{1,5}/', '')
* example.com#%#//scriptlet('trusted-click-element', 'button[name="agree"]', 'cookie:userConsentCommunity=true, cookie:/cmpconsent|cmp/=/[a-z]{1,5}/')
* ```
*
* 6. Match by localStorage item 'promo' key
* ```
* example.com#%#//scriptlet('trusted-click-element', 'button[name="agree"]', '', 'localStorage:promo')
* example.com#%#//scriptlet('trusted-click-element', 'button[name="agree"]', 'localStorage:promo')
* ```
*
* 7. Click multiple elements with delay and matching by both cookie string and localStorage item
Expand Down

0 comments on commit f8097f0

Please sign in to comment.