Greasy Fork

Greasy Fork is available in English.

显示 gamebanana 更新具体时间

用具体时间替换 gamebanana 网站上的更新时间。

// ==UserScript==
// @name         显示 gamebanana 更新具体时间
// @namespace    http://tampermonkey.net/
// @license      CC-BY-SA 3.0
// @version      2024-03-12
// @description  用具体时间替换 gamebanana 网站上的更新时间。
// @author       Confringo
// @match        *://gamebanana.com/mods/*
// @match        *://www.gamebanana.com/mods/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=gamebanana.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    window.addEventListener('load',function(){
        var times=document.getElementsByTagName('time');
        console.log(times);
        for (let i=0;i<times.length;i++){
            console.log(times[i].getAttribute('datetime'));
            times[i].textContent=times[i].getAttribute('datetime').replace('Z','').replace('.000','').replace('T',' ');
        }
    },false);
})();