UserStyleSheet.newForWorld
webkit.user_style_sheet.UserStyleSheet newForWorld(string source, webkit.types.UserContentInjectedFrames injectedFrames, webkit.types.UserStyleLevel level, string worldName, string[] allowList = null, string[] blockList = null)Creates a new user style sheet for script world.
Creates a new user style sheet for script world with name world_name. See [webkit.user_style_sheet.UserStyleSheet.new_] for a full description.
Parameters
source | Source code of the user style sheet. |
injectedFrames | A #WebKitUserContentInjectedFrames value |
level | A #WebKitUserStyleLevel |
worldName | the name of a #WebKitScriptWorld |
allowList | An allow_list of URI patterns or null |
blockList | A block_list of URI patterns or null |
Returns
A new #WebKitUserStyleSheet