Skip to content

Commit

Permalink
fix: anti-detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Dec 4, 2020
1 parent 73ad861 commit 48c41d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(`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 () {",
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 () {",
outro: "}.toString() + ')()');document.body.prepend(d)})"
},
plugins,
Expand Down

0 comments on commit 48c41d1

Please sign in to comment.