Easyv水印隐藏

Hide the watermark on the page

目前为 2024-09-25 提交的版本。查看 最新版本

// ==UserScript==
// @name         Easyv水印隐藏
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Hide the watermark on the page
// @author       Your Name
// @match        https://workspace.easyv.cloud/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // 创建一个观察者来监测 DOM 变化
    const observer = new MutationObserver((mutations) => {
        mutations.forEach((mutation) => {
            const watermark = document.querySelector('.index__canvas--Za5X5');
            if (watermark) {
                watermark.style.display = 'none'; // 隐藏水印
            }
        });
    });

    // 开始观察页面的变化
    observer.observe(document.body, { childList: true, subtree: true });

    // 还可以在页面加载时隐藏水印
    window.addEventListener('load', function() {
        const watermark = document.querySelector('.index__canvas--Za5X5');
        if (watermark) {
            watermark.style.display = 'none'; // 隐藏水印
        }
    });
})();