Monkey Utils

Useful library with JavaScript utilities.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/405813-monkey-utils/code/Monkey%20Utils.js?version=821710

Author
rafaelgssa
Ratings
0 0 0
Version
2.2.2
Created
Updated
License
N/A
Applies to
All sites

Useful library with JavaScript utilities.

It simplifies the process of:

  • Getting common time equivalents in milliseconds
  • Getting the plural form of a word based on a number
  • Getting a relative time string for a UNIX time or a number of minutes
  • Getting a date string in the 'yyyy-MM-dd hh:mm:ss UTC' format
  • Checking if a value is set
  • Sleeping for a number of seconds