您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
需要恢复的网页按照下面的格式加入进来就行
// ==UserScript== // @name ❤黑白网页恢复❤ // @namespace http://tampermonkey.net/ // @version 0.4 // @description 需要恢复的网页按照下面的格式加入进来就行 // @match *://tieba.baidu.com/* // @match *://www.taobao.com/* // @match *://*/* // @icon https://www.google.com/s2/favicons?sz=64&domain=baidu.com // @grant none // @license MIT // ==/UserScript== (function() { var abc = document.createElement('style'); abc.type = 'text/css'; abc.id='huifu' document.getElementsByTagName('head')[0].appendChild(abc);//加入到head中 // -o 是open浏览器,-MS是IE,-MOZ是火狐, abc.appendChild(document.createTextNode("*{-webkit-filter:grayscale(0)}")); abc.appendChild(document.createTextNode("*{-webkit-filter:none!important;}")); abc.appendChild(document.createTextNode("*{-o-filter:none!important;}")); abc.appendChild(document.createTextNode("*{-moz-filter:none!important;}")); abc.appendChild(document.createTextNode("*{-ms-filter:none!important;}")); // 增加一个恢复黑白效果的功能按钮,位于屏幕左边 // window.onload=function(){ // var abcd =document.createElement('div'); // abcd.id='fuzhi'; // abcd.textContent='黑白'; // document.getElementsByTagName('body')[0].appendChild(abcd); // var xxx=document.createElement('style'); // xxx.type = 'text/css'; // xxx.innerText='#fuzhi{padding: 10px; background: rgba(0,0,0,0.5);position: fixed; left:0; top: 40%;cursor: pointer;color: #fff; z-index: 99999;}'; // document.getElementsByTagName('head')[0].appendChild(xxx) // abcd.onclick=function(){ // var ddd=document.getElementById('huifu'); // ddd.innerText=''; // } // } // 非专业前端,自己理解着写的,兄弟们有问题请指教 })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址