UserScript.this
this
(void * ptr, Flag!"Take" take)No documentation available for this declaration.
this
(string source, webkit.types.UserContentInjectedFrames injectedFrames, webkit.types.UserScriptInjectionTime injectionTime, string[] allowList = null, string[] blockList = null)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
represent zero or more other characters.
Parameters
source | Source code of the user script. |
injectedFrames | A #WebKitUserContentInjectedFrames value |
injectionTime | A #WebKitUserScriptInjectionTime value |
allowList | An allow_list of URI patterns or null |
blockList | A block_list of URI patterns or null |
Returns
A new #WebKitUserScript