易读时间日期 for Github和StackOverflow等网站

把Github,stackoverflow等网站的时间转换为ISO格式,方便阅读。

< 脚本易读时间日期 for Github和StackOverflow等网站的反馈

评价:差评 - 脚本失效或无法使用

§
发表于:2024-10-09
编辑于:2024-10-09

replaceTime 函数替换为如下来可以修复当前bug

Update replaceTime function to fix bug

    function replaceTime(){
        var time_list = document.querySelectorAll("relative-time");
        time_list.forEach(function(ele) {
            console.log(ele);
            let t = new Date(ele.title);
            let t_str = t.toLocaleString();
            ele.title = t_str;
        })
    }

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址