-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logging ability to
acs
scriptlet, for the benefit of filter list
maintainers. To enable logging, use the JSON approach to pass parameters to `acs` scriptlet. Example: ..##+js(acs, { "target": "document.oncontextmenu", "log": true }) Whereas "target", "needle", and "context" correspond to their respective positional argument. Using JSON form to pass parameters allows to specify extra paramters to facilitate debugging of that scriptlet: - `"log": true` => output useful information at the dev console. - `"debug": true` => break at key locations in the scriptlet. The added logging/debugging capabilities work only in the dev build of uBO or if the advanced setting `filterAuthorMode` is set to `true`.
- Loading branch information
Showing
2 changed files
with
80 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters