WebKit2.UserScript
Description: Reference for WebKit2.UserScript

### Struct

# WebKit2UserScript

#### Description [src]

    struct WebKitUserScript {
      /* No available fields */
    }

A JavaScript snippet which can be injected in loaded pages.

Available since: | 2.6

#### Constructors

###### webkit_user_script_new

Creates a new user script.

Available since: 2.6

###### webkit_user_script_new_for_world

Creates a new user script for script world with name `world_name`.

Available since: 2.22

#### Instance methods

###### webkit_user_script_ref

Atomically increments the reference count of `user_script` by one.

Available since: 2.6

###### webkit_user_script_unref

Atomically decrements the reference count of `user_script` by one.

Available since: 2.6