From a7be0fdbc986e4e82568440c67e74dd81d9ec668 Mon Sep 17 00:00:00 2001 From: gwarser Date: Mon, 23 Nov 2020 16:44:37 +0100 Subject: [PATCH] set-constant: it's the value that is predefined, not the property --- Resources-Library.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources-Library.md b/Resources-Library.md index 03110f1..eb8a4d5 100644 --- a/Resources-Library.md +++ b/Resources-Library.md @@ -343,7 +343,7 @@ Examples: ### set.js / ### set-constant.js [↪](https://github.com/gorhill/uBlock/blob/5de0ce975753b7565759ac40983d31978d1f84ca/assets/resources/scriptlets.js#L704) -Creates _property_ and initializes it to predefined value from set of available properties. +Creates _property_ and initializes it with a value from a predefined set. Scriptlet will succeed only when: - original _property_ is `undefined` (scriptlet is called early enough) or `null`[1.25.0](https://github.com/gorhill/uBlock/commit/c7dc65fe33ed58ff2bad10ce4a8848b97c8591ce) **OR**