UserScript.newForWorld
webkit.user_script.UserScript newForWorld(string source, webkit.types.UserContentInjectedFrames injectedFrames, webkit.types.UserScriptInjectionTime injectionTime, string worldName, string[] allowList = null, string[] blockList = null)Creates a new user script for script world with name world_name.
See [webkit.user_script.UserScript.new_] for a full description.
Parameters
source | Source code of the user script. |
injectedFrames | A #WebKitUserContentInjectedFrames value |
injectionTime | A #WebKitUserScriptInjectionTime value |
worldName | the name of a #WebKitScriptWorld |
allowList | An allow_list of URI patterns or null |
blockList | A block_list of URI patterns or null |
Returns
A new #WebKitUserScript