GitHub Relative Time Format

replacing GitHub relative timestamps(<relative-time>) with customizable date and time formats

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
MuXiu1997
今日安裝
0
安裝總數
106
評價
2 0 0
版本
0.7.0
建立日期
2023-11-16
更新日期
2025-12-24
尺寸
25.9 KB
授權條款
MIT
腳本執行於

github-relative-time-format

License: MIT Greasy Fork


Customize GitHub's <relative-time> elements with your preferred date and time formats
自定义 GitHub <relative-time> 元素的日期与时间显示格式

Configuration / 配置项

You can access these options via the Userscript menu: 你可以通过脚本管理器的菜单访问以下配置:

  • DISPLAY_FORMAT: Format for the visible timestamp (Default: YY-MM-DD HH:mm).
  • TOOLTIP_FORMAT: Format for the hover tooltip (Default: YYYY-MM-DD HH:mm:ss).
  • DEBUG_LOG: Enable verbose logging in the console for troubleshooting (Default: false).

Installation / 安装

License / 协议

This project is licensed under the MIT License.

本项目采用 MIT 协议 开源。