UserScript.for_world


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.22" ) ]
public UserScript.for_world (string source, UserContentInjectedFrames injected_frames, UserScriptInjectionTime injection_time, string world_name, string[]? allow_list, string[]? block_list)

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

See UserScript for a full description.

Parameters:

source

Source code of the user script.

injected_frames

A UserContentInjectedFrames value

injection_time

A UserScriptInjectionTime value

world_name

the name of a WebKitScriptWorld

allow_list

An allow_list of URI patterns or null

block_list

A block_list of URI patterns or null

Returns:

A new UserScript