您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button next to the quote to copy the image (auto-refreshes if image changes)
// ==UserScript== // @name Quozio Panel Image Copier // @namespace http://tampermonkey.net/ // @version 1.2 // @description Adds a button next to the quote to copy the image (auto-refreshes if image changes) // @author fishcat2431 // @match https://quozio.com/quote/* // @grant GM_setClipboard // @license GNU General Public License v3.0 // ==/UserScript== (function() { 'use strict'; let lastImgSrc = null; let btn = null; function addOrUpdateButton() { const panel = document.querySelector(".quote-edit-image-panel.text-center.small-scroll"); if (!panel) return; const img = panel.querySelector("img"); if (!img) return; if (!btn) { btn = document.createElement("button"); btn.id = "copyImageSrcBtn"; btn.textContent = "Copy Image URL"; btn.style.marginLeft = "10px"; btn.style.padding = "5px 10px"; btn.style.cursor = "pointer"; btn.addEventListener("click", function() { GM_setClipboard(lastImgSrc); btn.textContent = "Copied!"; setTimeout(() => btn.textContent = "Copy Image URL", 1500); }); panel.parentNode.insertBefore(btn, panel.nextSibling); new MutationObserver(() => { if (img.src !== lastImgSrc) lastImgSrc = img.src; }).observe(img, { attributes: true, attributeFilter: ["src"] }); } lastImgSrc = img.src; } addOrUpdateButton(); new MutationObserver(addOrUpdateButton).observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址