fix cloudflare captcha

This commit is contained in:
EzioTheDeadPoet 2023-11-05 01:11:22 +01:00
parent e40845b8ee
commit 276ecde729

View File

@ -21,7 +21,7 @@ public class ManualDownloadHandler : BrowserWindowViewModel
var task = WaitForDownloadUri(token, async () =>
{
await RunJavaScript("Array.from(document.getElementsByTagName(\"iframe\")).forEach(f => {if (f.title != \"SP Consent Message\") f.remove()})");
await RunJavaScript("Array.from(document.getElementsByTagName(\"iframe\")).forEach(f => {if (f.title != \"SP Consent Message\" && !f.src.includes(\"challenges.cloudflare.com\")) f.remove()})");
});
await NavigateTo(md.Url);
var uri = await task;