Skip to content

Commit

Permalink
remove changes from the wiki file
Browse files Browse the repository at this point in the history
  • Loading branch information
jellizaveta committed Aug 19, 2024
1 parent 1b3f2b8 commit 6b6c3e4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions wiki/about-trusted-scriptlets.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Deactivates after all elements have been clicked or by 10s timeout.
### Syntax

```text
example.com#%#//scriptlet('trusted-click-element', selectors[, extraMatch[, delay[, reload]]])
example.com#%#//scriptlet('trusted-click-element', selectors[, extraMatch[, delay]])
```
<!-- markdownlint-disable-next-line line-length -->
- `selectors` — required, string with query selectors delimited by comma. The scriptlet supports `>>>` combinator to select elements inside open shadow DOM. For usage, see example below.
Expand All @@ -44,8 +44,6 @@ and each of them should match the syntax. Possible `names`:
- `localStorage` — check if localStorage item is present
- `containsText` — check if clicked element contains specified text
- `delay` — optional, time in ms to delay scriptlet execution, defaults to instant execution.
- `reload` — optional, reload page after clicking elements. Possible values:
- `reloadOnFinalClick` — reload page after all elements have been clicked

<!-- markdownlint-disable line-length -->

Expand Down Expand Up @@ -119,12 +117,6 @@ and each of them should match the syntax. Possible `names`:
example.com#%#//scriptlet('trusted-click-element', 'article .container > div#host >>> div > button')
```

1. Click elements after 1000ms delay and reload page after all elements have been clicked

```adblock
example.com#%#//scriptlet('trusted-click-element', 'button[name="agree"], button[name="check"], input[type="submit"][value="akkoord"]', '', '1000', 'reloadOnFinalClick')
```

<!-- markdownlint-enable line-length -->

[Scriptlet source](../src/scriptlets/trusted-click-element.ts)
Expand Down

0 comments on commit 6b6c3e4

Please sign in to comment.