GitHub Date Formatter

A userscript to convert GitHub's relative timestamps and commit dates into standard local datetime formats.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
moeote
今日安裝
1
安裝總數
1
評價
0 0 0
版本
1.0.2
建立日期
2026-09-01
更新日期
2026-09-01
尺寸
4.0 KB
授權條款
MIT
腳本執行於

GitHub Date Formatter

A userscript to convert GitHub's relative timestamps and commit dates into intuitive, standardized local datetime formats.

Introduction

GitHub displays timestamps using relative descriptions (such as "2 hours ago" or "3 days ago") and formats commit history headers with localized English strings (e.g., "Commits on May 22, 2026"). This userscript normalizes these strings across the interface into precise, standardized local datetime formats for enhanced readability and traceability.

Features

  • Standardized Timestamps: Converts relative time tags to YYYY-MM-DD HH:mm:ss.
  • Simplified Commit Headers: Simplifies commit group headers from Commits on Month DD, YYYY to YYYY-MM-DD.
  • Dynamic Content Support: Monitors dynamic DOM changes (SPA / PJAX navigations) via MutationObserver without needing manual page refreshes.
  • Native Replacement: Replaces custom Web Components with lightweight standard elements to prevent periodic overwrites.

Repository

https://github.com/abevol/github-date-formatter