您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove 12 Hr Offline Idle Limit from Melvor Idle
// ==UserScript== // @name Melvor Idle Offline Limit Remover // @namespace https://zeldo.net // @version 0.1 // @description Remove 12 Hr Offline Idle Limit from Melvor Idle // @author Zeldo // @match https://*.melvoridle.com/* // @grant none // ==/UserScript== (function() { 'use strict'; function Main() { if (typeof updateOffline === "undefined") { return; } console.log("Attempting to modify Main.js updateOffline"); var UpdateOfflineNew = updateOffline.toString(); UpdateOfflineNew = UpdateOfflineNew.replace("if (timeDiff > 43200000) timeDiff = 43200000;", "let hoursGone = (timeDiff / 1000 / 60 / 60);"); if (UpdateOfflineNew == updateOffline.toString()) { console.error("Failed to find 12 hour limitor"); return; } UpdateOfflineNew = UpdateOfflineNew.replace(/if \(timeGone >= 12\) goneFor \+= .+?\r\n/i, ""); UpdateOfflineNew = UpdateOfflineNew.replace(/if \(timeGone >= 12\) goneFor \+= .+?\n/i, ""); if (UpdateOfflineNew == updateOffline.toString()) { console.error("Failed to find 12 hour message for removal."); } UpdateOfflineNew = UpdateOfflineNew.replace("Loading your offline progress.", "Loading \' + ((hoursGone > 1) ? (Math.floor(hoursGone) + \" hours\") : Math.floor(hoursGone * 60) + \" minutes\") + \' of offline progress."); if (UpdateOfflineNew == updateOffline.toString()) { console.error("Failed to find 12 hour message for removal."); } updateOffline = eval("(" + UpdateOfflineNew + ")"); console.log("Successfully removed 12 hour limit."); } var script = document.createElement('script'); script.textContent = `try {(${Main})();} catch (e) {console.error(e);}`; document.body.appendChild(script).parentNode.removeChild(script); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址