您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
文心一言,文心去水印(MutationObserver版本),去图片水印,去刷新弹窗
// ==UserScript== // @name 文心去水印 // @name:zh 文心去水印 // @name:zh-CN 文心去水印 // @name:en 文心去水印 // @namespace http://tampermonkey.net/ // @version 1.7 // @description 文心一言,文心去水印(MutationObserver版本),去图片水印,去刷新弹窗 // @description:en 文心一言,文心去水印(MutationObserver版本),去图片水印,去刷新弹窗 // @author You // @match https://yiyan.baidu.com/ // @icon https://nlp-eb.cdn.bcebos.com/logo/favicon.ico // @grant none // @run-at document-start // @license GPLv3 // ==/UserScript== MutationObserver.prototype.observe = function(target, options) { console.log("Hook MutationObserver observe") this.disconnect(); remove_water_mask(); } Element.prototype._attachShadow = Element.prototype.attachShadow; Element.prototype.attachShadow = function () { return this._attachShadow( { mode: "open" } ); }; function remove_water_mask() { let x = document.getElementsByTagName("div"); let flag = false; for (var i = 0; i < x.length; i++) { if(x[i].shadowRoot && x[i].id.length == 36){ x[i].shadowRoot.childNodes.forEach((node) => (node.innerText = "")); flag = true; } } if (!flag) { setTimeout(remove_water_mask, 100); } } setInterval(() => { // 移除刷新 let refresh_dialog = document.querySelector(".ant-modal-root"); if (refresh_dialog) { refresh_dialog.remove(); } // 移除图片水印 let img_water_mask = document.getElementsByTagName('img'); for (var i = 0; i < img_water_mask.length; i++) { let imgUrl = img_water_mask[i].getAttribute("src"); if (imgUrl.indexOf("wm_ai") > -1) { img_water_mask[i].setAttribute("src", imgUrl.replace(/style\/wm_ai/, "")); } } }, 500); (function () { "use strict"; remove_water_mask(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址