uBlock/tools
Raymond Hill adced29b5b
Improve trusted-replace-argument scriptlet
As discussed with filter list maintainers, added ability to
partially replace an argument using the `repl:` prefix. Updated
documentation:

---

@scriptlet trusted-replace-argument.js

@description
Replace an argument passed to a method. Requires a trusted source.

@param propChain
The property chain to the function which argument must be replaced when
called.

@param argposRaw
The zero-based position of the argument in the argument list. Use a negative
number for a position relative to the last argument.

@param argraw
The replacement value, validated using the same heuristic as with the
`set-constant.js` scriptlet.
If the replacement value matches `json:...`, the value will be the
json-parsed string after `json:`.
If the replacement value matches `repl:/.../.../`, the target argument will
be replaced according the regex-replacement directive following `repl:`

@param [, condition, pattern]
Optional. The replacement will occur only when pattern matches the target
argument.

---

Aditionally, more scriptlets moved into their own files.
2024-11-27 15:53:50 -05:00
..
copy-common-files.sh Use set -e in Bash scripts (#3791) 2021-07-31 17:34:25 -04:00
import-crowdin.sh Remove languages with no translations, no activity 2023-04-25 14:21:46 -04:00
make-assets.sh Simpler to use an extra property than to use a new assets.json 2024-03-14 10:20:25 -04:00
make-browser.sh Remove globals.js (#3849) 2021-08-23 10:54:16 -04:00
make-chromium-meta.py Use raw string for regex patterns in python scripts 2024-05-05 11:47:31 -04:00
make-chromium.sh Make dev build use its own assets.json: assets.dev.json 2023-05-04 19:20:18 -04:00
make-clean.sh Use set -e in Bash scripts (#3791) 2021-07-31 17:34:25 -04:00
make-dig.sh Add support for nodejs flavors 2021-08-15 10:43:36 -04:00
make-firefox-meta.py Use raw string for regex patterns in python scripts 2024-05-05 11:47:31 -04:00
make-firefox.sh Empty target directory instead of re-creating it 2024-03-05 07:59:11 -05:00
make-mv3.sh [mv3] Write log.txt file to extension folder 2024-11-20 12:55:13 -05:00
make-nodejs.sh Improve trusted-replace-argument scriptlet 2024-11-27 15:53:50 -05:00
make-npm.sh Update README for npm package 2024-10-07 08:56:34 -04:00
make-opera-meta.py changes needed for releasing uBO/opera 1.15.24 2018-04-09 10:04:32 -04:00
make-opera.sh Remove untranslated language 2023-12-05 13:15:00 -05:00
make-thunderbird.sh Make dev build use its own assets.json: assets.dev.json 2023-05-04 19:20:18 -04:00
pull-assets.sh Use git clone instead of submodule to pull uAssets dependencies 2022-11-14 09:50:53 -05:00