Websim Ungrayscale Social Icons (Main Page Only)

Removes grayscale filter from social icons on the main websim.com page only

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Websim Ungrayscale Social Icons (Main Page Only)
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Removes grayscale filter from social icons on the main websim.com page only
// @author       1robots123
// @license MIT
// @match        https://websim.com/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function ungrayscale() {
        const el = document.querySelector('div.hidden.md\\:flex.gap-3.grayscale');
        if (el) {
            el.classList.remove('grayscale');
            console.log("✅ Ungrayscaled Websim social icons!");
        }
    }

    // Run once on load
    ungrayscale();

    // In case the site dynamically injects it after load
    const observer = new MutationObserver(() => ungrayscale());
    observer.observe(document.body, { childList: true, subtree: true });
})();