UserStyleSheet
Description:
[ CCode ( has_construct_function = false ) ]
public UserStyleSheet (string source, UserContentInjectedFrames injected_frames, UserStyleLevel level, string[]? allow_list, string[]? block_list)
public UserStyleSheet (string source, UserContentInjectedFrames injected_frames, UserStyleLevel level, string[]? allow_list, string[]? block_list)
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.
Parameters:
source |
Source code of the user style sheet. |
injected_frames |
A UserContentInjectedFrames value |
level | |
allow_list |
An allow_list of URI patterns or null |
block_list |
A block_list of URI patterns or null |
Returns:
A new UserStyleSheet |