SZU公文通去水印

Remove watermark from the page

目前為 2023-11-24 提交的版本,檢視 最新版本

// ==UserScript==
// @name         SZU公文通去水印
// @namespace    https://www1.szu.edu.cn/board/
// @version      0.1
// @description  Remove watermark from the page
// @author       YuChangfeng
// @match        *://www1.szu.edu.cn/board/*
// @grant        none
// @license MIT
// ==/UserScript==
(function() {
    'use strict';

    function removeWatermark() {
        var watermarkParent = document.body;
        var watermarkElements = document.querySelectorAll('.mark_div');

        watermarkElements.forEach(function(element) {
            watermarkParent.removeChild(element);
        });
    }

    function removeElementsWithColor() {
        var elementsWithColor = document.querySelectorAll('[color="#F8F8F8"]');

        elementsWithColor.forEach(function(element) {
            element.parentNode.removeChild(element);
        });
    }

    // Wait for the page to fully load before removing watermark and elements with color
    window.onload = function() {
        setTimeout(function() {
            removeWatermark();
            removeElementsWithColor();
        }, 2000);
    };
})();

QingJ © 2025

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