mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-19 06:45:53 +08:00
fix: tricks applied by puppeteer-extra-plugin-stealth
This commit is contained in:
parent
1f4620deef
commit
4400bef95b
@ -221,8 +221,14 @@ const MUTATION_IDLE_WATCH = `
|
|||||||
})();
|
})();
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const DONT_MESS_WITH_THE_FUNDAMENTALS = `
|
||||||
|
delete Function.prototype.toString;
|
||||||
|
delete Function.prototype.bind.apply;
|
||||||
|
delete Function.prototype.bind.call;
|
||||||
|
`;
|
||||||
|
|
||||||
const SCRIPT_TO_INJECT_INTO_FRAME = `
|
const SCRIPT_TO_INJECT_INTO_FRAME = `
|
||||||
|
${DONT_MESS_WITH_THE_FUNDAMENTALS}
|
||||||
${READABILITY_JS}
|
${READABILITY_JS}
|
||||||
${SIMULATE_SCROLL}
|
${SIMULATE_SCROLL}
|
||||||
${MUTATION_IDLE_WATCH}
|
${MUTATION_IDLE_WATCH}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user