fu*k黑白滤镜

去掉网站的黑白滤镜!

// ==UserScript==
// @name         fu*k黑白滤镜
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  去掉网站的黑白滤镜!
// @author       You
// @match        *://**/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    function removeGreyscale() {
        document.getElementsByTagName('html')[0].style.filter = "grayscale(0)"
        document.getElementsByTagName('html')[0].style.filter = "grayscale(0)"
        document.getElementsByTagName('body')[0].style.webkitfilter = "grayscale(0)"
        document.getElementsByTagName('body')[0].style.webkitfilter = "grayscale(0)"
    }

    setTimeout(removeGreyscale, 500)
})();