哔哩哔哩、爱奇艺去黑白

bilibili_remove_gray_func

当前为 2022-12-02 提交的版本,查看 最新版本

// ==UserScript==
// @name         哔哩哔哩、爱奇艺去黑白
// @namespace    http://tampermonkey.net/
// @version      0.0.3
// @description bilibili_remove_gray_func
// @author       You
// @match        https://www.bilibili.com/
// @match        https://www.iqiyi.com/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
// @grant        none
// @license     MIT
// ==/UserScript==

(function() {
    'use strict';

        setTimeout(()=>{
             if (window.location.href.indexOf("www.bilibili.com") > -1) {
            window.onload=()=>{
                document.querySelector("HTML").attributes.class.textContent=""
            }
        }
        if(window.location.href.indexOf("www.iqiyi.com") > -1){
            const addcss = `
         .gray{
         filter:grayscale(0%)
         }
         `
      const style = document.createElement('style');
        // 设置style属性

        console.log("gray nO1!")
        style.type = 'text/css';
        // 将 keyframes样式写入style内
        style.innerHTML = addcss;
        // 将style样式存放到head标签
        document.getElementsByTagName('body')[0].appendChild(style);}

        },100)



})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址