您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Free download + delete watermark
// ==UserScript== // @name AILab tools for free // @description Free download + delete watermark // @version 1.0.1 // @match *://www.ailabtools.com/image-editor/* // @run-at document-idle // @license N/A // @namespace https://greasyfork.org/users/1205341 // ==/UserScript== document.getElementsByClassName("editor")[0].remove(); const button = document.createElement('button'); const textNode = document.createTextNode("Download free"); button.appendChild(textNode); document.body.insertBefore(button, document.body.firstChild); var canvas = document.getElementsByClassName("lower-canvas")[0]; button.addEventListener("click", function() { var imgData = canvas.toDataURL("image/png"); var a = document.createElement('a'); a.href = imgData; a.download = 'image.png'; a.click(); });