| Top |
WebKitUserStyleSheet *
webkit_user_style_sheet_ref (WebKitUserStyleSheet *user_style_sheet);
Atomically increments the reference count of user_style_sheet
by one.
This function is MT-safe and may be called from any thread.
Since: 2.6
void
webkit_user_style_sheet_unref (WebKitUserStyleSheet *user_style_sheet);
Atomically decrements the reference count of user_style_sheet
by one.
If the reference count drops to 0, all memory allocated by
WebKitUserStyleSheet is released. This function is MT-safe and may be
called from any thread.
Since: 2.6
WebKitUserStyleSheet * webkit_user_style_sheet_new (const gchar *source,WebKitUserContentInjectedFrames injected_frames,WebKitUserStyleLevel level,const gchar * const *allow_list,const gchar * const *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.
source |
Source code of the user style sheet. |
|
injected_frames |
A WebKitUserContentInjectedFrames value |
|
level |
||
allow_list |
An allow_list of URI patterns or |
[array zero-terminated=1][allow-none] |
block_list |
A block_list of URI patterns or |
[array zero-terminated=1][allow-none] |
Since: 2.6
WebKitUserStyleSheet * webkit_user_style_sheet_new_for_world (const gchar *source,WebKitUserContentInjectedFrames injected_frames,WebKitUserStyleLevel level,const gchar *world_name,const gchar * const *allow_list,const gchar * const *block_list);
Creates a new user style sheet for script world with name world_name
.
See webkit_user_style_sheet_new() for a full description.
source |
Source code of the user style sheet. |
|
injected_frames |
A WebKitUserContentInjectedFrames value |
|
level |
||
world_name |
the name of a WebKitScriptWorld |
|
allow_list |
An allow_list of URI patterns or |
[array zero-terminated=1][allow-none] |
block_list |
A block_list of URI patterns or |
[array zero-terminated=1][allow-none] |
Since: 2.22
WebKitUserScript *
webkit_user_script_ref (WebKitUserScript *user_script);
Atomically increments the reference count of user_script
by one.
This function is MT-safe and may be called from any thread.
Since: 2.6
void
webkit_user_script_unref (WebKitUserScript *user_script);
Atomically decrements the reference count of user_script
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.
Since: 2.6
WebKitUserScript * webkit_user_script_new (const gchar *source,WebKitUserContentInjectedFrames injected_frames,WebKitUserScriptInjectionTime injection_time,const gchar * const *allow_list,const gchar * const *block_list);
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.
source |
Source code of the user script. |
|
injected_frames |
A WebKitUserContentInjectedFrames value |
|
injection_time |
A WebKitUserScriptInjectionTime value |
|
allow_list |
An allow_list of URI patterns or |
[array zero-terminated=1][allow-none] |
block_list |
A block_list of URI patterns or |
[array zero-terminated=1][allow-none] |
Since: 2.6
WebKitUserScript * webkit_user_script_new_for_world (const gchar *source,WebKitUserContentInjectedFrames injected_frames,WebKitUserScriptInjectionTime injection_time,const gchar *world_name,const gchar * const *allow_list,const gchar * const *block_list);
Creates a new user script for script world with name world_name
.
See webkit_user_script_new() for a full description.
source |
Source code of the user script. |
|
injected_frames |
A WebKitUserContentInjectedFrames value |
|
injection_time |
A WebKitUserScriptInjectionTime value |
|
world_name |
the name of a WebKitScriptWorld |
|
allow_list |
An allow_list of URI patterns or |
[array zero-terminated=1][allow-none] |
block_list |
A block_list of URI patterns or |
[array zero-terminated=1][allow-none] |
Since: 2.22
WebKitUserContentFilter *
webkit_user_content_filter_ref (WebKitUserContentFilter *user_content_filter);
Atomically increments the reference count of user_content_filter
by one.
This function is MT-safe and may be called from any thread.
Since: 2.24
void
webkit_user_content_filter_unref (WebKitUserContentFilter *user_content_filter);
Atomically decrements the reference count of user_content_filter
by one.
If the reference count drops to 0, all the memory allocated by the
WebKitUserContentFilter is released. This function is MT-safe and may
be called from any thread.
Since: 2.24
const char *
webkit_user_content_filter_get_identifier
(WebKitUserContentFilter *user_content_filter);
Obtain the identifier previously used to save the user_content_filter
in the
WebKitUserContentFilterStore.
Since: 2.24
Specifies in which frames user style sheets are to be inserted in.
|
Insert the user style sheet in all the frames loaded by the web view, including nested frames. This is the default. |
||
|
Insert the user style sheet *only* in the top-level frame loaded by the web view, and *not* in the nested frames. |
Since: 2.6
Specifies how to treat an user style sheet.
|
The style sheet is an user style sheet, its contents always override other style sheets. This is the default. |
||
|
The style sheet will be treated as if it was provided by the loaded documents. That means other user style sheets may still override it. |
Since: 2.6
Specifies at which place of documents an user script will be inserted.
Since: 2.6