您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自動將 MAX_FILE_SIZE 改為更大數值(例如 1GB)
// ==UserScript== // @name komica修改上傳檔案大小限制為10MB // @namespace http://tampermonkey.net/ // @version 1.0 // @description 自動將 MAX_FILE_SIZE 改為更大數值(例如 1GB) // @author chatgpt // @match https://*.komica1.org/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const newLimit = 1024 * 1024 * 1024; // 1GB function updateMaxFileSize() { const el = document.querySelector('input[name="MAX_FILE_SIZE"]'); if (el) { el.value = newLimit; console.log(`[Tampermonkey] 已將 MAX_FILE_SIZE 改為 ${newLimit} bytes`); } } // 初始執行一次 updateMaxFileSize(); // 偵測 DOM 是否動態載入,有新節點就重新修改 const observer = new MutationObserver((mutationsList) => { for (const mutation of mutationsList) { if (mutation.type === 'childList') { updateMaxFileSize(); } } }); observer.observe(document.body, { childList: true, subtree: true }); })();