您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
脚本仅供个人学习研究,所得素材资源他用后果自负。
// ==UserScript== // @name 最新免费无套路 稿定设计去水印 // @namespace gaodingsheji // @version 1.1 // @require https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js // @description 脚本仅供个人学习研究,所得素材资源他用后果自负。 // @author pachyming // @match https://www.gaoding.com/editor/design?* // @match https://www.focodesign.com/editor/design?* // @match https://www.focodesign.com/editor/odyssey?template_id=* // @icon https://focodesign.com/favicon.ico // @grant none // @license Creative Commons (CC) // ==/UserScript== (function() { 'use strict'; // 保存原始的 URL.createObjectURL 和 Blob 构造函数 const originalCreateObjectURL = URL.createObjectURL; const originalBlob = window.Blob; // 覆盖 URL.createObjectURL URL.createObjectURL = function(blob) { // 仅拦截图像类型的 Blob 对象 if (blob.type.startsWith('image/')) { console.error('拦截:URL.createObjectURL 调用被拦截,类型为图像'); return null; } else { return originalCreateObjectURL(blob); } }; // 覆盖 Blob 构造函数 window.Blob = function(blobParts, options) { // 检查 Blob 的类型 const type = options && options.type ? options.type : ''; if (type.startsWith('image/')) { console.error('拦截:图像类型的 Blob 创建操作被拦截'); return new originalBlob(blobParts, options); } else { return new originalBlob(blobParts, options); } }; console.log('拦截图像类型的 Blob 和 URL.createObjectURL 操作的脚本已加载'); })();