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

sourceSource code of the user script.
injectedFramesA #WebKitUserContentInjectedFrames value
injectionTimeA #WebKitUserScriptInjectionTime value
worldNamethe name of a #WebKitScriptWorld
allowListAn allow_list of URI patterns or null
blockListA block_list of URI patterns or null

Returns

A new #WebKitUserScript