mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
fix cloudflare captcha
This commit is contained in:
parent
e40845b8ee
commit
276ecde729
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user