reduced feishu document watermark appearance 淡化飞书文档水印

通过 css filter 让飞书文档的水印看上去不要明显到影响阅读,同时降低白点值。通过右下角 checkbox 开启。

目前為 2024-02-21 提交的版本,檢視 最新版本

// ==UserScript==
// @name         reduced feishu document watermark appearance 淡化飞书文档水印
// @namespace    http://tampermonkey.net/
// @version      2024-02-21 2
// @description  通过 css filter 让飞书文档的水印看上去不要明显到影响阅读,同时降低白点值。通过右下角 checkbox 开启。
// @author       haru
// @match        https://bytedance.larkoffice.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=larkoffice.com
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    const style = document.createElement('style');

    const checkbox = document.createElement('input');
    checkbox.type = "checkbox";
    checkbox.id = "controlScript";
    checkbox.style.cssText = `
        position: fixed;
        bottom: 20px;
        left: 20px;
        zIndex: 1000000;
    `;

    const checkboxContainer = document.createElement('div');
    checkboxContainer.style.cssText = `
        position: fixed;
        bottom: 20px;
        left: 20px;
        zIndex: 1000000;
    `;

    checkboxContainer.appendChild(checkbox);
    document.body.appendChild(checkboxContainer);

    checkbox.addEventListener('change', function() {
        if(this.checked) {
            style.innerHTML = `
                body {
                    filter: brightness(120%) contrast(90%);
                }
            `;
            document.head.appendChild(style);
        } else {
            style.innerHTML = "";
        }
    });

})();

QingJ © 2025

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