1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-03 02:37:21 +02:00

window-close-if

gwarser 2021-12-23 13:37:23 +01:00
parent 398415e133
commit c8e9761ccf

@ -546,19 +546,14 @@ Allows opening RTC connections to matching [RTCIceServer](https://developer.mozi
Parameters:
- required, string/_regular expression_, matching in `RTCIceServer` `urls`, `username` or `credential`.
***
### window-close-if.js [](https://github.com/gorhill/uBlock/blob/8d7469afcfae7dabefe819eb513a0ba026ed9dd7/assets/resources/scriptlets.js#L1273)
New in [1.39.3b10](https://github.com/gorhill/uBlock/commit/c198b9a748265c0e1ce7f5bad4528d5bf6ce8161).
<details>
<summary>WIP</summary>
Closes browser tab of the page on which is executed. Can be narrowed to specifica path by parameter. Whole browser window will be closed if it's the last/only tab (depends on browser configuration).
Closes fresh browser tabs of the specified page. Can be used to close tabs which have been opened from other applications. Can be narrowed down to specific path by parameter. Whole browser window will be closed if it's the last/only tab (depends on browser configuration).
Parameters:
@ -569,8 +564,6 @@ Example:
- `acestream.com##+js(window-close-if, /plan/select?popup=noads)`
</details>
***
### nowoif.js /