WebKitUserContent

WebKitUserContent

Functions

Types and Values

Object Hierarchy

    GBoxed
    ├── WebKitUserScript
    ╰── WebKitUserStyleSheet

Description

Functions

webkit_user_style_sheet_ref ()

WebKitUserStyleSheet *
webkit_user_style_sheet_ref (WebKitUserStyleSheet *user_style_sheet);

webkit_user_style_sheet_unref ()

void
webkit_user_style_sheet_unref (WebKitUserStyleSheet *user_style_sheet);

webkit_user_style_sheet_new ()

WebKitUserStyleSheet *
webkit_user_style_sheet_new (const gchar *source,
                             WebKitUserContentInjectedFrames injected_frames,
                             WebKitUserStyleLevel level,
                             const gchar * const *whitelist,
                             const gchar * const *blacklist);

webkit_user_script_ref ()

WebKitUserScript *
webkit_user_script_ref (WebKitUserScript *user_script);

webkit_user_script_unref ()

void
webkit_user_script_unref (WebKitUserScript *user_script);

webkit_user_script_new ()

WebKitUserScript *
webkit_user_script_new (const gchar *source,
                        WebKitUserContentInjectedFrames injected_frames,
                        WebKitUserScriptInjectionTime injection_time,
                        const gchar * const *whitelist,
                        const gchar * const *blacklist);

Types and Values

WebKitUserStyleSheet

typedef struct _WebKitUserStyleSheet WebKitUserStyleSheet;

WebKitUserScript

typedef struct _WebKitUserScript WebKitUserScript;

enum WebKitUserContentInjectedFrames

Specifies in which frames user style sheets are to be inserted in.

Members

WEBKIT_USER_CONTENT_INJECT_ALL_FRAMES

Insert the user style sheet in all the frames loaded by the web view, including nested frames. This is the default.

 

WEBKIT_USER_CONTENT_INJECT_TOP_FRAME

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


enum WebKitUserStyleLevel

Specifies how to treat an user style sheet.

Members

WEBKIT_USER_STYLE_LEVEL_USER

The style sheet is an user style sheet, its contents always override other style sheets. This is the default.

 

WEBKIT_USER_STYLE_LEVEL_AUTHOR

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


enum WebKitUserScriptInjectionTime

Specifies at which place of documents an user script will be inserted.

Members

WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_START

Insert the code of the user script at the beginning of loaded documents. This is the default.

 

WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_END

Insert the code of the user script at the end of the loaded documents.

 

Since: 2.6