UserScript.this

Creates a new user script for script world with name @world_name. See webkit_user_script_new() for a full description.

  1. this(WebKitUserScript* webKitUserScript, bool ownedRef)
  2. this(string source, WebKitUserContentInjectedFrames injectedFrames, WebKitUserScriptInjectionTime injectionTime, string[] allowList, string[] blockList)
  3. this(string source, WebKitUserContentInjectedFrames injectedFrames, WebKitUserScriptInjectionTime injectionTime, string worldName, string[] allowList, string[] blockList)
    class UserScript
    this
    (
    string source
    ,
    WebKitUserContentInjectedFrames injectedFrames
    ,
    WebKitUserScriptInjectionTime injectionTime
    ,
    string worldName
    ,
    string[] allowList
    ,
    string[] blockList
    )

Parameters

source string

Source code of the user script.

injectedFrames WebKitUserContentInjectedFrames

A #WebKitUserContentInjectedFrames value

injectionTime WebKitUserScriptInjectionTime

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

A new #WebKitUserScript

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.22