您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
将网页显示为黑白效果
// ==UserScript== // @name 网页黑白滤镜 // @namespace http://tampermonkey.net/ // @version 1.1 // @description 将网页显示为黑白效果 // @author ccav5 // @match *://*/* // @exclude *://*.jd.com/* // @exclude *://*.jd.hk/* // @exclude *://*.taoao.com/* // @exclude *://*.tmall.com/* // @grant none // @license MIT // ==/UserScript== (function() { addNewStyle("*{-webkit-filter: grayscale(100%)}") })(); function addNewStyle(newStyle) { console.log("👴 add new style:", newStyle) var styleElement = document.getElementById('styles_js'); if (!styleElement) { styleElement = document.createElement('style'); styleElement.type = 'text/css'; styleElement.id = 'styles_js'; document.getElementsByTagName('head')[0].appendChild(styleElement); } styleElement.appendChild(document.createTextNode(newStyle)); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址