From baa2be3ca30633b10894b3517feccdacf20c76d9 Mon Sep 17 00:00:00 2001 From: Xmader Date: Sat, 5 Dec 2020 18:53:16 -0500 Subject: [PATCH] fix: anti-detection modify error stack script --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 3c7cc72..231ec46 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -83,7 +83,7 @@ export default [ format: "iife", sourcemap: false, banner: getBannerText, - intro: "new Promise(resolve=>{const id=''+Math.random();(typeof unsafeWindow=='object'?unsafeWindow:window)[id]=resolve;setTimeout(`(function a(){(function a(){(function a(){(function a(){(function a(){(function a(){(function a(){(function a(){(function a(){window['${id}'](new Image())})()})()})()})()})()})()})()})()})()`/*size of error stack is 10*/)}).then(d=>{d.style.display='none';d.src='data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';d.once=false;d.setAttribute('onload','if(this.once)return;this.once=true;this.remove();(' + function a () {", + intro: "new Promise(resolve=>{const id=''+Math.random();(typeof unsafeWindow=='object'?unsafeWindow:window)[id]=resolve;setTimeout(`(function a(){window['${id}'](new Image())})()//# sourceURL=${location.href}`)}).then(d=>{d.style.display='none';d.src='data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';d.once=false;d.setAttribute('onload','if(this.once)return;this.once=true;this.remove();(' + function a () {", outro: "}.toString() + ')()');document.body.prepend(d)})" }, plugins,