
学编程, 自己去除。 油猴插件,自己装。 百度灰叫 big-event-gray. 自己搞吧. 很烦很惭愧,一天到晚就是些微小的工作。
// ==UserScript== // @name 色彩 // @namespace http://tampermonkey.net/ // @version 0.1 // @description b 站、微博、douyu 、网易云 加入颜色。 // @author wallace // @match *www.douyu.com/* // @match *www.bilibili.com/* // @match *://weibo.com/* // @match *music.163.com/* // @grant none // ==/UserScript== (function() { 'use strict'; var elems = document.querySelector(':root'); if(top.window.location.href.indexOf("weibo.com") > -1){ var els = document.querySelectorAll(".grayTheme"); [].forEach.call(els, function(el) { el.className = el.className.replace(/\grayTheme\b/, "mmm");}); return } if(top.window.location.href.indexOf("music.163.com") > -1){ elems.style.webkitFilter = "grayscale(0)"; elems.style.filter = "grayscale(0)"; return } if(top.window.location.href.indexOf("bilibili.com") > -1){ elems.classList.remove("gray"); return } if(top.window.location.href.indexOf("douyu.com") > -1){ elems.classList.remove("grayCtrl"); return } })(); 1 daiv 2022-11-30 22:50:16 +08:00 match 改成 include 才能用,为啥? |
2 gogogo1203 OP |
3 qdsearoc 2022-11-30 23:30:08 +08:00 我的第一个油猴脚本,今天多哈了一瓶酒 |
4 lchynn 2022-12-01 08:52:13 +08:00 CSS 加一句就可以了 * {filter: none !important} |
5 mauve PRO 微博这样会更彻底 if (top.window.location.ref.indexOf("weibo.com") > -1) { document.querySelectorAll('style')[3].remove() return } |
6 Metre 2022-12-01 09:52:30 +08:00 汶川大地震 劲舞团? |
7 pkwenda 2022-12-01 14:07:19 +08:00 听说要黑白到 12.07 日 |
8 seelight 2022-12-01 19:43:48 +08:00 给楼主的微小工作点赞, 但不建议分享出来, v2 确是法外之地但免不了有心人的"劲舞团". |
9 bigLinux 2022-12-02 10:40:58 +08:00 感谢楼主,彩色的好看 |