GitHub 时间格式化

用自定义的日期时间格式替换 GitHub 时间显示(<relative-time>)

当前为 2025-12-27 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
MuXiu1997
评分
0 0 0
版本
0.7.1
创建于
2023-11-16
更新于
2025-12-27
大小
38.1 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 协议 开源。