add hcaptcha to captcha detection

(cherry picked from commit 7c01082270aa98a4840af3b0c1bfd6534570682d)
This commit is contained in:
Rani Sargees 2020-06-11 21:49:27 -04:00 committed by Jobobby04
parent 3822eea20a
commit b90a2ab22d

View File

@ -10,7 +10,7 @@ val CAPTCHA_DETECTION_PATCH: EHInterceptor = { request, response, sourceId ->
if (!response.isSuccessful) {
response.interceptAsHtml { doc ->
// Find captcha
if (doc.getElementsByClass("g-recaptcha").isNotEmpty()) {
if (doc.getElementsByClass("g-recaptcha").isNotEmpty() || doc.getElementsByClass("h-captcha").isNotEmpty()) {
// Found it, allow the user to solve this thing
BrowserActionActivity.launchUniversal(
Injekt.get<Application>(),