UserScript.newForWorld

Creates a new user script for script world with name world_name.

See webkit.user_script.UserScript.new_ for a full description.

Parameters

source string

Source code of the user script.

injectedFrames webkit.types.UserContentInjectedFrames

A #WebKitUserContentInjectedFrames value

injectionTime webkit.types.UserScriptInjectionTime

A #WebKitUserScriptInjectionTime value

worldName string

the name of a #WebKitScriptWorld

allowList string[]

An allow_list of URI patterns or null

blockList string[]

A block_list of URI patterns or null

Return Value

Type: webkit.user_script.UserScript

A new #WebKitUserScript