Monkey Utils

Useful library with JavaScript utilities.

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/405813/821710/Monkey%20Utils.js

作者
rafaelgomesxyz
版本
2.2.2
创建于
2020-06-21
更新于
2020-06-29
许可证
暂无

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