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 *whitelist
,const gchar * const *blacklist
);
Creates a new user style sheet. Style sheets can be applied to some URIs
only by passing non-null values for whitelist
or blacklist
. Passing a
NULL
whitelist implies that all URIs are on the whitelist. The style
sheet is applied if an URI matches the whitelist and not the blacklist.
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 |
||
whitelist |
A whitelist of URI patterns or |
[array zero-terminated=1][allow-none] |
blacklist |
A blacklist 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 *whitelist
,const gchar * const *blacklist
);
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 |
|
whitelist |
A whitelist of URI patterns or |
[array zero-terminated=1][allow-none] |
blacklist |
A blacklist 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 *whitelist
,const gchar * const *blacklist
);
Creates a new user script. Scripts can be applied to some URIs
only by passing non-null values for whitelist
or blacklist
. Passing a
NULL
whitelist implies that all URIs are on the whitelist. The script
is applied if an URI matches the whitelist and not the blacklist.
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 |
|
whitelist |
A whitelist of URI patterns or |
[array zero-terminated=1][allow-none] |
blacklist |
A blacklist 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 *whitelist
,const gchar * const *blacklist
);
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 |
|
whitelist |
A whitelist of URI patterns or |
[array zero-terminated=1][allow-none] |
blacklist |
A blacklist of URI patterns or |
[array zero-terminated=1][allow-none] |
Since: 2.22
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