Greasy Fork

还我色彩

拒绝灰色页面!

目前为 2022-11-30 提交的版本。查看 最新版本

// ==UserScript==
// @name         还我色彩
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  拒绝灰色页面!
// @author       Masahiro
// @match        *://*/*
// @license MIT
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var html = document.getElementsByTagName("html")[0];
    html.style.filter = 'none';
    html.style.webkitFilter = 'none';
    html.classList.remove("gray");
    var body = document.getElementsByTagName("body")[0];
    body.style.filter = 'none';
    body.style.webkitFilter = 'none';
    body.classList.remove("gray");
    var tmall = document.getElementsByClassName("rax-view-v2")
    if(tmall.length > 0) {
        var tmallBody = tmall.item(0);
        tmallBody.style.filter = 'none';
        tmallBody.style.webkitFilter = 'none';
        tmallBody.classList.remove("gray");
    }
})();