1稿定设计去水印

1稿定设计去水印插件

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         1稿定设计去水印
// @namespace    https://github.com/maqi1520
// @version      0.82
// @description  1稿定设计去水印插件
// @author       liangchaofei
// @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);
 
 
})();