默哀模式

Convert all images on a webpage to black and white

目前為 2024-11-19 提交的版本,檢視 最新版本

// ==UserScript==
// @name         默哀模式
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Convert all images on a webpage to black and white
// @author       YourName
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Apply grayscale filter to all images
    const style = document.createElement('style');
    style.innerHTML = `
        img {
            filter: grayscale(100%) !important;
        }
    `;
    document.head.appendChild(style);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址