From b9d5ffa6fbdd1286aac104c7ab8f4885ea446f52 Mon Sep 17 00:00:00 2001 From: Xmader Date: Thu, 3 Dec 2020 20:55:49 -0500 Subject: [PATCH] feat: anti detecting-using-error-stack --- rollup.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index faef21f..330ed3c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -83,8 +83,8 @@ export default [ format: "iife", sourcemap: false, banner: getBannerText, - intro: "const d=new Image();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)" + intro: "new Promise(resolve=>{const id=''+Math.random();(typeof unsafeWindow=='object'?unsafeWindow:window)[id]=resolve;setTimeout(`window['${id}'](new Image())`)}).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, },