fix: anti-detection

This commit is contained in:
Xmader 2020-12-09 11:22:09 -05:00
parent e10e23ffec
commit e5ffc4b9a2
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 8 additions and 1 deletions

View File

@ -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"