hasInjectedContent(for:)
Checks if the extension has script or stylesheet content that can be injected into the specified URL.
Declaration
func hasInjectedContent(for url: URL) -> BoolParameters
- url:
The webpage URL to check.
Return Value
Returns YES if the extension has content that can be injected by matching the URL against the extension’s requested match patterns.
Discussion
The extension context will still need to be loaded and have granted website permissions for its content to actually be injected.