Compare commits
No commits in common. "c2bb276c3de9401b78530d50d17ecdb5460e4ad8" and "77240ae18db785f17ec1cb8a960d3397596cc938" have entirely different histories.
c2bb276c3d
...
77240ae18d
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "real-debrid-downloader",
|
"name": "real-debrid-downloader",
|
||||||
"version": "1.6.77",
|
"version": "1.6.76",
|
||||||
"description": "Desktop downloader",
|
"description": "Desktop downloader",
|
||||||
"main": "build/main/main/main.js",
|
"main": "build/main/main/main.js",
|
||||||
"author": "Sucukdeluxe",
|
"author": "Sucukdeluxe",
|
||||||
|
|||||||
@ -192,24 +192,6 @@ export class BestDebridWebFallback {
|
|||||||
});
|
});
|
||||||
window.webContents.setUserAgent(BESTDEBRID_USER_AGENT);
|
window.webContents.setUserAgent(BESTDEBRID_USER_AGENT);
|
||||||
window.setMenuBarVisibility(false);
|
window.setMenuBarVisibility(false);
|
||||||
|
|
||||||
// Inject anti-fingerprint patches via CDP before any page JS runs
|
|
||||||
// This hides Electron-specific properties that Cloudflare Turnstile detects
|
|
||||||
try {
|
|
||||||
window.webContents.debugger.attach("1.3");
|
|
||||||
await window.webContents.debugger.sendCommand("Page.addScriptToEvaluateOnNewDocument", {
|
|
||||||
source: [
|
|
||||||
"Object.defineProperty(navigator, 'webdriver', { get: () => false });",
|
|
||||||
"Object.defineProperty(navigator, 'plugins', { get: () => [1, 2, 3, 4, 5] });",
|
|
||||||
"Object.defineProperty(navigator, 'languages', { get: () => ['de-DE', 'de', 'en-US', 'en'] });",
|
|
||||||
"window.chrome = { runtime: {}, loadTimes: function() {}, csi: function() {} };"
|
|
||||||
].join("\n")
|
|
||||||
});
|
|
||||||
window.webContents.debugger.detach();
|
|
||||||
} catch {
|
|
||||||
// CDP not available — continue without patches
|
|
||||||
}
|
|
||||||
|
|
||||||
window.on("closed", () => {
|
window.on("closed", () => {
|
||||||
if (this.loginWindow === window) {
|
if (this.loginWindow === window) {
|
||||||
this.loginWindow = null;
|
this.loginWindow = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user