Skip to content

Commit

Permalink
fix docs styles
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed May 25, 2023
1 parent e467290 commit 890ee79
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/scriptlets/debug-current-inline-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
*
* > **It is not supposed to be used in production filter lists!**
*
* ### Syntax
* ### Examples
*
* ```adblock
* ! Aborts script when it tries to access `window.alert`
Expand Down
2 changes: 1 addition & 1 deletion src/scriptlets/debug-on-property-read.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
*
* > **It is not supposed to be used in production filter lists!**
*
* ### Syntax
* ### Examples
*
* ```adblock
* ! Debug script if it tries to access `window.alert`
Expand Down
2 changes: 1 addition & 1 deletion src/scriptlets/debug-on-property-write.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
*
* > **This scriptlet is not allowed to be used in production filter lists!**
*
* ### Syntax
* ### Examples
*
* ```adblock
* ! Aborts script when it tries to write in property `window.test`
Expand Down
2 changes: 1 addition & 1 deletion src/scriptlets/json-prune.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
* - `obligatoryProps` — optional, string of space-separated properties
* which must be all present for the pruning to occur
* - `stack` — optional, string or regular expression that must match the current function call stack trace;
* if regular expression is invalid it will be skipped
* if regular expression is invalid it will be skipped
*
* > Note please that you can use wildcard `*` for chain property name,
* > e.g. `ad.*.src` instead of `ad.0.src ad.1.src ad.2.src`.
Expand Down
2 changes: 1 addition & 1 deletion src/scriptlets/prevent-refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
* ```
*
* - `delay` — optional, number of seconds for delay that indicates when scriptlet should run.
* If not set, source tag value will be applied.
* If not set, source tag value will be applied.
*
* ### Examples
*
Expand Down
2 changes: 1 addition & 1 deletion src/scriptlets/remove-cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { hit, toRegExp } from '../helpers/index';
* ```
*
* - `match` — optional, string or regex matching the cookie name.
* If not specified all accessible cookies will be removed.
* If not specified all accessible cookies will be removed.
*
* ### Examples
*
Expand Down
2 changes: 1 addition & 1 deletion src/scriptlets/remove-in-shadow-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
* narrows down the part of the page DOM where shadow-dom host supposed to be,
* defaults to document.documentElement
*
* > `baseSelector` should match element of the page DOM, but not of shadow DOM
* > `baseSelector` should match element of the page DOM, but not of shadow DOM.
*
* ### Examples
*
Expand Down
2 changes: 1 addition & 1 deletion src/scriptlets/set-constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import {
* - `yes`
* - `no`
* - `stack` — optional, string or regular expression that must match the current function call stack trace;
* if regular expression is invalid it will be skipped
* if regular expression is invalid it will be skipped
*
* ### Examples
*
Expand Down
4 changes: 2 additions & 2 deletions src/scriptlets/trusted-click-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import {
* if specified cookie/localStorage item does not exist.
* 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:
* - `cookie` - test string or regex against cookies on a page
* - `localStorage` - check if localStorage item is present
* - `cookie` test string or regex against cookies on a page
* - `localStorage` check if localStorage item is present
* - `delay` — optional, time in ms to delay scriptlet execution, defaults to instant execution.
*
* ### Examples
Expand Down
2 changes: 1 addition & 1 deletion src/scriptlets/trusted-set-cookie-reload.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
* - `$now$` keyword for setting current time in ms, e.g 1667915146503
* - `$currentDate$` keyword for setting current time as string, e.g 'Tue Nov 08 2022 13:53:19 GMT+0300'
* - `offsetExpiresSec` — optional, offset from current time in seconds, after which cookie should expire;
* defaults to no offset. Possible values:
* defaults to no offset. Possible values:
* - positive integer in seconds
* - `1year` keyword for setting expiration date to one year
* - `1day` keyword for setting expiration date to one day
Expand Down
2 changes: 1 addition & 1 deletion src/scriptlets/trusted-set-cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
* - `$now$` keyword for setting current time in ms, e.g 1667915146503
* - `$currentDate$` keyword for setting current time as string, e.g 'Tue Nov 08 2022 13:53:19 GMT+0300'
* - `offsetExpiresSec` — optional, offset from current time in seconds, after which cookie should expire;
* defaults to no offset. Possible values:
* defaults to no offset. Possible values:
* - positive integer in seconds
* - `1year` keyword for setting expiration date to one year
* - `1day` keyword for setting expiration date to one day
Expand Down

0 comments on commit 890ee79

Please sign in to comment.