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 9, 2020
1 parent e10e23f commit e5ffc4b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,20 @@ if (_GM && _GM.registerMenuCommand && _GM.openInTab) {
)
}

function getRandL () {
return String.fromCharCode(97 + Math.floor(Math.random() * 26))
}

// script loader
new Promise(resolve => {
const id = '' + Math.random();
w[id] = resolve;

const stackN = 9
const loaderIntro = '(function a(){'.repeat(stackN)
let loaderIntro = ''
for (let i = 0; i < stackN; i++) {
loaderIntro += `(function ${getRandL()}(){`
}
const loaderOutro = '})()'.repeat(stackN)
const mockUrl = "https://c.amazon-adsystem.com/aax2/apstag.js"

Expand Down

0 comments on commit e5ffc4b

Please sign in to comment.