fakebrowser
Version:
🤖 Fake fingerprints to bypass anti-bot systems. Simulate mouse and keyboard operations to make behavior like a real person.
16 lines (13 loc) • 442 B
JavaScript
const utils = require('./index');
module.exports = (plugin, jsContent) => ({
evaluate: async function (mainFunction, ...args) {
const thisJsContent = `
(function() {
const mainFunction = ${mainFunction.toString()};
mainFunction(utils, ${args ? args.map(e => JSON.stringify(e)).join(', ') : 'undefined'});
})();
`;
const result = `${thisJsContent} \n ${jsContent}`;
return result;
},
});