Date Display Full Timestamp for jpg4.su

Replace relative time with actual date from title attribute on jpg4.su

目前為 2024-07-30 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Date Display Full Timestamp for jpg4.su
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Replace relative time with actual date from title attribute on jpg4.su
// @match        https://jpg4.su/*
// @grant        none
// @author     Aligator
// @license     GNU GPLv3
// ==/UserScript==

(function() {
    'use strict';

    function updateDateDisplay() {
        const elements = document.querySelectorAll('.description-meta');
        elements.forEach(element => {
            const span = element.querySelector('span[title]');
            if (span && span.title) {
                span.textContent = span.title;
            }
        });
    }

    // Run the function when the DOM is fully loaded
    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', updateDateDisplay);
    } else {
        updateDateDisplay();
    }

    // Run the function periodically in case of dynamic content loading
    setInterval(updateDateDisplay, 5000);
})();

QingJ © 2025

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