Fehérke's GitHub Site == glue between Fehérke's GitHub hosted projects

TipMaster - Time Ago

Improves the TipMaster’s forums, Tek-Tips and Eng-Tips, by adding a relative fuzzy explanation after dates on the following pages :

The script does its best to correctly calculate the time. On the thread pages both date and time are specified, but on the other pages only the date. When time is known, the script calculates with the precision of minutes otherwise with days.

On the thread pages the current server time specified in tooltips is used, otherwise is calculated knowing that TipMaster servers are located at GMT-5. An alternative would be to use document.lastModified to avoid calculations exposed to errors due to unsynchronized daylight saving times around the world. document.lastModified will certainly contain wrong data when the pages are reused from the browser cache, but as far as I observed, that happens only when the browser restores the previous session.

Screenshot

sample rendering without TipMaster - Time Ago

screenshot before applying the script

sample rendering with TipMaster - Time Ago

screenshot after applying the script

Usage

None. There is nothing interactive.

Configuration

Configuration not really supported.

But you could add ( or remove ) some of the time amounts declared in the unit array.

This script may clash with other Greasemonkey scripts, so you may have to adjust the execution order in your browser :

Versions

Plans

Download

You can find the related files on GitHub in my Greasemonkey-script repository’s tipmaster-time-ago directory :