mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Updated Resources Library (markdown)
parent
78a38677d9
commit
95aba62bfd
1 changed files with 20 additions and 18 deletions
|
|
@ -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...])`.
|
||||
|
||||
Examples:
|
||||
- `example.com##+js(no-fetch-if, method:HEAD)`
|
||||
- `example.com##+js(no-fetch-if, adsbygoogle.js)`
|
||||
- `example.com##+js(no-fetch-if, !negatedValue)`
|
||||
- `example.com##+js(no-fetch-if, adsbygoogle.js method:HEAD)`
|
||||
- `example.com##+js(no-fetch-if, /adsbygoogle.js$/ method:/HEAD|POST/)`
|
||||
- `example.com##+js(no-fetch-if, adsbygoogle.js, length:11000)`
|
||||
- `example.com##+js(no-fetch-if, adsbygoogle.js, war:googlesyndication_adsbygoogle.js)`
|
||||
- `example.com##+js(no-fetch-if, doubleclick, , '{"type": "opaque"}')`
|
||||
```adblock
|
||||
example.com##+js(no-fetch-if, method:HEAD)
|
||||
example.com##+js(no-fetch-if, adsbygoogle.js)
|
||||
example.com##+js(no-fetch-if, !negatedValue)
|
||||
example.com##+js(no-fetch-if, adsbygoogle.js method:HEAD)
|
||||
example.com##+js(no-fetch-if, /adsbygoogle.js$/ method:/HEAD|POST/)
|
||||
example.com##+js(no-fetch-if, adsbygoogle.js, length:11000)
|
||||
example.com##+js(no-fetch-if, adsbygoogle.js, war:googlesyndication_adsbygoogle.js)
|
||||
example.com##+js(no-fetch-if, doubleclick, , '{"type": "opaque"}')
|
||||
```
|
||||
|
||||
See also:
|
||||
- [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...)`.
|
||||
|
||||
Examples:
|
||||
- `example.com##+js(no-xhr-if, method:HEAD)`
|
||||
- `example.com##+js(no-xhr-if, adsbygoogle.js)`
|
||||
- `example.com##+js(no-xhr-if, adsbygoogle.js method:HEAD)`
|
||||
- `example.com##+js(no-xhr-if, /adsbygoogle.js$/ method:/HEAD|POST/)`
|
||||
- `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)`
|
||||
```adblock
|
||||
example.com##+js(no-xhr-if, method:HEAD)
|
||||
example.com##+js(no-xhr-if, adsbygoogle.js)
|
||||
example.com##+js(no-xhr-if, adsbygoogle.js method:HEAD)
|
||||
example.com##+js(no-xhr-if, /adsbygoogle.js$/ method:/HEAD|POST/)
|
||||
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:
|
||||
- [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)
|
||||
|
||||
Sets the specified attribute on the specified elements. This scriptlet runs
|
||||
once when the page loads then afterward on DOM mutations.
|
||||
Sets the specified attribute on the specified elements. This scriptlet runs once when the page loads then afterward on DOM mutations.
|
||||
|
||||
Parameters:
|
||||
- required, selector: A CSS selector for the elements to target.
|
||||
- required, attr: The name of the attribute to be added.
|
||||
- optional, value: The new value of the attribute. Since the scriptlet requires a trusted
|
||||
source, the value can be anything.
|
||||
- optional, value: The new value of the attribute. Since the scriptlet requires a trusted source, the value can be anything.
|
||||
|
||||
Examples:
|
||||
```adblock
|
||||
|
|
|
|||
Loading…
Reference in a new issue