update no-window-open-if documentation

D4niloMR 2024-09-23 17:38:43 -03:00
parent 9390e02e7b
commit 7f6762d65c

@ -1702,7 +1702,7 @@ Use third parameter (set it to `log`) to log `window.open()` parameters, and log
Parameters:
- optional, string/_regular expression_, prefixed by `!` for negation, matching in all parameters passed to _`window.open()`_ (all the arguments are joined as a single space-spearated string, and the result is used as the target for matching the pattern, new in [1.50.1b2](https://github.com/gorhill/uBlock/commit/0bd4b600cf78a988b8ed677780ec258518822663)),
- optional, positive decimal integer, number of seconds after returned `window` object will be invalidated.
- optional, `obj`: Use an `object` element instead of `iframe` element (default) as a decoy to be used in place of a popup window, when the page requires a valid `window` instance to be returned.
- optional, `obj`: Use an `object` element instead of `iframe` element (default) as a decoy to be used in place of a popup window, when the page requires a valid `window` instance to be returned. Since [1.59.1b9](https://github.com/gorhill/uBlock/commit/7f11d6216eb866fdbec4c13d9766b76432908f4f), `blank` can be used as decoy to open a real `about:blank` tab and close it after the specified delay.
Tokens:
- ~~`log, 1`~~: Cause the scriptlet to log information regarding how `window.open()` is used by the page on which the scriptlet is used.