Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BL-168 transfer fork to wstransfers account #1

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# puppeteer-extra-plugin-recaptcha

Fork of puppeteer-extra-plugin-recaptcha with a fix for debug mode https://github.com/berstend/puppeteer-extra/pull/897

This only contains the dist for puppeteer-extra-plugin-recaptcha that's built from the above PR.
8 changes: 8 additions & 0 deletions dist/ambient.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export {}

// https://github.com/sindresorhus/type-fest/issues/19
declare global {
interface SymbolConstructor {
readonly observable: symbol
}
}
28 changes: 28 additions & 0 deletions dist/content-hcaptcha.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import * as types from './types';
export declare const ContentScriptDefaultOpts: types.ContentScriptOpts;
export declare const ContentScriptDefaultData: types.ContentScriptData;
/**
* Content script for Hcaptcha handling (runs in browser context)
* @note External modules are not supported here (due to content script isolation)
*/
export declare class HcaptchaContentScript {
private opts;
private data;
private baseUrls;
constructor(opts?: types.ContentScriptOpts, data?: types.ContentScriptData);
private _waitUntilDocumentReady;
private _paintCaptchaBusy;
/** Regular checkboxes */
private _findRegularCheckboxes;
/** Find active challenges from invisible hcaptchas */
private _findActiveChallenges;
private _extractInfoFromIframes;
findRecaptchas(): Promise<{
captchas: types.CaptchaInfo[];
error: Error;
}>;
enterRecaptchaSolutions(): Promise<{
solved: types.CaptchaSolved[];
error: any;
}>;
}
149 changes: 149 additions & 0 deletions dist/content-hcaptcha.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/content-hcaptcha.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions dist/content.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import * as types from './types';
export declare const ContentScriptDefaultOpts: types.ContentScriptOpts;
export declare const ContentScriptDefaultData: types.ContentScriptData;
/**
* Content script for Recaptcha handling (runs in browser context)
* @note External modules are not supported here (due to content script isolation)
*/
export declare class RecaptchaContentScript {
private opts;
private data;
private frameSources;
constructor(opts?: types.ContentScriptOpts, data?: types.ContentScriptData);
/** Log using debug binding if available */
private log;
private _pick;
private _isVisible;
/** Check if an element is in the current viewport */
private _isInViewport;
private _flattenObject;
private _getKeyByValue;
private _waitUntilDocumentReady;
private _paintCaptchaBusy;
private _paintCaptchaSolved;
private _findVisibleIframeNodes;
private _findVisibleIframeNodeById;
private _hideChallengeWindowIfPresent;
private _generateFrameSources;
private getFrameSelectorForId;
private getClients;
private getVisibleIframesIds;
private getInvisibleIframesIds;
private getIframesIds;
private isEnterpriseCaptcha;
private isInvisible;
/** Whether an active challenge popup is open */
private hasActiveChallengePopup;
/** Whether an (invisible) captcha has a challenge bframe - otherwise it's a score based captcha */
private hasChallengeFrame;
private isInViewport;
private getResponseInputById;
private getClientById;
private extractInfoFromClient;
findRecaptchas(): Promise<{
captchas: types.CaptchaInfo[];
error: any;
}>;
enterRecaptchaSolutions(): Promise<{
solved: types.CaptchaSolved[];
error: any;
}>;
}
Loading