您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Override Download button functionality
// ==UserScript== // @name AIease Unlock Download - Bypass Account // @namespace Violentmonkey Scripts // @version 1.0.1 // @description Override Download button functionality // @author sneffel // @match https://www.aiease.ai/app/apply-ai-filters // @grant GM_download // ==/UserScript== (function() { 'use strict'; const handleDownloadButton = (button) => { const newButton = button.cloneNode(true); button.replaceWith(newButton); newButton.addEventListener('click', (e) => { e.stopImmediatePropagation(); downloadImage(); }); }; const observer = new MutationObserver((mutationsList, observer) => { mutationsList.forEach(mutation => { const downloadDiv = Array.from(document.querySelectorAll('div')).find(el => el.textContent.trim() === "Download"); if (downloadDiv && !downloadDiv.dataset.handled) { downloadDiv.dataset.handled = 'true'; handleDownloadButton(downloadDiv); observer.disconnect(); // Stop observing after handling the element } }); }); observer.observe(document.body, { childList: true, subtree: true }); function downloadImage() { console.log("downloadImage()") const img = document.querySelector('img[src^="https://pub-static.aiease.ai"]'); if (img) { const url = new URL(img.src); const filename = url.pathname.split('/').pop(); GM_download(img.src, filename); } } })();