您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Offline progress is no longer limited to 18h
// ==UserScript== // @name Melvor Unlimited Offline // @namespace http://tampermonkey.net/ // @version 0.0.3 // @description Offline progress is no longer limited to 18h // @author GMiclotte // @include https://melvoridle.com/* // @include https://*.melvoridle.com/* // @exclude https://melvoridle.com/index.php // @exclude https://*.melvoridle.com/index.php // @exclude https://wiki.melvoridle.com/* // @exclude https://*.wiki.melvoridle.com/* // @inject-into page // @noframes // @grant none // ==/UserScript== ((main) => { const script = document.createElement('script'); script.textContent = `try { (${main})(); } catch (e) { console.log(e); }`; document.body.appendChild(script).parentNode.removeChild(script); })(() => { setTimeout(() => { function patchCode(code, match, replacement) { const codeString = code .toString() .replace(match, replacement) .replace(/^function (\w+)/, "window.$1 = function"); eval(codeString); } // remove limit from getOfflineTimeDiff function then overwrite patchCode( getOfflineTimeDiff, '64800000', 'Infinity', ); // "fix" issue with sample_from_binomial patchCode( sample_from_binomial, /(let binomial[^;]+;)/, "$1if (binomial.length > numberTrials) return Math.floor(numberTrials * chance);" ); }, 100); });