Overmiind / Puppeteer-sharp-extra

Plugin framework for PuppeteerSharp
MIT License
183 stars 51 forks source link

Added support to remove a StealthPlugin evasion by type #32

Closed fergus3000 closed 2 years ago

fergus3000 commented 2 years ago

Proposed solution to #29 - the need to remove certain evasions from the StealthPlugin (the content window evasion was causing problems for me)

I added a method to the StealthPlugin - RemoveEvasionByType() to remove an evasion. Had to change the initialization of the evasions list so that the list of standard evasions is populated in the constructor. Then the expressionbody for GetDependencies is returning this private list.

I was unable to get the test project to build due to some missing keys on the Captcha stuff, but I have manually tested the solution and it works for me at least.

I hope it's useful, and thank you for creating this package.

Overmiind commented 2 years ago

Hi, thank you for your pull request I will create a new package version with these changes on the weekend