禁用微博首页黑白特效

禁用微博首页部分黑白特效

// ==UserScript==
// @name            禁用微博首页黑白特效
// @name:en         Disable grayscale on Weibo.com
// @namespace       http://neet.coffee/
// @version         0.32
// @description     禁用微博首页部分黑白特效
// @description:en  Disable the grayscale effects on weibo.com
// @author          Neet-Nestor
// @license         MIT
// @match           *://*.weibo.com/*
// @icon            https://weibo.com/favicon.ico
// @grant           none
// ==/UserScript==

(function() {
    'use strict';

    document.querySelectorAll('.grayTheme').forEach((ele) => {
        ele.classList.remove('grayTheme');
    });

    // Periodically check for any more grayTheme to remove
    setInterval(() => {
        document.querySelectorAll('.grayTheme').forEach((ele) => {
            ele.classList.remove('grayTheme');
        });
    }, 1000);
})();