g

convenientDiscussions. g

Source:

Collection of properties accessible from anywhere in the script that are not grouped in any other way. This is an incomplete list. "g" is for "global".

Members

(static) allowedTags :Array.<string>

Source:
Type:
  • Array.<string>

(static) areTimestampsAltered :boolean|undefined

Source:

Whether comment timestamps are altered somehow.

Type:
  • boolean | undefined

(static) backgroundUpdateCheckInterval :number

Source:

Number of seconds between new comments checks when the tab is hidden.

Type:
  • number

(static) badCommentBeginnings :Array.<RegExp>

Source:

Regexps for strings that should be cut out of comment beginnings (not considered parts of comments) when editing comments.

Type:
  • Array.<RegExp>

(static) badHighlightableElements :Array.<string>

Source:

Names of elements that shouldn't be the first or last highlightable element. CD wraps these elements into <div> containers. It allows for comment headers to be displayed correctly when the reformatComments setting is enabled.

Type:
  • Array.<string>

(static) commentFallbackSideMargin :number

Source:

Left and right margins of comment layers used as a fallback (when a comment is placed somewhere where we don't know how to position the layers).

Type:
  • number

(static) contentDateFormat :string

Source:

Format of date in content language, as used by MediaWiki.

Type:
  • string

(static) contentDigits :string

Source:

Regular expression matching a single digit in content language, e.g. [0-9].

Type:
  • string

(static) contentTimestampMatchingGroups :Array.<string>

Source:

Codes of date (in content language) components for the timestamp parser function.

Type:
  • Array.<string>

(static) contentTimestampNoTzRegexp :RegExp

Source:

Regular expression for matching timestamps in content with no timezone at the end.

Type:
  • RegExp

(static) contentTimestampRegexp :RegExp

Source:

Regular expression for matching timestamps in content.

+ to account for RTL and LTR marks replaced with a space.

Type:
  • RegExp

(static, nullable) contentTimezone :string

Source:

Timezone of the wiki.

Type:
  • string

(static) contribsPage :Array.<string>

Source:

Contributions page local name.

Type:
  • Array.<string>

(static) letterPattern :string

Source:

A replacement for unicode property escapes while they are not supported in major browsers. https://github.com/slevithan/xregexp can be used also.

Type:
  • string

(static) msInDay :number

Source:

Number of milliseconds in a day.

Type:
  • number

(static) msInMin :number

Source:

Number of milliseconds in a minute.

Type:
  • number

(static) noHighlightClasses :Array.<string>

Source:

Classes of elements that shouldn't be highlighted. Only MediaWiki-assigned and native CD classes go here. Wiki-specific classes go in the configuration.

Type:
  • Array.<string>

(static) parseTimestampContentRegexp :RegExp

Source:

Regular expression for parsing timestamps in content.

Type:
  • RegExp

(static) parseTimestampUiRegexp :RegExp

Source:

Regular expression for parsing timestamps in the interface.

Type:
  • RegExp

(static) popularInlineElements :Array.<string>

Source:

Popular elements that can be met in page content and do have the display: inline property in the default browser styles.

Type:
  • Array.<string>

(static) popularNotInlineElements :Array.<string>

Source:

Popular elements that can be met in page content and don't have the display: inline property in the default browser styles.

Type:
  • Array.<string>

(static) signCode :string

Source:

Auxiliary property to keep the sign code: '\~\~\~\~'. If written as plain text, it gets transformed into the revision author's signature when saved. Note that the minifier translates '~\~\\~' and '\~\~' + '\~' into '\~\~\~'.

Type:
  • string

(static) specialPageAliases :Array.<string>

Source:

Some special page aliases in the wiki's language.

Type:
  • Array.<string>

(static) threadLineSideMargin :number

Source:

Left and right margins of thread lines.

Type:
  • number

(static) timezoneRegexp :RegExp

Source:

Regular expression for matching timezone, with the global flag.

Type:
  • RegExp

(static) uiDateFormat :string

Source:

Format of date in user (interface) language, as used by MediaWiki.

Type:
  • string

(static) uiDigits :string

Source:

Regular expression matching a single digit in user (interface) language, e.g. [0-9].

Type:
  • string

(static) uiTimestampMatchingGroups :Array.<string>

Source:

Codes of date (in interface language) components for the timestamp parser function.

Type:
  • Array.<string>

(static) uiTimestampRegexp :RegExp

Source:

Regular expression for matching timestamps in the interface with no timezone at the end.

Type:
  • RegExp

(static, nullable) uiTimezone :string|number

Source:

Timezone per user preferences: standard timezone name or offset in minutes. 'UTC' is always used instead of 0.

Type:
  • string | number

(static) updateCheckInterval :number

Source:

Number of seconds between checks for new comments when the tab is not hidden.

Type:
  • number