mirror of
https://github.com/lukaszraczylo/mcp-captcharesolver.git
synced 2026-10-16 01:07:54 +00:00
chore(stealth): remove orphaned static evasions.js superseded by template
This commit is contained in:
@@ -1,25 +0,0 @@
|
|||||||
(() => {
|
|
||||||
// navigator.webdriver
|
|
||||||
Object.defineProperty(navigator, 'webdriver', { get: () => undefined });
|
|
||||||
// languages
|
|
||||||
Object.defineProperty(navigator, 'languages', { get: () => ['en-US', 'en'] });
|
|
||||||
// plugins (non-empty)
|
|
||||||
Object.defineProperty(navigator, 'plugins', { get: () => [1, 2, 3, 4, 5] });
|
|
||||||
// chrome runtime stub
|
|
||||||
window.chrome = window.chrome || { runtime: {} };
|
|
||||||
// permissions query consistency
|
|
||||||
const origQuery = window.navigator.permissions && window.navigator.permissions.query;
|
|
||||||
if (origQuery) {
|
|
||||||
window.navigator.permissions.query = (params) =>
|
|
||||||
params && params.name === 'notifications'
|
|
||||||
? Promise.resolve({ state: Notification.permission })
|
|
||||||
: origQuery(params);
|
|
||||||
}
|
|
||||||
// WebGL vendor/renderer spoof
|
|
||||||
const getParam = WebGLRenderingContext.prototype.getParameter;
|
|
||||||
WebGLRenderingContext.prototype.getParameter = function (p) {
|
|
||||||
if (p === 37445) return 'Google Inc.'; // UNMASKED_VENDOR_WEBGL
|
|
||||||
if (p === 37446) return 'ANGLE (Generic GPU)'; // UNMASKED_RENDERER_WEBGL
|
|
||||||
return getParam.call(this, p);
|
|
||||||
};
|
|
||||||
})();
|
|
||||||
Reference in New Issue
Block a user