What is a User Script? We can say that the
injectionTime property, for example, to
UserScriptInjectionTime.AT_DOCUMENT_START (that is the equivalent of the
WKUserScriptInjectionTime.atDocumentStart iOS native property).
Also, for each
UserScript you can set an optional Content World, and, only on iOS, you can set whether to inject the script into the main frame using the
Note: Unfortunately, on Android, when using
UserScript as soon as possible.
To add a
UserScript to a WebView, you can use the
To add or remove User Scripts, you can also use the corresponding methods, such as
Note: Adding or removing User Scripts at runtime after a web page is loaded will take no effect until the next web page load.
UserScript you can define a
groupName that you can use, for example, to remove a group of User Scripts with the