您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
1 секунда для копирование
// ==UserScript== // @name LZTCopyLink // @namespace http://tampermonkey.net/ // @version 1.8 // @description 1 секунда для копирование // @author HashBrute // @match https://lolz.live/* // @grant GM_setClipboard // ==/UserScript== (function() { 'use strict'; function addCopyLinkButtonToFirstPost() { const firstPost = document.querySelector('li.message.firstPost'); if (!firstPost || firstPost.querySelector('.copyLinkButton')) return; const postId = firstPost.id; const authorName = firstPost.getAttribute('data-author'); const copyLinkButton = document.createElement('a'); copyLinkButton.setAttribute('role', 'button'); copyLinkButton.classList.add('item', 'control', 'copyLinkButton'); copyLinkButton.title = `Скопировать ссылку на пост ${authorName}`; copyLinkButton.setAttribute('data-username', authorName); const icon = document.createElement('i'); icon.className = 'fa fa-wheelchair'; icon.style.fontSize = '20px'; icon.style.color = '#8C8C8C'; icon.style.marginRight = '5px'; copyLinkButton.appendChild(icon); copyLinkButton.addEventListener('click', () => { const link = `${window.location.origin}${window.location.pathname}#${postId}`; GM_setClipboard(link); if (typeof XenForo !== 'undefined' && typeof XenForo.alert === 'function') { XenForo.alert('Ссылка скопирована в буфер обмена!', '', 5000); } }); const publicControls = firstPost.querySelector('.publicControls'); if (publicControls) { publicControls.appendChild(copyLinkButton); } } const observer = new MutationObserver(() => { addCopyLinkButtonToFirstPost(); }); observer.observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址