Skip to content

Commit 1828320

Browse files
authored
Merge pull request #56 from Erol444/develop
Develop
2 parents 71669fc + ef3e352 commit 1828320

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

TbsCore/Core/WebBrowserInfo.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ private void SetupChromeDriver(Access.Access access, string username, string ser
100100
//options.AddArguments("--aggressive-cache-discard");
101101
//options.AddArguments("--arc-disable-gms-core-cache");
102102

103+
// So websites (Travian) can't detect the bot
104+
options.AddExcludedArgument("enable-automation");
105+
options.AddAdditionalCapability("useAutomationExtension", false);
106+
options.AddArgument("--disable-blink-features=AutomationControlled");
107+
options.AddArgument("--disable-features=UserAgentClientHint");
108+
options.AddArguments("--disable-logging");
109+
options.AddArguments("--disable-infobars");
110+
103111
// Mute audio because of the Ads
104112
options.AddArguments("--mute-audio");
105113

TravBotSharp/Forms/InactiveFinder.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
using System;
2-
using System.Net;
3-
using System.Linq;
42
using System.Drawing;
5-
using System.Threading.Tasks;
63
using System.Collections.Generic;
74
using System.Windows.Forms;
8-
9-
using RestSharp;
10-
115
using TbsCore.Models;
126
using TbsCore.Models.VillageModels;
137
using TbsCore.Models.AccModels;

0 commit comments

Comments
 (0)