Kaizou specifications

Kaizou is a format used to describe changes to be applied on a Web page after it has been loaded into a browser.

The Kaizou format is based on XML, and thus portable to many applications.

Kaizou files can be targeted specifically to a page or a list of pages, or more generally apply to pages matching a given pattern.

A Kaizou file contains several transformations that should be applied when the page has been loaded into the browser.

Each transformation applies only to a subset of the page identified by a specific selector that is applied to the page Document Object Model (DOM). This selector uses the XPATH syntax to specify the list of nodes that are targeted by the transformation.

Each transformation is composed of a set of actions of one of the following types:

- alter text using a regular expression (applies only to text nodes),

- comment text (applies only to text nodes),

- modify an attribute,

- insert an overlay image.

Kaizou files can either be installed permanently in the browser to be applied on each page (this requires Firefox and the Kaizou Firefox Extension), or applied on demand using a Kaizou link, or klink.