Github Time Format Converter

Convert relative times on GitHub to absolute date and time

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 or Violentmonkey 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!)

Aŭtoro
念柚
Ĉiutagaj instaloj
0
Tutaj instaloj
19
Ratings
0 0 0
Versio
1.3.0
Kreita
2025/04/25
Ĝisdatigita
2025/10/21
Size
10,5 kb
Licenco
AGPL-3.0
Aplikiĝas al


Github 时间格式转换 / Github Time Format Converter
Made By MiPoNianYou

🦐🐔8⃣️✍️的不知道什么乐色脚本
我不到啊 想到啥写啥呗

✨ 功能全景

  • 🕰️ 精准时间呈现 - 自动将 GitHub 页面上模糊的相对时间精准转换为清晰的绝对日期与时间

    • 🗓️ 即时日期转换 - 页面加载或内容动态更新时 所有相对时间描述将被即刻转换为简洁易读的「年-月-日」格式
    • 💡 悬浮精确时刻 - 当鼠标轻触转换后的日期时 一个精致的工具提示将优雅浮现 清晰展示该日期精确到秒的完整时刻
    • 🛡️ 容错机制完善 - 对无效日期/缺失元素等异常情况妥善处理 确保脚本的稳定性不影响页面正常功能
  • 🚀 动态无缝集成 - 无论是页面初次加载还是后续动态载入的新内容 脚本都能持续监测并转换时间格式

    • ⚡️ 动态内容感知 - 利用高效的变动观察器持续监听页面 DOM 变化 确保 AJAX 加载与动态渲染的新时间元素也能被即时转换
    • 🎯 精准元素定位 - 准确识别 GitHub 特定的 relative-time 标签 仅对这些目标元素进行处理 避免误操作页面其他部分
    • 🔁 重复处理防护 - 为已转换元素添加专属标记类 智能去重避免重复处理造成的性能浪费与页面闪烁
  • ⚡️ 轻量无感运行 - 精心优化的代码逻辑 旨在无缝融入 GitHub 浏览体验 不增添额外负担 保持页面的流畅性能

    • 🔧 高效事件委托 - 使用事件委托机制处理提示框交互 减少事件监听器数量 降低内存占用
    • ⏱️ 智能惰性创建 - 工具提示元素仅在首次需要时才动态创建 避免不必要的 DOM 操作开销
  • 🎨 优雅视觉体验 - 精心雕琢的界面细节 让时间信息的展示既美观又实用

    • 🌓 主题自动适配 - 智能感知系统深色与浅色模式 提示框背景/文字/边框/阴影随主题无缝切换
    • ✨ 毛玻璃质感 - 运用背景模糊与饱和度增强 打造精致的半透明磨砂浮层效果
    • 📐 智能定位算法 - 动态计算最佳显示位置 优先显示在上方 空间不足时智能调整 确保提示框始终在可视区域内不被裁切
    • 🔤 等宽字体 - 时间信息使用系统等宽字体 确保数字对齐 提升可读性

📮 投递反馈

😡 脚本寄了飞到 Issues 开骂

🌠 功能许愿飞到 Discussions 祈祷

Copyright © 2025 念柚