您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
将积木输出改为可编辑选中复制 方便开发者使用
当前为
// ==UserScript== // @name 共创世界(CCW)积木输出预览选中复制 // @namespace http://greasyfork.icu/zh-CN/scripts/491810 // @version 1.1 // @description 将积木输出改为可编辑选中复制 方便开发者使用 // @match https://www.ccw.site/gandi // @match https://www.ccw.site/gandi/* // @match https://cocrea.world/gandi // @match https://cocrea.world/gandi/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // 创建一个新的MutationObserver实例 const observer = new MutationObserver(mutationsList => { mutationsList.forEach(mutation => { mutation.addedNodes.forEach(node => { if (node instanceof Element && node.matches('.valueReportBox')) { console.log('Matched .valueReportBox element:'); console.log(node); node.style.userSelect = 'all'; node.contentEditable = true; } }); }); }); // 观察整个文档 const targetNode = document.body; // 配置观察选项 const config = { childList: true, subtree: true }; // 开始观察目标节点 observer.observe(targetNode, config); })();