A JavaScript snippet which can be injected in loaded pages.
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 #f 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.
Passed: a string.
Source code of the user script.
Passed: a
<WebKitUserContentInjectedFrames>,
or one of its symbols.
Passed: a
<WebKitUserScriptInjectionTime>,
or one of its symbols.
A <WebKitUserScriptInjectionTime>
value
Passed, or left out: a list or vector, each a string, or #f.
An allow_list of URI patterns or #f
Passed, or left out: a list or vector, each a string, or #f.
A block_list of URI patterns or #f
Returned: a <WebKitUserScript>.
A new <WebKitUserScript>
Creates a new user script for script world with name world-name.
See user-script:new for a full description.
Passed: a string.
Source code of the user script.
Passed: a
<WebKitUserContentInjectedFrames>,
or one of its symbols.
Passed: a
<WebKitUserScriptInjectionTime>,
or one of its symbols.
A <WebKitUserScriptInjectionTime>
value
Passed: a string.
the name of a WebKitScriptWorld
Passed, or left out: a list or vector, each a string, or #f.
An allow_list of URI patterns or #f
Passed, or left out: a list or vector, each a string, or #f.
A block_list of URI patterns or #f
Returned: a <WebKitUserScript>.
A new <WebKitUserScript>
Atomically increments the reference count of self by one.
This function is MT-safe and may be called from any thread.
Passed: a <WebKitUserScript>.
Returned: a <WebKitUserScript>.
The passed <WebKitUserScript>
Atomically decrements the reference count of self 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.
Passed: a <WebKitUserScript>.