init

Singleton for initializing the script, both on talk pages and on log pages such as the watchlist. Includes setting constants as properties of the convenientDiscussions.g object, adding CSS, loading site data, such as MediaWiki messages and configuration, and setting date formats based on it.

Source:

Methods

(static) addTalkPageCss()

Source:

For internal use. Set CSS for talk pages: set CSS variables, add static CSS.

(static) getSiteData() → {Array.<Promise>}

Source:

For internal use. Load messages needed to parse and generate timestamps as well as some site data.

Returns:

There should be at least one promise in the array.

Type
Array.<Promise>

(static) globals()

Source:

For internal use. Set a number of global object properties.

(static) memorizeCssValues()

Source:

For internal use. Assign some important skin-specific values to the properties of the global object.

(static) talkPage()

Source:

For internal use. Assign various global objects' (convenientDiscussions, jQuery.fn) properties and methods that are needed for processing a talk page. Executed on the first run.

(static) timestampParsingTools(language)

Source:

For internal use. Set the convenientDiscussions properties related to timestamp parsing.

Parameters:
Name Type Description
language string