mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
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. |
||
|---|---|---|
| .. | ||
| copy-common-files.sh | ||
| import-crowdin.sh | ||
| make-assets.sh | ||
| make-browser.sh | ||
| make-chromium-meta.py | ||
| make-chromium.sh | ||
| make-clean.sh | ||
| make-dig.sh | ||
| make-firefox-meta.py | ||
| make-firefox.sh | ||
| make-mv3.sh | ||
| make-nodejs.sh | ||
| make-npm.sh | ||
| make-opera-meta.py | ||
| make-opera.sh | ||
| make-thunderbird.sh | ||
| pull-assets.sh | ||