FANDOM


DisplayTimer adds a clock displaying UTC time to the bottom toolbar. This is helpful in figuring out how long ago comments were posted on talk pages and forums since the user's signature shows the time in UTC when it was posted.

Bonus features: Clicking the clock will purge the current page, and holding 'Shift' key while clicking the clock will null edit the current page (like NullEditButton).

This is an alternative to the UTCClock script. It is simpler and lacks any customisation options. It is also compatible with vanilla MediaWiki wikis (like Wikipedia), where the time will be added to the personal portlet at the top of the page.

Usage

Importing multiple scripts? This quick guide shows how to combine the imports.
  • For site-wide use, an administrator can add the line below to the wiki's MediaWiki:ImportJS page.
dev:DisplayTimer/code.js
  • For personal use, add the code snippet below to your global.js page (for use on all wikis) or your common.js page on your wiki (for use on a single wiki). Note that personal JS must be enabled for your account.
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:DisplayTimer/code.js',
    ]
});