Web With Color

上帝说:要有颜色

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Web With Color
// @namespace    http://tampermonkey.net/
// @version      0.5
// @description  上帝说:要有颜色
// @author       7nc
// @match        *://www.gamersky.com/*
// @match        *://weibo.com/*
// @match        *://www.zhihu.com/*
// @match        *://www.bilibili.com/*
// @match        *://www.163.com/*
// @match        *://www.sohu.com/*
// @match        *://www.ifeng.com/*
// @match        *://xueqiu.com/*
// @match        *://www.mysmth.net/*
// @match        *://tieba.baidu.com/*
// @match        *://www.taobao.com/*
// @match        *://www.tmall.com/*
// @match        *://www.jd.com/*
// @match        *://www.aliyun.com/*
// @run-at       document-end
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    document.getElementsByTagName('html')[0].style.webkitFilter='grayscale(0%)';

    var wbList=document.getElementsByClassName("grayTheme")
    if(wbList.length>0){
        wbList.forEach(function (elem) {
            elem.classList.remove("grayTheme")
        });
    }


})();