Greasy Fork

来自缓存

Greasy Fork is available in English.

WorldTime Whisperer

即时将外国时间转换为本地时间。

这些是此脚本变更过代码的版本。 显示所有版本。

  • v1.2 2025-12-04

    Changelog

    • Adds new timezones: HKT, SGT, NZST, NZDT.
    • Introduces CST disambiguation based on browser language (zh → UTC+8, otherwise UTC−6).
    • Adds a clearer visual indicator for converted times.
    • Strengthens the regex with wider separator support, stricter boundaries, and improved AM/PM handling.
    • Enhances fractional-offset timezone processing (IST, ACST, ACDT).
    • Refines the DOM walker to avoid nodeType 9 and frame elements.
  • v1.1 2025-06-08

    Fixed

    • Fractional timezone support: Fixed issue where non-integer timezones (e.g., IST, ACST, ACDT) were being truncated, resulting in incorrect conversions.
    • Undefined time label: Fixed (undefined HH:MM:SS) appearing when browser language was not in localTimeMessages.

    Improved

    • More robust language detection using a fallback to "en" if navigator.language is unavailable or not mapped.
    • Updated Intl.DateTimeFormat to adapt to the user's full language settings for consistent formatting.
  • v1.0 2025-04-04