Updated Resources Library (markdown)

D4niloMR 2024-11-15 22:17:44 -03:00
parent 78a38677d9
commit 95aba62bfd

@ -675,14 +675,16 @@ to `"OK"` when not overridden. <sup>[1.58.1rc5](https://github.com/gorhill/uBloc
When used without parameters, the parameters passed to `no-fetch-if` will be logged to the console, as `uBO: fetch([...list of arguments...])`. When used without parameters, the parameters passed to `no-fetch-if` will be logged to the console, as `uBO: fetch([...list of arguments...])`.
Examples: Examples:
- `example.com##+js(no-fetch-if, method:HEAD)` ```adblock
- `example.com##+js(no-fetch-if, adsbygoogle.js)` example.com##+js(no-fetch-if, method:HEAD)
- `example.com##+js(no-fetch-if, !negatedValue)` example.com##+js(no-fetch-if, adsbygoogle.js)
- `example.com##+js(no-fetch-if, adsbygoogle.js method:HEAD)` example.com##+js(no-fetch-if, !negatedValue)
- `example.com##+js(no-fetch-if, /adsbygoogle.js$/ method:/HEAD|POST/)` example.com##+js(no-fetch-if, adsbygoogle.js method:HEAD)
- `example.com##+js(no-fetch-if, adsbygoogle.js, length:11000)` example.com##+js(no-fetch-if, /adsbygoogle.js$/ method:/HEAD|POST/)
- `example.com##+js(no-fetch-if, adsbygoogle.js, war:googlesyndication_adsbygoogle.js)` example.com##+js(no-fetch-if, adsbygoogle.js, length:11000)
- `example.com##+js(no-fetch-if, doubleclick, , '{"type": "opaque"}')` example.com##+js(no-fetch-if, adsbygoogle.js, war:googlesyndication_adsbygoogle.js)
example.com##+js(no-fetch-if, doubleclick, , '{"type": "opaque"}')
```
See also: See also:
- [AdGuard `prevent-fetch`](https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#prevent-fetch) - [AdGuard `prevent-fetch`](https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#prevent-fetch)
@ -886,12 +888,14 @@ Parameters:
When used without parameters, the parameters passed to `no-xhr-if` will be logged to the console, as `uBO: xhr.open(...list of arguments...)`. When used without parameters, the parameters passed to `no-xhr-if` will be logged to the console, as `uBO: xhr.open(...list of arguments...)`.
Examples: Examples:
- `example.com##+js(no-xhr-if, method:HEAD)` ```adblock
- `example.com##+js(no-xhr-if, adsbygoogle.js)` example.com##+js(no-xhr-if, method:HEAD)
- `example.com##+js(no-xhr-if, adsbygoogle.js method:HEAD)` example.com##+js(no-xhr-if, adsbygoogle.js)
- `example.com##+js(no-xhr-if, /adsbygoogle.js$/ method:/HEAD|POST/)` example.com##+js(no-xhr-if, adsbygoogle.js method:HEAD)
- `example.com##+js(no-xhr-if, adsbygoogle.js, length:11000)` example.com##+js(no-xhr-if, /adsbygoogle.js$/ method:/HEAD|POST/)
- `example.com##+js(no-xhr-if, doubleclick.net/instream/ad_status.js, war:doubleclick_instream_ad_status.js)` example.com##+js(no-xhr-if, adsbygoogle.js, length:11000)
example.com##+js(no-xhr-if, doubleclick.net/instream/ad_status.js, war:doubleclick_instream_ad_status.js)
```
Also see: Also see:
- [AdGuard `prevent-xhr`](https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#prevent-xhr) - [AdGuard `prevent-xhr`](https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#prevent-xhr)
@ -949,14 +953,12 @@ Also see:
New in [1.60.1b17](https://github.com/gorhill/uBlock/commit/11ca4a39239478e35605ec072fca140ac4c70d3b) New in [1.60.1b17](https://github.com/gorhill/uBlock/commit/11ca4a39239478e35605ec072fca140ac4c70d3b)
Sets the specified attribute on the specified elements. This scriptlet runs Sets the specified attribute on the specified elements. This scriptlet runs once when the page loads then afterward on DOM mutations.
once when the page loads then afterward on DOM mutations.
Parameters: Parameters:
- required, selector: A CSS selector for the elements to target. - required, selector: A CSS selector for the elements to target.
- required, attr: The name of the attribute to be added. - required, attr: The name of the attribute to be added.
- optional, value: The new value of the attribute. Since the scriptlet requires a trusted - optional, value: The new value of the attribute. Since the scriptlet requires a trusted source, the value can be anything.
source, the value can be anything.
Examples: Examples:
```adblock ```adblock