Spaces:
Sleeping
Sleeping
Update src/index.ts
Browse files- src/index.ts +2 -41
src/index.ts
CHANGED
@@ -70,47 +70,8 @@ async function initGensparkPage(cookies?: any[]) {
|
|
70 |
});
|
71 |
}
|
72 |
|
73 |
-
|
74 |
-
|
75 |
-
get: () => ['en-US', 'en', 'zh-CN'],
|
76 |
-
});
|
77 |
-
|
78 |
-
// 添加假的插件信息
|
79 |
-
Object.defineProperty(navigator, 'plugins', {
|
80 |
-
get: () => {
|
81 |
-
return [
|
82 |
-
{
|
83 |
-
description: "Portable Document Format",
|
84 |
-
filename: "internal-pdf-viewer",
|
85 |
-
name: "Chrome PDF Plugin"
|
86 |
-
},
|
87 |
-
{
|
88 |
-
description: "Portable Document Format",
|
89 |
-
filename: "mhjfbmdgcfjbbpaeojofohoefgiehjai",
|
90 |
-
name: "Chrome PDF Viewer"
|
91 |
-
},
|
92 |
-
{
|
93 |
-
description: "Widevine Content Decryption Module",
|
94 |
-
filename: "widevinecdmadapter.dll",
|
95 |
-
name: "Widevine Content Decryption Module"
|
96 |
-
}
|
97 |
-
];
|
98 |
-
},
|
99 |
-
});
|
100 |
-
|
101 |
-
// 创建假的 WebGL 渲染器信息
|
102 |
-
const getParameter = WebGLRenderingContext.prototype.getParameter;
|
103 |
-
WebGLRenderingContext.prototype.getParameter = function (parameter) {
|
104 |
-
// UNMASKED_VENDOR_WEBGL
|
105 |
-
if (parameter === 37445) {
|
106 |
-
return 'Intel Inc.';
|
107 |
-
}
|
108 |
-
// UNMASKED_RENDERER_WEBGL
|
109 |
-
if (parameter === 37446) {
|
110 |
-
return 'Intel Iris OpenGL Engine';
|
111 |
-
}
|
112 |
-
return getParameter.call(this, parameter);
|
113 |
-
};
|
114 |
});
|
115 |
|
116 |
// 首次加载页面
|
|
|
70 |
});
|
71 |
}
|
72 |
|
73 |
+
|
74 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
});
|
76 |
|
77 |
// 首次加载页面
|