Greasy Fork is available in English.

稿定设计去水印

稿定设计去水印插件

// ==UserScript==
// @name         稿定设计去水印
// @namespace    https://github.com/maqi1520
// @version      0.81
// @description  稿定设计去水印插件
// @author       maqibin
// @match        https://*.gaoding.com/design*
// @match        https://*.gaoding.com/design/video?id=*
// @match        https://*.gaoding.com/odyssey/design*
// @match        https://*.gaoding.com/editor/design*
// @match        https://g.h5gd.com/p/*
// @icon         https://www.gaoding.com/favicon.ico
// @grant        GM_addStyle
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
GM_addStyle(`.editor-watermark{position:static!important;z-index:-999!important} .editor-background,.editor-element{z-index:10}  .player .watermark{opacity:0} .remove-watermark-tip,.editor-remove-watermark,.remove-watermark{display:none!important}`);
const button = document.createElement("button");
button.innerText = "去水印";
button.className = "editor-right-actions__button gda-btn gda-btn-secondary";
button.onclick = () => {
  document.querySelector("div.remove-watermark").style.display = "none";
  document.querySelectorAll(".editor-watermark").forEach((item) => {
    item.style.zIndex = -999;
  });
};

setTimeout(() => {
  document
    .querySelector(".editor-right-actions")
    .insertBefore(
      button,
      document.querySelector(".editor-right-actions__button")
    );
}, 3000);


})();