// ==UserScript== // @name reduced feishu document watermark appearance 淡化飞书文档水印 // @namespace http://tampermonkey.net/ // @version 2024-02-21 // @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 // @downloadURL none // ==/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: 10px; right: 10px; zIndex: 1000000; `; const checkboxContainer = document.createElement('div'); checkboxContainer.style.cssText = ` position: fixed; bottom: 10px; right: 10px; 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 = ""; } }); })();