您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Overrides eval packet to disable debugger and increase game's speed
当前为
- // ==UserScript==
- // @name Eval Packet Overrider
- // @version 1.7
- // @description Overrides eval packet to disable debugger and increase game's speed
- // @author don_shädaman
- // @match https://diep.io
- // @match https://florr.io
- // @grant none
- // @namespace https://greasyfork.org/users/422425
- // ==/UserScript==
- window.Function = new Proxy(window.Function, {
- construct: function(to, args) {
- let a = args[0].match(/(\w+)=function\(\)/)[1];
- let b = args[0].match(/function\(\w+,(\w+)\){var (\w+)/);
- return new to(args[0]
- .replace(/if\(!window\).*(\w{1,2}\[\w{1,2}\(-?'.{1,5}','.{1,5}'\)(?:\+'.{1,3}')?\])\((\w{1,2}),(\w{1,2}\[\w{1,2}\(-?'.{1,5}','.{1,5}'\)(?:\+'.{1,3}')?\])\);};.*/,`$1($2,$3);};`)
- .replace(/function \w+\(\w+\){.*?}(?=\w)(?!else)(?!continue)(?!break)/,"")
- .replace(/,window.*?\(\)(?=;)/,"")
- .replace(new RegExp(`,${a}=function.*?${a}\\(\\)`),`;${b[2]}(${b[1]}+1)`)
- );
- }
- });