Boosty Title Modifier

Modify Boosty title with timestamp

目前為 2023-12-24 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Boosty Title Modifier
// @version      0.1
// @description  Modify Boosty title with timestamp
// @match        https://boosty.to/*
// @grant        none
// @namespace https://gf.qytechs.cn/users/789838
// ==/UserScript==

(function() {
    'use strict';

    // Функция для получения текста из элемента с классом CreatedAt_headerLink_8cVbd
    function getTimestamp() {
        var timestampElement = document.querySelector('.CreatedAt_headerLink_8cVbd');
        if (timestampElement) {
            return timestampElement.textContent.trim().replace(/ в /g, ' ').replace(/:/g, ' ');
        }
        return '';
    }

    // Функция для изменения заголовка страницы
    function modifyTitle() {
        var originalTitle = document.title;
        var timestamp = getTimestamp();
        if (timestamp !== '') {
            document.title = timestamp + ' - ' + originalTitle;
        }
    }

    // Вызываем функцию при загрузке страницы
    modifyTitle();
})();

QingJ © 2025

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