GitHub Date Converter

Convert GitHub dates to standard numerical formats, supports custom formats.

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

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Penulis
dumeng-chn
Pemasangan harian
0
Total pemasangan
2
Nilai
1 0 0
Versi
0.3.0
Dibuat
29 April 2026
Diperbarui
29 April 2026
ukuran
11,1 KB
Kompatibilitas
Kompatibel dengan Chrome
Lisensi
MIT
Berlaku untuk

GitHub Date Converter

GitHub 日期转换器

repo issues license stars installs

A Tampermonkey script that converts GitHub's textual dates or relative dates into your preferred standard numerical format.
一个 Tampermonkey 脚本,旨在将 GitHub 页面中的英文文本日期或相对日期转换为你偏好的标准数字格式。

Example: Jan 122026-01-12   |   3 days ago2026-04-26


🚀 Features (功能特性)

  • 📅 Custom Format (自定义格式): Select from presets or use YYYY, MM, DD placeholders to define your own pattern.
    支持选择预设或使用 YYYY, MM, DD 等占位符灵活配置你喜好的日期显示格式。
  • ⏳ Relative Time Control (相对时间控制): Multiple modes to handle strings like "3 days ago" (None, > 7 Days, or All).
    支持多种转换模式:不转换相对时间、仅转换 7 天前的旧日期、或全部转换。
  • 📁 File List Toggle (忽略文件列表): Option to skip dates in repository file tables to maintain a native experience.
    支持针对仓库文件列表设置忽略,保持原生的文件浏览体验。
  • 🌐 Bilingual UI (双语界面): Automatically detects browser language and provides a settings menu in English and Chinese.
    自动识别浏览器语言,提供中英文双语交互菜单。
  • ⚡ Non-Destructive (非侵入式修改): Modifies text nodes directly without replacing elements. Ensures compatibility with GitHub's React hydration.
    直接修改文本节点和 Shadow DOM,不破坏原始 DOM 结构。完美兼容 GitHub 的 React 水合逻辑和页面交互。

📦 Installation (安装)

  1. Install a Userscript manager like Tampermonkey.
    安装脚本管理器,例如 Tampermonkey
  2. Install the script from your preferred source:
    从你偏好的渠道安装脚本:

📖 Usage (使用说明)

Open the Tampermonkey menu on any GitHub page to access the settings and customize the script's behavior.
在任何 GitHub 页面打开 Tampermonkey 菜单即可访问设置并自定义脚本行为。

📜 License (授权)

MIT License