Gjsify LogoGjsify Logo

Hierarchy

  • UserScript

Index

Constructors

Properties

Methods

Constructors

  • 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.

    Parameters

    • source: string

      Source code of the user script.

    • injected_frames: WebKit2.UserContentInjectedFrames

      A #WebKitUserContentInjectedFrames value

    • injection_time: WebKit2.UserScriptInjectionTime

      A #WebKitUserScriptInjectionTime value

    • allow_list: string[]

      An allow_list of URI patterns or %NULL

    • block_list: string[]

      A block_list of URI patterns or %NULL

    Returns WebKit2.UserScript

Properties

name: string

Methods

  • unref(): void
  • 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.

    Returns void

  • 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.

    Parameters

    • source: string

      Source code of the user script.

    • injected_frames: WebKit2.UserContentInjectedFrames

      A #WebKitUserContentInjectedFrames value

    • injection_time: WebKit2.UserScriptInjectionTime

      A #WebKitUserScriptInjectionTime value

    • allow_list: string[]

      An allow_list of URI patterns or %NULL

    • block_list: string[]

      A block_list of URI patterns or %NULL

    Returns WebKit2.UserScript

  • Creates a new user script for script world with name world_name. See webkit_user_script_new() for a full description.

    Parameters

    • source: string

      Source code of the user script.

    • injected_frames: WebKit2.UserContentInjectedFrames

      A #WebKitUserContentInjectedFrames value

    • injection_time: WebKit2.UserScriptInjectionTime

      A #WebKitUserScriptInjectionTime value

    • world_name: string

      the name of a #WebKitScriptWorld

    • allow_list: string[]

      An allow_list of URI patterns or %NULL

    • block_list: string[]

      A block_list of URI patterns or %NULL

    Returns WebKit2.UserScript

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method