UserScript

Constructors

this
this(WebKitUserScript* webKitUserScript, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string source, WebKitUserContentInjectedFrames injectedFrames, WebKitUserScriptInjectionTime injectionTime, string[] allowList, string[] blockList)

Creates a new user script. Scripts can be applied to some URIs only by passing non-null values for @allow_list or @block_list. Passing a %NULL allow_list implies that all URIs are on the allow_list. The script is applied if an URI matches the allow_list and not the block_list. URI patterns must be of the form [protocol]://[host]/[path], where the *host* and *path* components can contain the wildcard character (*) to represent zero or more other characters.

this
this(string source, WebKitUserContentInjectedFrames injectedFrames, WebKitUserScriptInjectionTime injectionTime, string worldName, string[] allowList, string[] blockList)

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

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.

Functions

getStruct
void* getStruct()

the main Gtk struct as a void*

getUserScriptStruct
WebKitUserScript* getUserScriptStruct(bool transferOwnership)

Get the main Gtk struct

ref_
UserScript ref_()

Atomically increments the reference count of @user_script by one. This function is MT-safe and may be called from any thread.

unref
void unref()

Atomically decrements the reference count of @user_script by one. If the reference count drops to 0, all memory allocated by #WebKitUserScript is released. This function is MT-safe and may be called from any thread.

Static functions

getType
GType getType()

Variables

ownedRef
bool ownedRef;
Undocumented in source.
webKitUserScript
WebKitUserScript* webKitUserScript;

the main Gtk struct

Meta