Skip to content

Commit

Permalink
feat: anti detecting-using-error-stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Dec 4, 2020
1 parent 9ee64ab commit b9d5ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit b9d5ffa

Please sign in to comment.