create_hook
Define a hook to capture arguments, return value, stack trace, or 'this' context from any JavaScript expression. Use with inject_hook to apply to pages or workers.
Instructions
Create a hook definition. Use inject_hook to attach it to the page or workers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| targetExpr | Yes | ||
| capture | Yes |