您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
去除百度百科图册中的图片水印,查看原图时目标链接也是无水印版本
当前为
// ==UserScript== // @name 百度百科 图册图片查看无水印图片 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 去除百度百科图册中的图片水印,查看原图时目标链接也是无水印版本 // @author Esgloamp // @match http*://baike.baidu.com/pic/* // @icon https://www.baidu.com/favicon.ico // @grant none // ==/UserScript== (function() { 'use strict'; document.getElementById('imgPicture').addEventListener('load', () => { let currimg = document.getElementById("imgPicture"); let nomarkUrl = currimg.getAttribute('src').split('?')[0]; currimg.setAttribute('src', nomarkUrl); let srcImg = document.getElementsByClassName('tool-button origin'); // 右下角查看原图的目标链接也随着更改 srcImg[0].setAttribute('href', nomarkUrl); }); })();