Greasy Fork is available in English.

Date Display Full Timestamp for jpg4.su / jpg5.su / JPG Fish / imgbb.com / ibb.co

Replace relative time with actual date from title attribute on jpg4.su / jpg5.su / JPG Fish / imgbb.com / ibb.co

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         Date Display Full Timestamp for jpg4.su / jpg5.su / JPG Fish / imgbb.com / ibb.co
// @namespace    http://tampermonkey.net/
// @version      1.4
// @description  Replace relative time with actual date from title attribute on jpg4.su / jpg5.su / JPG Fish / imgbb.com / ibb.co
// @match        https://jpg4.su/*
// @match        https://jpg5.su/*
// @match        https://imgbb.com/*
// @match        https://ibb.co/*
// @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);
})();