您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
查看百科最新版本、历史版本无水印图片,历史图册页面进入的图片暂时不支持。
当前为
// ==UserScript== // @icon http://baidu.com/favicon.ico // @name 百度百科 无水印图片查看 // @namespace http://weibo.com/liangxiafengge // @version 1.3.1.3.1 // @description 查看百科最新版本、历史版本无水印图片,历史图册页面进入的图片暂时不支持。 // @match http*://baike.baidu.com/picture/* // @match http*://baike.baidu.com/historypic/* // @match http*://baike.baidu.com/pic/* // @match http*://baike.baidu.com/picview/history/* // @run-at document-end // ==/UserScript== (function(){ var imgPicture=document.getElementById('imgPicture'); changeImg(); var config = { attributes: true, childList: false, subtree: false }; var observer = new MutationObserver(changeImg); observer.observe(imgPicture, config); //替换有水印的图片,替换“原图”中的链接 function changeImg() { if (imgPicture.src.indexOf('\?') !== -1) { var imgId=window.location.href.split('pic=')[1]; imgPicture.src='https://bkimg.cdn.bcebos.com/pic/' + imgId; imgPicture.url=imgPicture.src; document.querySelector('a.tool-button.origin').href = imgPicture.src; } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址