File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export function distilCaptcha($: CheerioAPI): boolean {
7
7
8
8
export function recaptcha ( $ : CheerioAPI ) : boolean {
9
9
return $ ( '#recaptcha' ) . length > 0
10
- || $ ( 'iframe[src*="/recaptcha/"]' ) . length > 0 ;
10
+ || $ ( 'iframe[src*="/recaptcha/"]:not([width="0"][height="0"]) ' ) . length > 0 ;
11
11
}
12
12
13
13
export function hCaptcha ( $ : CheerioAPI ) : boolean {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export function distilCaptcha($: CheerioAPI): boolean {
7
7
8
8
export function recaptcha ( $ : CheerioAPI ) : boolean {
9
9
return $ ( '#recaptcha' ) . length > 0
10
- || $ ( 'iframe[src*="/recaptcha/"]' ) . length > 0 ;
10
+ || $ ( 'iframe[src*="/recaptcha/"]:not([width="0"][height="0"]) ' ) . length > 0 ;
11
11
}
12
12
13
13
export function hCaptcha ( $ : CheerioAPI ) : boolean {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export function distilCaptcha($: CheerioAPI): boolean {
7
7
8
8
export function recaptcha ( $ : CheerioAPI ) : boolean {
9
9
return $ ( '#recaptcha' ) . length > 0
10
- || $ ( 'iframe[src*="/recaptcha/"]' ) . length > 0 ;
10
+ || $ ( 'iframe[src*="/recaptcha/"]:not([width="0"][height="0"]) ' ) . length > 0 ;
11
11
}
12
12
13
13
export function hCaptcha ( $ : CheerioAPI ) : boolean {
@@ -25,4 +25,4 @@ export function testHtml($: CheerioAPI) {
25
25
recaptcha : recaptcha ( $ ) ,
26
26
hCaptcha : hCaptcha ( $ ) ,
27
27
} ;
28
- }
28
+ }
You can’t perform that action at this time.
0 commit comments