User:Mfield/Scripts/RelativeTimestamps

From Wikipedia, the free encyclopedia

RelativeTimestamps is a script to add human readable relative times ("5 minutes ago", "3 hours ago" etc.) after timestamps on watchlist, history, contribution and talk pages, noticeboards etc. Anywhere it finds any appropriately tagged timestamp at least.

DescriptionHuman readable relative times after timestamps (12 minutes ago, 4 hours ago etc.)
AuthorMfield
Updated8 March 2026
Quick facts Description, Author ...
RelativeTimestamps
DescriptionHuman readable relative times after timestamps (12 minutes ago, 4 hours ago etc.)
AuthorMfield
Updated8 March 2026
BrowsersFirefox, Safari, Chrome
SourceRelativeTimestamps.js
Close

New - Sub 1 hour relative times update themselves automatically every minute so they stay up to date while you are reading through a long thread/page.

Screenshot of wikipedia article page history with User:Mfield/Scripts/RelativeTimestamps.js userscript active

Installation

To install the script, follow these steps:

  1. In your preferences, go to Preferences Gadgets. At the bottom of the "Advanced" section, click the "Install scripts without having to manually edit JavaScript files (documentation)" checkbox, then click the "Save" button.
  2. Return to this page and click the blue "Install" button.

Alternatively, you can manually install it by adding the following code to your common.js file:

{{subst:iusc|User:Mfield/Scripts/RelativeTimestamps.js}}

Configuration

There are no configuration settings.

Notes

Now works with non UTC times also

Related Articles

Wikiwand AI