Greasy Fork

Greasy Fork is available in English.

Remove lark watermark | 移除飞书网页水印

移除飞书文档、工作台水印

目前为 2023-04-20 提交的版本。查看 最新版本

// ==UserScript==
// @name        Remove lark watermark | 移除飞书网页水印
// @description 移除飞书文档、工作台水印
// @version     0.4.1
// @license     The Unlicense
// @author      lbb00
// @homepage    https://github.com/lbb00/remove-feishu-watermark
// @match       https://*.feishu.cn/*
// @match       https://*.larksuite.com/*
// @run-at      document-start
// @grant       GM_addStyle
// @namespace http://greasyfork.icu/users/793340
// ==/UserScript==

// global
GM_addStyle('[class*="watermark"]{opacity: 0;}')

// 飞书文档
GM_addStyle('.ssrWaterMark{opacity: 0;}')

// 工作台
GM_addStyle('#watermark-cache-container{opacity: 0;}')
GM_addStyle('body>div[style*="inset: 0px;"]:not(:has(*)){opacity: 0;}')

// fixed for https://github.com/lbb00/remove-feishu-watermark/issues/3
GM_addStyle('body>div[style*="position: fixed"]:not(:has(*)){opacity: 0;}') // for readonly
GM_addStyle('body>div>div>div>div.suite-clear[style*="position: fixed"]:not(:has(*)){opacity: 0;}') // for editing