您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
将 Github 的时间转换为24H格式
// ==UserScript== // @name Github 时间显示24H格式 // @namespace https://h3110w0r1d.com/ // @version 2025-02-16 // @description 将 Github 的时间转换为24H格式 // @author h3110w0r1d // @license MIT // @match https://github.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=github.com // @grant none // ==/UserScript== (function () { 'use strict'; setInterval(function(){ document.querySelectorAll('relative-time').forEach((item) => { item.setAttribute("format", "datetime"); item.setAttribute("weekday", ""); item.setAttribute("lang", "zh"); item.setAttribute("month", "numeric"); item.setAttribute("second", "2-digit"); item.setAttribute("minute", "2-digit"); item.setAttribute("hour", "2-digit"); }); }, 1000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址