您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the 'Buy me a coffee' prompt
// ==UserScript== // @name AI-MIDI 'Buy me a coffee' disabler // @namespace http://tampermonkey.net/ // @version 1.6 // @description Removes the 'Buy me a coffee' prompt // @author TheApkDownloader // @icon https://ai-midi.com/favicon.png // @license GNU GPLv3 // @match https://ai-midi.com/* // @grant none // ==/UserScript== (function() { 'use strict'; function removeModalAndEnableScroll() { const modal = document.querySelector('.MuiModal-root.css-8ndowl'); if (modal) { modal.remove(); } document.body.style.overflow = 'auto'; } const observer = new MutationObserver(() => { removeModalAndEnableScroll(); }); observer.observe(document.body, { childList: true, subtree: true }); removeModalAndEnableScroll(); const originalFetch = window.fetch; window.fetch = async function(...args) { const response = await originalFetch(...args); const clone = response.clone(); clone.text().then(text => { if (args[0].includes('buy_me_a_coffee.png')) { location.reload(); } }); return response; }; })();