UserScript
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.
Return
A new #WebKitUserScript
Since
2.6
Parameters
Source code of the user script.
A #WebKitUserContentInjectedFrames value
A #WebKitUserScriptInjectionTime value
An allow_list of URI patterns or null
A block_list of URI patterns or null
Creates a new user script for script world with name @world_name.
See webkit_user_script_new() for a full description.
Return
A new #WebKitUserScript
Since
2.22
Parameters
Source code of the user script.
A #WebKitUserContentInjectedFrames value
A #WebKitUserScriptInjectionTime value
the name of a #WebKitScriptWorld
An allow_list of URI patterns or null
A block_list of URI patterns or null