您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
文心一言去水印,支持自定义|失效不一定修
// ==UserScript== // @name 温馨遗言 // @namespace wenxinyiyan.taozhiyu.gitee.io // @version 0.1 // @description 文心一言去水印,支持自定义|失效不一定修 // @author 涛之雨 // @match https://yiyan.baidu.com/ // @icon https://nlp-eb.cdn.bcebos.com/logo/favicon.ico // @require https://gf.qytechs.cn/scripts/455943-ajaxhooker/code/ajaxHooker.js?version=1124435 // @grant GM_getValue // @grant GM_setValue // @run-at document-start // @license WTFPL // ==/UserScript== /* global ajaxHooker*/ (function() { 'use strict'; const wm=GM_getValue("watermark"," "); const rid="apply"+Math.random().toString(36).slice(2); Function[rid]=Function.apply; Function.apply=function($this,args){ return Function[rid]($this,args.map(a=>a.replace(/debugger/ig,""))); }; ajaxHooker.hook(request => { if (request.url.endsWith('user/info')){ request.response = res => { res.json.content.watermark=wm; }; }else if(request.url.endsWith('chat/query') || request.url.endsWith('chat/history')){ request.response = res => { res.json=JSON.parse(JSON.stringify(res.json).replace(/x-bce-process/g,"?&")); }; } }); const id=setInterval(()=>{ if(!document.querySelector('.ant-menu-submenu-title img'))return; clearInterval(id); document.querySelector('.ant-menu-submenu-title img').ondblclick=function(){ const inp=prompt("请输入自定义水印内容:",""+wm.slice(1)); if(inp===null)return; GM_setValue("watermark",` ${inp}`); confirm("设置成功,刷新后生效。\n是否立即刷新?")&&location.reload(); }; },200); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址