From 95aba62bfdce2bc46afc6de3d0b1b7c7d10089fa Mon Sep 17 00:00:00 2001 From: D4niloMR <70459964+D4niloMR@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:17:44 -0300 Subject: [PATCH] Updated Resources Library (markdown) --- Resources-Library.md | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/Resources-Library.md b/Resources-Library.md index d63413a..3b5248c 100644 --- a/Resources-Library.md +++ b/Resources-Library.md @@ -675,14 +675,16 @@ to `"OK"` when not overridden. [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