Greasy Fork

来自缓存

新版Canvas(2024.8)视频水印消除

fuck the watermark

// ==UserScript==
// @name         新版Canvas(2024.8)视频水印消除
// @namespace    http://tampermonkey.net/
// @version      2024-08-23
// @description  fuck the watermark
// @author       Teruteru
// @match        https://v.sjtu.edu.cn/jy-application-canvas-sjtu-ui/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=sjtu.edu.cn
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';

    const addGlobalStyle = (css) => {
        const style = document.createElement('style');
        style.appendChild(document.createTextNode(css));
        document.head.appendChild(style);
        return style;
    };

    addGlobalStyle("div#watermark-service-00001 {display: none !important; }");
    addGlobalStyle("div#watermark-service-00002 {display: none !important; }");
})();