UserStyleSheet.this

Creates a new user style sheet.

Style sheets 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 style sheet 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.

  1. this(void* ptr, Flag!"Take" take)
  2. this(string source, webkit.types.UserContentInjectedFrames injectedFrames, webkit.types.UserStyleLevel level, string[] allowList, string[] blockList)
    class UserStyleSheet

Parameters

source string

Source code of the user style sheet.

injectedFrames webkit.types.UserContentInjectedFrames

A #WebKitUserContentInjectedFrames value

level webkit.types.UserStyleLevel

A #WebKitUserStyleLevel

allowList string[]

An allow_list of URI patterns or null

blockList string[]

A block_list of URI patterns or null

Return Value

A new #WebKitUserStyleSheet