User Notes

Отображение заметок о пользоватале в его профиле

目前為 2023-08-21 提交的版本,檢視 最新版本

// ==UserScript==
// @name         User Notes
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Отображение заметок о пользоватале в его профиле
// @match        https://zelenka.guru/*
// @icon         https://zelenka.guru/data/avatars/l/2259/2259792.jpg?1690711557
// @grant        GM_setValue
// @grant        GM_getValue
// ==/UserScript==

(function() {
    var pageTopElement = $('.page_top');
    pageTopElement[0].insertBefore($('<input type="text" id="link_input" placeholder="none" autocomplete="off" style="background: rgb(0, 0, 0, 0) !important; color: rgb(214, 214, 214);border: 0; width: -webkit-fill-available; padding: 3px 0 1px">')[0], pageTopElement[0].lastChild);

    var currentLink = window.location.href;
    var storedLink = GM_getValue(currentLink, '');
    $('#link_input').val(storedLink);

    $('#link_input').keypress(function(e) {
        if (e.which === 13) {
            var inputContent = $(this).val();
            GM_setValue(currentLink, inputContent);
            XenForo.alert('Изменения сохранены', '', 2000);
        }
    });
})();

QingJ © 2025

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