feat: anti detecting-using-error-stack

This commit is contained in:
Xmader 2020-12-03 20:55:49 -05:00
parent 9ee64ab7d5
commit b9d5ffa6fb
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 2 additions and 2 deletions

View File

@ -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,
},