Greasy Fork

Greasy Fork is available in English.

隐藏微信文档水印,清爽阅读体验

自动隐藏微信文档中的水印,告别烦人水印,专注阅读

当前为 2024-11-30 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         隐藏微信文档水印,清爽阅读体验
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  自动隐藏微信文档中的水印,告别烦人水印,专注阅读
// @author       You
// @match        https://doc.weixin.qq.com/*
// @grant        none
// @license      MIT
// ==/UserScript==


(function() {
    'use strict';

    // Execute after the page has fully loaded
    window.addEventListener('load', function() {
        console.log('Page has loaded, waiting for 5 seconds...');
        
        setTimeout(function() {
            console.log('5 seconds have passed, starting to search for watermark container...');
            
            const watermarkContainer = document.getElementById('__watermark_container_id');
            if (watermarkContainer) {
                console.log('Watermark container found, hiding it...');
                watermarkContainer.style.display = 'none';
                console.log('Watermark container has been hidden');
            } else {
                console.log('Watermark container not found');
            }
        }, 1000);  // Wait for 5 seconds before executing
    });
})();