hook_function
Create and inject a JavaScript function hook in a single call, combining creation and injection for efficiency.
Instructions
Create and inject a hook in one call. Convenience wrapper around create_hook + inject_hook.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| targetExpr | Yes | ||
| capture | Yes | ||
| target | No |