您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
脚本的描述信息!
当前为
// ==UserScript== // @name 去灰色脚本 // @namespace http://tampermonkey.net/ // @version 0.3 // @description 脚本的描述信息! // @author fuce // @license MIT // @match https://*/* // @match http://*/* // @require https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant GM_addStyle // ==/UserScript== // 添加 css 样式 function addStyle() { let css = ` html{ filter: grayscale(0%) !important; -webkit-filter: grayscale(0%) !important; -moz-filter: grayscale(0%) !important; -ms-filter: grayscale(0%) !important; -o-filter: grayscale(0%) !important; } body.big-event-gray #aging-tools-pc div[class^=item-wrap],body.big-event-gray #bottom_layer,body.big-event-gray #bottom_layer .tip-hover-panel,body.big-event-gray #form,body.big-event-gray #passport-login-pop,body.big-event-gray #s-hotsearch-wrapper,body.big-event-gray #s_content_1,body.big-event-gray #s_content_100,body.big-event-gray #s_menu_gurd,body.big-event-gray #s_side_wrapper,body.big-event-gray #u1,body.big-event-gray .advert-shrink,body.big-event-gray .bdlayer,body.big-event-gray .popup-advert,body.big-event-gray .s-ctner-menus .s-menu-item-underline,body.big-event-gray .s-menu-container,body.big-event-gray .s-news-rank-wrapper,body.big-event-gray .s-skin-container.skin-gray-event,body.big-event-gray .s-top-left-new.s-isindex-wrap,body.big-event-gray .under-searchbox-tips,body.big-event-gray div[class^=cards_pop] { filter: grayscale(0%) !important; -webkit-filter: grayscale(0%) !important; -moz-filter: grayscale(0%) !important; -ms-filter: grayscale(0%) !important; -o-filter: grayscale(0%) !important; } body.big-event-gray #head_wrapper .sam_search .s_btn, body.big-event-gray #su, body.big-event-gray .wrapper_new .s_btn_wr .s_btn { background-color: #4e6ef2; } ` GM_addStyle(css) } function baidu(){ if(window.location.host.indexOf("baidu")!=-1){ $("#lg img").each(function(each,a){ $(a).attr("src",$(a).attr("src").replaceAll("_gray","")); }); } } (function() { 'use strict'; baidu(); setTimeout(function(){ addStyle(); console.log("sssssssss"); },100) })();