Eval Packet Overrider

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://gf.qytechs.cn/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)`)
                   );
  }
});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址