Returns an initialized user script that can be added to a user content controller.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
The script’s source code.
The time when the script should be injected into the webpage. The value must be one of the constants of the enumerated type
Script Injection Time
A Boolean value indicating whether the script should be injected only into the main frame (
YES) or into all frames (
An initialized user script, or
nil if the object could not be initialized.