UserContentManager
Manages user-defined content which affects web pages.
Using a #WebKitUserContentManager user CSS style sheets can be set to be injected in the web pages loaded by a #WebKitWebView, by webkit_user_content_manager_add_style_sheet().
To use a #WebKitUserContentManager, it must be created using webkit_user_content_manager_new(), and then used to construct a #WebKitWebView. User style sheets can be created with webkit_user_style_sheet_new().
User style sheets can be added and removed at any time, but they will affect the web pages loaded afterwards.
Since
2.6
Constructors
Functions
Adds a #WebKitUserContentFilter to the given #WebKitUserContentManager.
Adds a #WebKitUserScript to the given #WebKitUserContentManager.
Adds a #WebKitUserStyleSheet to the given #WebKitUserContentManager.
This signal is emitted when JavaScript in a web view calls window.webkit.messageHandlers.
, after registering
using webkit_user_content_manager_register_script_message_handler()
This signal is emitted when JavaScript in a web view calls window.webkit.messageHandlers.
, after registering
using webkit_user_content_manager_register_script_message_handler_with_reply()
Registers a new user script message handler in script world.
Registers a new user script message handler in script world with name @world_name.
Removes all content filters from the given #WebKitUserContentManager.
Removes all user scripts from the given #WebKitUserContentManager
Removes all user style sheets from the given #WebKitUserContentManager.
Removes a filter from the given #WebKitUserContentManager.
Removes a filter by the given identifier.
Removes a #WebKitUserScript from the given #WebKitUserContentManager.
Removes a #WebKitUserStyleSheet from the given #WebKitUserContentManager.
Unregisters a previously registered message handler in script world with name @world_name. If null is passed as the @world_name, the default world will be used.