Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
Add weighted CAPTCHA fallback across five providers
Emre Sokullu8f508aadae8f
diff --git a/package.json b/package.jsonindex 84f0919c0..574a13a55 100644--- a/package.json+++ b/package.json@@ -5,7 +5,7 @@"private": true,"type": "module","scripts": {- "test": "npm run test:markdown && npm run test:systemone && npm run test:systemone:fast && node --test test/browser-dialogs.mjs test/capsolver-cloud-broker.mjs test/captcha-providers.mjs && npm run test:firefox-bidi && npm run test:runtime-lifecycle && npm run test:provider-limits && npm run test:accessibility-tree-benchmark && npm run test:toolbar-guard && npm run test:pdf-read && npm run test:pdf-selection && npm run test:social-contract && npm run test:safesocial && npm run test:build-unpacked && npm run test:attachment-drop && node --test test/profile-sync-stats.mjs && node test/run.js && node test/selection-scope-restoration.mjs && node scripts/benchmark-offline-relevance.mjs && npm run test:security",+ "test": "npm run test:markdown && npm run test:systemone && npm run test:systemone:fast && node --test test/browser-dialogs.mjs test/capsolver-cloud-broker.mjs test/captcha-providers.mjs test/captcha-weighted-fallback.mjs && npm run test:firefox-bidi && npm run test:runtime-lifecycle && npm run test:provider-limits && npm run test:accessibility-tree-benchmark && npm run test:toolbar-guard && npm run test:pdf-read && npm run test:pdf-selection && npm run test:social-contract && npm run test:safesocial && npm run test:build-unpacked && npm run test:attachment-drop && node --test test/profile-sync-stats.mjs && node test/run.js && node test/selection-scope-restoration.mjs && node scripts/benchmark-offline-relevance.mjs && npm run test:security","test:captcha:ui": "node test/captcha-settings-ui.mjs","test:provider-limits": "node test/provider-model-limits.mjs","test:markdown": "node --test test/markdown-render.mjs",diff --git a/src/chrome/src/agent/agent.js b/src/chrome/src/agent/agent.jsindex ff3f6fc60..999b2e1c6 100644--- a/src/chrome/src/agent/agent.js+++ b/src/chrome/src/agent/agent.js@@ -25023,7 +25023,7 @@ If the user has already named or confirmed this exact recipient, do NOT ask agai// SYSTEM_PROMPT_ACT stands. The note unlocks the solve_captcha tool// path described there.if (this.captchaSolverEnabled) {- prompt += `\n\n[CAPTCHA SOLVER — the user has enabled a CAPTCHA solver. When both local providers are enabled, the runtime tries CapSolver first, then 2Captcha on failure or timeout; both may charge. This fallback is internal to one tool call, not permission to call the tool again. 2Captcha supports reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires enabled CapSolver. Unsupported challenges require manual completion. When a CAPTCHA or verification dialog blocks a step, read the page/tree without dismissing it. The runtime will route a supported widget to \`solve_captcha\` once and block page-changing actions until a fresh root accessibility-tree read confirms the dialog cleared. If no supported widget is detected, the solve fails, or the dialog remains after solving, stop and ask the user to complete it manually; never dismiss and resubmit or retry solve_captcha.]`;+ prompt += `\n\n[CAPTCHA SOLVER — the user has enabled a CAPTCHA solver. Enabled providers run in descending weight order; failure or timeout tries the next compatible provider. Each attempt may charge. This fallback is internal to one tool call, not permission to call the tool again. All five providers support reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires enabled CapSolver. Unsupported challenges require manual completion. When a CAPTCHA or verification dialog blocks a step, read the page/tree without dismissing it. The runtime will route a supported widget to \`solve_captcha\` once and block page-changing actions until a fresh root accessibility-tree read confirms the dialog cleared. If no supported widget is detected, the solve fails, or the dialog remains after solving, stop and ask the user to complete it manually; never dismiss and resubmit or retry solve_captcha.]`;}// Ordinary turns get the one-line rendering; the full block is reserved for@@ -35651,7 +35651,7 @@ If the user has already named or confirmed this exact recipient, do NOT ask agaiconst stored = await chrome.storage.local.get(CAPTCHA_SETTINGS_KEYS);const providers = getCaptchaProviders(stored);if (!providers.length) {- return noDispatchFailure('No CAPTCHA solver is enabled with a valid API key. Save a CapSolver or 2Captcha key in Settings → General → Advanced, or ask the user to solve the CAPTCHA manually.');+ return noDispatchFailure('No CAPTCHA solver is enabled with a valid API key. Save and enable a CAPTCHA provider key in Settings → General → Advanced, or ask the user to solve the CAPTCHA manually.');}// Use the top-level URL as a fallback. Frame-aware detection below@@ -35791,6 +35791,7 @@ If the user has already named or confirmed this exact recipient, do NOT ask agai...(recaptchaDataSValue ? { recaptchaDataSValue } : {}),...(imageBase64 ? { body: imageBase64 } : {}),...(type === 'turnstile' && metadata ? { metadata } : {}),+ ...(type === 'turnstile' && globalThis.navigator?.userAgent ? { userAgent: globalThis.navigator.userAgent } : {}),};if (type === 'image_to_text') {diff --git a/src/chrome/src/agent/captcha-additional-providers.js b/src/chrome/src/agent/captcha-additional-providers.jsnew file mode 100644index 000000000..3c43559b8--- /dev/null+++ b/src/chrome/src/agent/captcha-additional-providers.js@@ -0,0 +1,97 @@+import { buildTwoCaptchaTask } from './two-captcha.js';+import { getJsonCaptchaBalance, solveJsonCaptcha } from './captcha-json-api.js';++// Provider schemas: https://docs.capmonster.cloud/docs/captchas/+// https://anti-captcha.com/apidoc and https://solvecaptcha.com/captcha-solver-api+export function buildAdditionalCaptchaTask(id, task) {+ const mapped = buildTwoCaptchaTask(task);+ if (id === 'anti-captcha') {+ if (task.type === 'AntiTurnstileTaskProxyLess') {+ const { data, pagedata, ...rest } = mapped;+ return { ...rest, ...(data ? { cData: data } : {}), ...(pagedata ? { chlPageData: pagedata } : {}) };+ }+ return mapped;+ }+ if (id !== 'capmonster') throw new Error(`Unknown CAPTCHA provider: ${id}`);+ if (task.type === 'AntiTurnstileTaskProxyLess') {+ const { action, pagedata, ...rest } = mapped;+ return { ...rest, type: 'TurnstileTask', ...(action ? { pageAction: action } : {}),+ ...(task.userAgent ? { userAgent: task.userAgent } : {}),+ ...(pagedata ? { pageData: pagedata, cloudflareTaskType: 'token' } : {}) };+ }+ if (mapped.type === 'RecaptchaV2TaskProxyless') mapped.type = 'RecaptchaV2Task';+ if (mapped.type === 'RecaptchaV2EnterpriseTaskProxyless') mapped.type = 'RecaptchaV2EnterpriseTask';+ return mapped;+}++export function buildSolveCaptchaTask(task) {+ const mapped = buildTwoCaptchaTask(task);+ if (task.type === 'ImageToTextTask') return { method: 'base64', body: task.body, ...(task.case != null ? { regsense: Number(task.case) } : {}) };+ if (task.type === 'AntiTurnstileTaskProxyLess') {+ return { method: 'turnstile', sitekey: task.websiteKey, pageurl: task.websiteURL,+ ...(mapped.action ? { action: mapped.action } : {}), ...(mapped.data ? { data: mapped.data } : {}),+ ...(mapped.pagedata ? { pagedata: mapped.pagedata } : {}) };+ }+ return { method: 'userrecaptcha', googlekey: task.websiteKey, pageurl: task.websiteURL,+ ...(task.type.includes('V3') ? { version: 'v3', min_score: task.minScore || 0.3 } : {}),+ ...(task.pageAction ? { action: task.pageAction } : {}),+ ...(task.type.includes('Enterprise') ? { enterprise: 1 } : {}),+ ...(task.isInvisible != null ? { invisible: Number(task.isInvisible) } : {}),+ ...(task.userAgent ? { userAgent: task.userAgent } : {}),+ ...(task.enterprisePayload?.s || task.recaptchaDataSValue ? { 'data-s': task.enterprisePayload?.s || task.recaptchaDataSValue } : {}) };+}++async function solveCaptchaRequest(apiKey, path, fields, timeout = 30_000) {+ if (!apiKey) throw new Error('No SolveCaptcha API key configured.');+ const body = new URLSearchParams({ key: apiKey, json: '1', ...fields });+ const isGet = path === 'res.php';+ const response = await fetch(`https://api.solvecaptcha.com/${path}${isGet ? `?${body}` : ''}`, {+ method: isGet ? 'GET' : 'POST', ...(isGet ? {} : { body }), signal: AbortSignal.timeout(timeout),+ });+ if (!response.ok) throw new Error(`SolveCaptcha ${path}: HTTP ${response.status}`);+ const result = await response.json().catch(() => null);+ if (!result || ![0, 1].includes(Number(result.status))) throw new Error(`SolveCaptcha ${path}: invalid response`);+ if (Number(result.status) !== 1 && result.request !== 'CAPCHA_NOT_READY') throw new Error(`SolveCaptcha ${path}: ${result.request || 'unknown error'}`);+ return result;+}++async function solveWithSolveCaptcha(apiKey, task) {+ const created = await solveCaptchaRequest(apiKey, 'in.php', buildSolveCaptchaTask(task));+ if (Number(created.status) !== 1 || !created.request) throw new Error('SolveCaptcha: missing task ID');+ const deadline = Date.now() + 180_000;+ // reCAPTCHA requires an initial 20-second wait; subsequent polls are five seconds apart.+ let delay = task.type.startsWith('ReCaptcha') ? 20_000 : 5_000;+ while (Date.now() < deadline) {+ await new Promise(resolve => setTimeout(resolve, delay));+ delay = 5_000;+ const remaining = deadline - Date.now();+ if (remaining <= 0) break;+ const result = await solveCaptchaRequest(apiKey, 'res.php', { action: 'get', id: created.request }, Math.min(30_000, remaining));+ if (Number(result.status) === 1) {+ const field = task.type === 'ImageToTextTask' ? 'text' : task.type === 'AntiTurnstileTaskProxyLess' ? 'token' : 'gRecaptchaResponse';+ return { taskId: created.request, solution: { [field]: result.request, ...(result.useragent ? { userAgent: result.useragent } : {}) } };+ }+ }+ throw new Error('SolveCaptcha: timed out waiting for solution.');+}++const JSON_PROVIDERS = {+ capmonster: { base: 'https://api.capmonster.cloud', name: 'CapMonster Cloud' },+ 'anti-captcha': { base: 'https://api.anti-captcha.com', name: 'Anti-Captcha' },+};+export async function getAdditionalCaptchaBalance(id, apiKey) {+ if (id === 'solvecaptcha') {+ const result = await solveCaptchaRequest(apiKey, 'res.php', { action: 'getbalance' });+ if (Number(result.status) !== 1 || result.request == null || result.request === '' || !Number.isFinite(Number(result.request))) throw new Error('SolveCaptcha: missing balance');+ return { balance: Number(result.request) };+ }+ const provider = JSON_PROVIDERS[id];+ if (!provider) throw new Error(`Unknown CAPTCHA provider: ${id}`);+ return getJsonCaptchaBalance(provider.base, provider.name, apiKey);+}+export function solveWithAdditionalProvider(id, apiKey, task) {+ if (id === 'solvecaptcha') return solveWithSolveCaptcha(apiKey, task);+ const provider = JSON_PROVIDERS[id];+ if (!provider) throw new Error(`Unknown CAPTCHA provider: ${id}`);+ return solveJsonCaptcha(provider.base, provider.name, apiKey, buildAdditionalCaptchaTask(id, task));+}diff --git a/src/chrome/src/agent/captcha-json-api.js b/src/chrome/src/agent/captcha-json-api.jsnew file mode 100644index 000000000..2dd1e4b46--- /dev/null+++ b/src/chrome/src/agent/captcha-json-api.js@@ -0,0 +1,37 @@+async function postJson(apiBase, name, path, body, timeoutMs = 30_000) {+ const response = await fetch(`${apiBase}/${path}`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify(body),+ signal: AbortSignal.timeout(timeoutMs),+ });+ if (!response.ok) throw new Error(`${name} ${path}: HTTP ${response.status}`);+ const result = await response.json().catch(() => null);+ if (!result || typeof result !== 'object') throw new Error(`${name} ${path}: invalid response`);+ if (result.errorId) throw new Error(`${name} ${path}: ${result.errorDescription || result.errorCode || 'unknown error'}`);+ return result;+}++export async function getJsonCaptchaBalance(apiBase, name, apiKey) {+ if (!apiKey) throw new Error(`No ${name} API key configured.`);+ const result = await postJson(apiBase, name, 'getBalance', { clientKey: apiKey });+ if (result.balance == null || result.balance === '' || !Number.isFinite(Number(result.balance))) throw new Error(`${name} getBalance: missing balance`);+ return { balance: Number(result.balance) };+}++export async function solveJsonCaptcha(apiBase, name, apiKey, task) {+ if (!apiKey) throw new Error(`No ${name} API key configured.`);+ const created = await postJson(apiBase, name, 'createTask', { clientKey: apiKey, task });+ if (!created.taskId) throw new Error(`${name} createTask: missing taskId`);+ if (created.status === 'ready') return { taskId: created.taskId, solution: created.solution || {} };+ const deadline = Date.now() + 180_000;+ while (Date.now() < deadline) {+ await new Promise(resolve => setTimeout(resolve, 5_000));+ const remaining = deadline - Date.now();+ if (remaining <= 0) break;+ const result = await postJson(apiBase, name, 'getTaskResult', { clientKey: apiKey, taskId: created.taskId }, Math.min(30_000, remaining));+ if (result.status === 'ready') return { taskId: created.taskId, solution: result.solution || {} };+ if (result.status !== 'processing') throw new Error(`${name} getTaskResult: unexpected status`);+ }+ throw new Error(`${name}: timed out waiting for solution.`);+}diff --git a/src/chrome/src/agent/captcha-provider-config.js b/src/chrome/src/agent/captcha-provider-config.jsindex 5884bba30..d40bf5a62 100644--- a/src/chrome/src/agent/captcha-provider-config.js+++ b/src/chrome/src/agent/captcha-provider-config.js@@ -1,40 +1,48 @@import { normalizeCaptchaType } from './captcha-frame-runtime.js';-import { isCapsolverEnabled, normalizeCapsolverApiKey } from './capsolver-config.js';+import { isValidCapsolverApiKey } from './capsolver-config.js';+export const CAPTCHA_PROVIDERS = [+ { id: 'capsolver', name: 'CapSolver', key: 'capsolverApiKey', enabled: 'captchaSolverEnabled', weight: 'capsolverWeight', defaultWeight: 100, domId: 'captcha' },+ { id: '2captcha', name: '2Captcha', key: 'twoCaptchaApiKey', enabled: 'twoCaptchaEnabled', weight: 'twoCaptchaWeight', defaultWeight: 99, domId: 'two-captcha' },+ { id: 'capmonster', name: 'CapMonster Cloud', key: 'capmonsterApiKey', enabled: 'capmonsterEnabled', weight: 'capmonsterWeight', defaultWeight: 98, domId: 'capmonster' },+ { id: 'solvecaptcha', name: 'SolveCaptcha', key: 'solveCaptchaApiKey', enabled: 'solveCaptchaEnabled', weight: 'solveCaptchaWeight', defaultWeight: 97, domId: 'solve-captcha' },+ { id: 'anti-captcha', name: 'Anti-Captcha', key: 'antiCaptchaApiKey', enabled: 'antiCaptchaEnabled', weight: 'antiCaptchaWeight', defaultWeight: 96, domId: 'anti-captcha' },+];export const CAPTCHA_SETTINGS_KEYS = [- 'capsolverApiKey', 'captchaSolverEnabled', 'twoCaptchaApiKey', 'twoCaptchaEnabled',+ ...CAPTCHA_PROVIDERS.flatMap(provider => [provider.key, provider.enabled, provider.weight]),'webbrainCloudManaged', 'webbrainCloudCapsolverBrokerEnabled',];-export function normalizeTwoCaptchaApiKey(value) {return typeof value === 'string' ? value.trim() : '';}-export function isValidTwoCaptchaApiKey(value) {return /^[a-f0-9]{32}$/i.test(normalizeTwoCaptchaApiKey(value));}+export function isValidCaptchaApiKey(id, value) {+ return id === 'capsolver' ? isValidCapsolverApiKey(value)+ : CAPTCHA_PROVIDERS.some(provider => provider.id === id) && isValidTwoCaptchaApiKey(value);+}+export function normalizeCaptchaWeight(value, fallback) {+ return typeof value === 'number' && Number.isFinite(value) ? value : fallback;+}-// This order is also the fallback order. Managed browsers must never use-// personal keys from storage, even if an old/imported configuration has them.+// Managed browsers never use personal keys or fallback settings from storage.export function getCaptchaProviders(stored = {}) {if (stored.webbrainCloudManaged === true) {return stored.captchaSolverEnabled === true && stored.webbrainCloudCapsolverBrokerEnabled === true? [{ id: 'capsolver', apiKey: '', useCloudBroker: true }] : [];}- const providers = [];- if (isCapsolverEnabled(stored.capsolverApiKey, stored.captchaSolverEnabled)) {- providers.push({ id: 'capsolver', apiKey: normalizeCapsolverApiKey(stored.capsolverApiKey) });- }- if (stored.twoCaptchaEnabled === true && isValidTwoCaptchaApiKey(stored.twoCaptchaApiKey)) {- providers.push({ id: '2captcha', apiKey: normalizeTwoCaptchaApiKey(stored.twoCaptchaApiKey) });- }- return providers;+ // Stable sorting preserves the default provider order when weights tie.+ return CAPTCHA_PROVIDERS.filter(provider => stored[provider.enabled] === true && isValidCaptchaApiKey(provider.id, stored[provider.key]))+ .map(provider => ({ id: provider.id, apiKey: normalizeTwoCaptchaApiKey(stored[provider.key]),+ weight: normalizeCaptchaWeight(stored[provider.weight], provider.defaultWeight) }))+ .sort((a, b) => b.weight - a.weight);}// Capabilities describe this integration, rather than every product a service sells.export function captchaProviderSupportsType(providerId, type) {const normalized = normalizeCaptchaType(type);if (normalized === 'hcaptcha') return providerId === 'capsolver';- return ['capsolver', '2captcha'].includes(providerId)+ return CAPTCHA_PROVIDERS.some(provider => provider.id === providerId)&& ['recaptcha_v2', 'recaptcha_v2_enterprise', 'recaptcha_v3', 'recaptcha_v3_enterprise', 'turnstile', 'image_to_text'].includes(normalized);}diff --git a/src/chrome/src/agent/captcha-solver.js b/src/chrome/src/agent/captcha-solver.jsindex 5397888c0..d74529bce 100644--- a/src/chrome/src/agent/captcha-solver.js+++ b/src/chrome/src/agent/captcha-solver.js@@ -23,6 +23,7 @@ import {selectCaptchaCandidate,} from './captcha-frame-runtime.js';import { buildCaptchaDiagnostics, captchaChallengeMatcherOptions } from './captcha-gate.js';+import { solveWithAdditionalProvider } from './captcha-additional-providers.js';import { solveWithTwoCaptcha } from './two-captcha.js';import { captchaProviderSupportsType } from './captcha-provider-config.js';@@ -198,6 +199,7 @@ export function buildTask({ type, websiteURL, websiteKey, ...rest }) {websiteURL,websiteKey,...(rest.metadata ? { metadata: rest.metadata } : {}),+ ...(rest.userAgent ? { userAgent: rest.userAgent } : {}),};}if (t === 'image_to_text' || t === 'image') {@@ -282,7 +284,9 @@ export async function solveCaptchaWithProviders(providers, params) {const result = provider.id === 'capsolver'? await solveCaptcha(provider.apiKey, params, { useCloudBroker: provider.useCloudBroker === true }): await (async () => {- const result = await solveWithTwoCaptcha(provider.apiKey, task);+ const result = provider.id === '2captcha'+ ? await solveWithTwoCaptcha(provider.apiKey, task)+ : await solveWithAdditionalProvider(provider.id, provider.apiKey, task);return { ...result, ...solutionFor(params.type, result.solution) };})();if (typeof result.token !== 'string' || !result.token.trim()) {diff --git a/src/chrome/src/agent/tools.js b/src/chrome/src/agent/tools.jsindex 6e420d47b..c660ceca7 100644--- a/src/chrome/src/agent/tools.js+++ b/src/chrome/src/agent/tools.js@@ -1220,7 +1220,7 @@ export const AGENT_TOOLS = [type: 'function',function: {name: 'solve_captcha',- description: 'Solve a CAPTCHA on the current page using CapSolver or 2Captcha, enabled by saving a key in Settings → General → Advanced. With both enabled, one tool call tries CapSolver first, then 2Captcha on failure or timeout; both may charge. Do not repeat the tool call. 2Captcha supports reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires CapSolver. Unsupported challenges require manual completion before dispatch. The tool scans every frame, ranks the active visible widget above hidden/background integrations, and fills missing type/site-key parameters from the selected frame. Returns the token, selected frame/type, and targeted injection/callback status; verify page progress afterward because token injection alone does not prove the challenge cleared. On failure (no CAPTCHA solver key configured, ambiguous candidates, unknown type, API error, timeout) the tool returns `{ success: false, error: "..." }` — use only the exact frameUrl, websiteKey, frameId, or framePath discriminator offered by the ambiguity result; otherwise ask the user to solve it manually.',+ description: 'Solve a CAPTCHA on the current page using an enabled provider (CapSolver, 2Captcha, CapMonster Cloud, SolveCaptcha, or Anti-Captcha) configured in Settings → General → Advanced. One tool call tries compatible enabled providers in descending weight order, moving to the next on failure or timeout; each may charge. Do not repeat the tool call. All five providers support reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires CapSolver. Unsupported challenges require manual completion before dispatch. The tool scans every frame, ranks the active visible widget above hidden/background integrations, and fills missing type/site-key parameters from the selected frame. Returns the token, selected frame/type, and targeted injection/callback status; verify page progress afterward because token injection alone does not prove the challenge cleared. On failure (no CAPTCHA solver key configured, ambiguous candidates, unknown type, API error, timeout) the tool returns `{ success: false, error: "..." }` — use only the exact frameUrl, websiteKey, frameId, or framePath discriminator offered by the ambiguity result; otherwise ask the user to solve it manually.',parameters: {type: 'object',properties: {@@ -2133,7 +2133,7 @@ FORMS — read this:- You do NOT need verify_form for simple interactions: search boxes, single-field forms, or login forms. Use it for multi-field forms where wrong data has consequences (checkout, profile, issue creation, releases, etc.).- AFTER submitting a form, ALWAYS read the page/tree and inspect any injected verification/auto-screenshot context to confirm success BEFORE doing anything else. Do not resume other actions until you verify the submission result. Look for: a success message/toast, the newly created item appearing in a list, or a detail page for the new item. Check that the details (name, price, dates) match what you intended.- NEVER claim you created something unless you see CONFIRMATION on the page. If you see a list of items, check the creation date — if it says "2 months ago" or a past date, that is an EXISTING item, NOT something you just created. Only items with a timestamp from right now are yours.-- If you encounter any CAPTCHA, anti-bot check, or human verification challenge, do not dismiss, close, or resubmit it. When the user has configured CapSolver or 2Captcha (you will see a "[CAPTCHA SOLVER]" note), let the runtime route one \`solve_captcha\` call, then read the root accessibility tree to confirm the dialog cleared before any submit. If no supported widget is detected, the solve fails, or the dialog remains, STOP and ask the user to complete it manually — never retry the solve.+- If you encounter any CAPTCHA, anti-bot check, or human verification challenge, do not dismiss, close, or resubmit it. When the user has enabled a CAPTCHA provider (you will see a "[CAPTCHA SOLVER]" note), let the runtime route one \`solve_captcha\` call, then read the root accessibility tree to confirm the dialog cleared before any submit. If no supported widget is detected, the solve fails, or the dialog remains, STOP and ask the user to complete it manually — never retry the solve.MODALS & DIALOGS — read this:- When a modal/dialog is open, treat the rest of the page as unreachable. click({text: ...}) and get_interactive_elements are automatically scoped to the topmost dialog, so queries for buttons behind the overlay will return "no match" — that's intentional.@@ -2315,7 +2315,7 @@ ${BROWSER_TAB_LIMITATION}- fetch_url({url}) / research_url({url}): read OTHER URLs (not the active tab). list_downloads, download_files, download_resource_from_page, read_downloaded_file, upload_file({selector, attachmentId}) or upload_file({selector, downloadId}): file workflows. Use attachmentId for a current user-supplied file; use downloadId for a downloaded file. Use download_files for direct URLs and download_resource_from_page when the resource is attached to a visible page element or a blob: URL. Successful downloads auto-pin each file's downloadId to the scratchpad as an \`[auto]\` line — attach with upload_file({downloadId, selector}) and re-read with read_downloaded_file({downloadId}); no need to recall the path.- download_public_media (if enabled) / download_social_media: one-shot image/video download from supported public social sites; purpose-built download tools should be tried before manual DOM/resource workflows.- verify_form: check a form's field values before submitting. scratchpad_write({text}): pin facts that survive context summarization. progress_update/progress_read: track repeated item/action progress.-- clarify({question, options?, safe_first?}): ask the user only when materially blocked/ambiguous (budget 1-2 per run). Unanswered clarifies auto-select options[0] after timeout; safe_first makes that selection apply, and source=auto Instant is intentional auto-approve. solve_captcha: one tool call, CapSolver first then 2Captcha on failure or timeout when both are enabled; either may charge. Do not repeat the call. hCaptcha requires CapSolver; unsupported provider/type combinations require manual completion.+- clarify({question, options?, safe_first?}): ask the user only when materially blocked/ambiguous (budget 1-2 per run). Unanswered clarifies auto-select options[0] after timeout; safe_first makes that selection apply, and source=auto Instant is intentional auto-approve. solve_captcha: one tool call, compatible enabled providers in descending weight order, falling back on failure or timeout; each may charge. Do not repeat the call. hCaptcha requires CapSolver; unsupported provider/type combinations require manual completion.- Recording is user-driven only: tell the user to type \`/record\` or \`/record --full-screen\` instead of trying to start recording yourself; add \`--transcribe\` if they want a Whisper transcript after stop.- done({summary, outcome}): signal completion; use outcome:"success" only after verifying success.diff --git a/src/chrome/src/agent/two-captcha.js b/src/chrome/src/agent/two-captcha.jsindex 256b3d056..849d0a725 100644--- a/src/chrome/src/agent/two-captcha.js+++ b/src/chrome/src/agent/two-captcha.js@@ -1,30 +1,8 @@// 2Captcha API v2: https://2captcha.com/api-docs+import { getJsonCaptchaBalance, solveJsonCaptcha } from './captcha-json-api.js';const API_BASE = 'https://api.2captcha.com';-const POLL_INTERVAL_MS = 5_000;-const SOLVE_TIMEOUT_MS = 180_000;-async function postJson(path, body, timeoutMs = 30_000) {- const response = await fetch(`${API_BASE}/${path}`, {- method: 'POST',- headers: { 'Content-Type': 'application/json' },- body: JSON.stringify(body),- signal: AbortSignal.timeout(timeoutMs),- });- if (!response.ok) throw new Error(`2Captcha ${path}: HTTP ${response.status}`);- const result = await response.json().catch(() => null);- if (!result || typeof result !== 'object') throw new Error(`2Captcha ${path}: invalid response`);- if (result.errorId) throw new Error(`2Captcha ${path}: ${result.errorDescription || result.errorCode || 'unknown error'}`);- return result;-}--export async function getTwoCaptchaBalance(apiKey) {- if (!apiKey) throw new Error('No 2Captcha API key configured.');- const result = await postJson('getBalance', { clientKey: apiKey });- if (!Number.isFinite(Number(result.balance)) || result.balance == null) {- throw new Error('2Captcha getBalance: missing balance');- }- return { balance: Number(result.balance) };-}+export const getTwoCaptchaBalance = apiKey => getJsonCaptchaBalance(API_BASE, '2Captcha', apiKey);// Translate the existing normalized task to 2Captcha's case-sensitive types// and fields. Never forward CapSolver-specific task names or affiliate IDs.@@ -65,18 +43,4 @@ export function buildTwoCaptchaTask(task) {}}-export async function solveWithTwoCaptcha(apiKey, task) {- if (!apiKey) throw new Error('No 2Captcha API key configured.');- const created = await postJson('createTask', { clientKey: apiKey, task: buildTwoCaptchaTask(task) });- if (!created.taskId) throw new Error('2Captcha createTask: missing taskId');- const deadline = Date.now() + SOLVE_TIMEOUT_MS;- while (Date.now() < deadline) {- await new Promise(resolve => setTimeout(resolve, POLL_INTERVAL_MS));- const remaining = deadline - Date.now();- if (remaining <= 0) break;- const result = await postJson('getTaskResult', { clientKey: apiKey, taskId: created.taskId }, Math.min(30_000, remaining));- if (result.status === 'ready') return { taskId: created.taskId, solution: result.solution || {} };- if (result.status !== 'processing') throw new Error('2Captcha getTaskResult: unexpected status');- }- throw new Error('2Captcha: timed out waiting for solution.');-}+export const solveWithTwoCaptcha = (apiKey, task) => solveJsonCaptcha(API_BASE, '2Captcha', apiKey, buildTwoCaptchaTask(task));diff --git a/src/chrome/src/background.js b/src/chrome/src/background.jsindex 63537556e..a46bffa1d 100644--- a/src/chrome/src/background.js+++ b/src/chrome/src/background.js@@ -41,6 +41,7 @@ import {} from './providers/oauth-claude.js';import { getBalance as capsolverGetBalance } from './agent/captcha-solver.js';import { CAPTCHA_SETTINGS_KEYS, getCaptchaProviders } from './agent/captcha-provider-config.js';+import { getAdditionalCaptchaBalance } from './agent/captcha-additional-providers.js';import { getTwoCaptchaBalance } from './agent/two-captcha.js';import { createSystemOneJudge } from './agent/systemone-judge.js';import { cloudSafeScheduledJob, createCloudRunController } from './cloud-runs.js';@@ -1307,9 +1308,7 @@ chrome.storage.onChanged.addListener((changes, areaName) => {}refreshPrompts = true;}- if (changes.capsolverApiKey || changes.captchaSolverEnabled- || changes.twoCaptchaApiKey || changes.twoCaptchaEnabled- || changes.webbrainCloudManaged || changes.webbrainCloudCapsolverBrokerEnabled) {+ if (CAPTCHA_SETTINGS_KEYS.some(key => changes[key])) {loadCaptchaSolver().then(() => agent._refreshSystemPrompts()).catch((error) => console.warn('[WebBrain] CAPTCHA settings could not be refreshed', error));@@ -4089,6 +4088,12 @@ async function handleMessage(msg, sender) {} catch (error) { return { success: false, error: error.message }; }}+ case 'test_captcha_provider_balance': {+ try {+ return { ok: true, ...await getAdditionalCaptchaBalance(msg.provider, String(msg.apiKey || '').trim()) };+ } catch (error) { return { ok: false, error: error.message }; }+ }+case 'test_two_captcha_balance': {try {const key = String(msg.apiKey || '').trim();diff --git a/src/chrome/src/config-transfer.js b/src/chrome/src/config-transfer.jsindex 067ab2df6..1937337f8 100644--- a/src/chrome/src/config-transfer.js+++ b/src/chrome/src/config-transfer.js@@ -80,6 +80,17 @@ export const DEFAULT_CONFIG_SETTINGS = Object.freeze({capsolverApiKey: '',twoCaptchaApiKey: '',twoCaptchaEnabled: false,+ capsolverWeight: 100,+ twoCaptchaWeight: 99,+ capmonsterApiKey: '',+ capmonsterEnabled: false,+ capmonsterWeight: 98,+ solveCaptchaApiKey: '',+ solveCaptchaEnabled: false,+ solveCaptchaWeight: 97,+ antiCaptchaApiKey: '',+ antiCaptchaEnabled: false,+ antiCaptchaWeight: 96,systemOneEnabled: false,systemOneWatchEnabled: false,systemOneCompletionEnabled: false,@@ -127,6 +138,9 @@ const BOOLEAN_KEYS = new Set(['enableAllPackagedSkills','captchaSolverEnabled','twoCaptchaEnabled',+ 'capmonsterEnabled',+ 'solveCaptchaEnabled',+ 'antiCaptchaEnabled','systemOneEnabled','systemOneWatchEnabled','systemOneCompletionEnabled',@@ -134,6 +148,11 @@ const BOOLEAN_KEYS = new Set(['systemOneFastBrowser',]);const NUMBER_KEYS = new Set([+ 'capsolverWeight',+ 'twoCaptchaWeight',+ 'capmonsterWeight',+ 'solveCaptchaWeight',+ 'antiCaptchaWeight','maxAgentSteps','requestTimeoutMs','clarifyTimeoutSec',@@ -157,6 +176,9 @@ const STRING_KEYS = new Set(['profileText','capsolverApiKey','twoCaptchaApiKey',+ 'capmonsterApiKey',+ 'solveCaptchaApiKey',+ 'antiCaptchaApiKey','typesafeApiKey',]);const ARRAY_KEYS = new Set([diff --git a/src/chrome/src/ui/captcha-settings.js b/src/chrome/src/ui/captcha-settings.jsnew file mode 100644index 000000000..aa4c4c7a3--- /dev/null+++ b/src/chrome/src/ui/captcha-settings.js@@ -0,0 +1,83 @@+import { CAPTCHA_PROVIDERS, CAPTCHA_SETTINGS_KEYS, isValidCaptchaApiKey, normalizeCaptchaWeight } from '../agent/captcha-provider-config.js';++export async function initCaptchaSettings(storage, sendToBackground, t) {+ const stored = await storage.get(CAPTCHA_SETTINGS_KEYS);+ const managed = stored.webbrainCloudManaged === true;+ const card = document.getElementById('captcha-card');+ if (!card) return;+ card.hidden = managed;+ if (managed) return;+ for (const provider of CAPTCHA_PROVIDERS) {+ const id = provider.domId;+ const keyInput = document.getElementById(`${id}-api-key`);+ const enabled = document.getElementById(`${id}-enabled`);+ const weight = document.getElementById(`${id}-weight`);+ const result = document.getElementById(`test-${id}`);+ if (!keyInput || !enabled || !weight || !result) continue;+ keyInput.value = stored[provider.key] || '';+ enabled.checked = stored[provider.enabled] === true;+ weight.value = normalizeCaptchaWeight(stored[provider.weight], provider.defaultWeight);+ let manuallyDisabled = false;+ let messageTimer;+ const show = (status, message) => {+ clearTimeout(messageTimer);+ result.className = `test-result show ${status}`;+ result.textContent = message;+ result.style.color = '';+ messageTimer = setTimeout(() => result.classList.remove('show'), 5000);+ };+ const validKey = () => {+ const key = keyInput.value.trim();+ if (isValidCaptchaApiKey(provider.id, key)) return key;+ show('fail', provider.id === 'capsolver' ? t('st.captcha.need_key') : t('st.captcha.provider_need_key', { provider: provider.name }));+ return null;+ };+ // Typing opts in by default, but an explicit unchecked box wins for this edit.+ keyInput.addEventListener('input', () => {+ if (!manuallyDisabled) enabled.checked = !!keyInput.value.trim();+ });+ const save = async () => {+ const key = validKey();+ if (!key) return;+ keyInput.value = key;+ await storage.set({ [provider.key]: key, [provider.enabled]: enabled.checked });+ show('ok', t(provider.id === 'capsolver' && enabled.checked ? 'st.captcha.saved' : 'st.providers.saved'));+ };+ // Report storage failures, rather than silently showing a successful save.+ const handle = fn => async () => { try { await fn(); } catch (error) { show('fail', error.message); } };+ document.getElementById(`btn-save-${id}`).addEventListener('click', handle(save));+ enabled.addEventListener('change', handle(async () => {+ manuallyDisabled = !enabled.checked;+ if (!enabled.checked) await storage.set({ [provider.enabled]: false });+ else if (isValidCaptchaApiKey(provider.id, keyInput.value)) await save();+ else {+ enabled.checked = false;+ validKey();+ }+ }));+ weight.addEventListener('change', handle(async () => {+ const value = normalizeCaptchaWeight(weight.value === '' ? undefined : Number(weight.value), provider.defaultWeight);+ weight.value = value;+ await storage.set({ [provider.weight]: value });+ }));+ document.getElementById(`btn-clear-${id}`).addEventListener('click', handle(async () => {+ await storage.remove([provider.key, provider.enabled]);+ keyInput.value = '';+ enabled.checked = false;+ manuallyDisabled = false;+ show('ok', t('st.captcha.cleared'));+ }));+ document.getElementById(`btn-test-${id}`).addEventListener('click', handle(async () => {+ const key = validKey();+ if (!key) return;+ show('', t('st.captcha.checking'));+ const action = provider.id === 'capsolver' ? 'test_capsolver_balance'+ : provider.id === '2captcha' ? 'test_two_captcha_balance' : 'test_captcha_provider_balance';+ try {+ const response = await sendToBackground(action, { apiKey: key, provider: provider.id });+ if (!response?.ok) throw new Error(response?.error || 'Unknown error');+ show('ok', t('st.captcha.balance_ok', { balance: `$${Number(response.balance).toFixed(4)}` }));+ } catch (error) { show('fail', t('st.captcha.balance_fail', { error: error.message })); }+ }));+ }+}diff --git a/src/chrome/src/ui/i18n.js b/src/chrome/src/ui/i18n.jsindex 31c3564c0..27e6085a6 100644--- a/src/chrome/src/ui/i18n.js+++ b/src/chrome/src/ui/i18n.js@@ -140,7 +140,9 @@ export function translationsForKey(key) {export function applyDOMTranslations(root) {root = root || document;root.querySelectorAll('[data-i18n]').forEach((el) => {- el.textContent = t(el.dataset.i18n);+ let params;+ try { params = JSON.parse(el.dataset.i18nParams || '{}'); } catch { /* ignore malformed optional parameters */ }+ el.textContent = t(el.dataset.i18n, params);});root.querySelectorAll('[data-i18n-html]').forEach((el) => {el.innerHTML = t(el.dataset.i18nHtml);diff --git a/src/chrome/src/ui/locales/captcha-copy.mjs b/src/chrome/src/ui/locales/captcha-copy.mjsindex 6bb0e249e..f548a6385 100644--- a/src/chrome/src/ui/locales/captcha-copy.mjs+++ b/src/chrome/src/ui/locales/captcha-copy.mjs@@ -1,233 +1,256 @@export const captchaEnglish = {"st.captcha.heading": "CAPTCHA solving",- "st.captcha.order": "Use either provider or both. Save a valid key to enable a provider; Clear disables it. With both enabled, CapSolver runs first, then 2Captcha on failure or timeout.",+ "st.captcha.order": "Enable any number of providers. Entering a key checks Enabled; Save applies it. Uncheck to keep the key without using it. Higher weights run first; failures or timeouts try the next compatible provider.","st.captcha.capsolver_desc": "Automatically solve reCAPTCHA v2/v3, hCaptcha, Turnstile, and image CAPTCHAs with your CapSolver account.",- "st.captcha.two_desc": "Automatically solve reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs with your 2Captcha account. hCaptcha requires CapSolver.",- "st.captcha.two_key": "2Captcha API Key",- "st.captcha.two_need_key": "Enter a valid 2Captcha API key: 32 hexadecimal characters.",- "st.captcha.two_saved": "Saved. 2Captcha is enabled.",- "st.captcha.providers_security": "Keys are stored in plaintext in this browser. Each enabled provider may charge for an attempt. Timeout fallback can charge both accounts even if the first task is still running. If neither returns a usable solution, the agent asks you to complete the CAPTCHA manually."+ "st.captcha.providers_security": "Keys are stored in plaintext in this browser. Each attempted provider may charge, including after a timeout. If all attempts fail, the agent asks you to complete the CAPTCHA manually.",+ "st.captcha.provider_desc": "Automatically solve reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs with your {provider} account. hCaptcha requires CapSolver.",+ "st.captcha.provider_key": "{provider} API Key",+ "st.captcha.provider_need_key": "Enter a valid {provider} API key: 32 hexadecimal characters.",+ "st.captcha.enabled": "Enabled",+ "st.captcha.weight": "Weight (higher runs first)"};export const captchaTranslations = {"tr": {"st.captcha.heading": "CAPTCHA çözümü",- "st.captcha.order": "Bir sağlayıcıyı veya ikisini birden kullanın. Geçerli anahtarı kaydetmek etkinleştirir; Temizle devre dışı bırakır. İkisi de etkinse önce CapSolver, hata veya zaman aşımında 2Captcha denenir.",+ "st.captcha.order": "İstediğiniz kadar sağlayıcıyı etkinleştirin. Anahtar girince Etkin seçilir; Kaydet uygular. Anahtarı saklayıp kullanmamak için seçimi kaldırın. Yüksek ağırlık önce denenir; hata veya zaman aşımında sıradaki uyumlu sağlayıcıya geçilir.","st.captcha.capsolver_desc": "CapSolver hesabınızla reCAPTCHA v2/v3, hCaptcha, Turnstile ve görsel CAPTCHA’ları otomatik çözün.",- "st.captcha.two_desc": "2Captcha hesabınızla reCAPTCHA v2/v3, Turnstile ve görsel CAPTCHA’ları otomatik çözün. hCaptcha için CapSolver gerekir.",- "st.captcha.two_key": "2Captcha API anahtarı",- "st.captcha.two_need_key": "32 onaltılık karakterden oluşan geçerli bir 2Captcha API anahtarı girin.",- "st.captcha.two_saved": "Kaydedildi. 2Captcha etkin.",- "st.captcha.providers_security": "Anahtarlar bu tarayıcıda düz metin olarak saklanır. Her etkin sağlayıcı deneme için ücret alabilir. Zaman aşımında diğer sağlayıcıya geçildiğinde ilk görev hâlâ sürse bile iki hesap da ücretlendirilebilir. Kullanılabilir çözüm dönmezse ajan CAPTCHA’yı elle tamamlamanızı ister."+ "st.captcha.providers_security": "Anahtarlar bu tarayıcıda düz metin olarak saklanır. Zaman aşımı dahil her denenen sağlayıcı ücret alabilir. Tüm denemeler başarısızsa ajan CAPTCHA’yı elle tamamlamanızı ister.",+ "st.captcha.provider_desc": "{provider} hesabınızla reCAPTCHA v2/v3, Turnstile ve görsel CAPTCHA’ları otomatik çözün. hCaptcha için CapSolver gerekir.",+ "st.captcha.provider_key": "{provider} API anahtarı",+ "st.captcha.provider_need_key": "32 onaltılık karakterden oluşan geçerli bir {provider} API anahtarı girin.",+ "st.captcha.enabled": "Etkin",+ "st.captcha.weight": "Ağırlık (yüksek olan önce)"},"es": {"st.captcha.heading": "Resolución de CAPTCHA",- "st.captcha.order": "Usa uno o ambos proveedores. Guarda una clave válida para activar cada uno; Borrar lo desactiva. Si ambos están activos, se prueba CapSolver primero y después 2Captcha si falla o agota el tiempo.",+ "st.captcha.order": "Activa tantos proveedores como quieras. Introducir una clave marca Activado; Guardar aplica el cambio. Desmarca para conservar la clave sin usarla. El mayor peso va primero; si falla o agota el tiempo, se prueba el siguiente compatible.","st.captcha.capsolver_desc": "Resuelve automáticamente reCAPTCHA v2/v3, hCaptcha, Turnstile y CAPTCHA de imágenes con tu cuenta de CapSolver.",- "st.captcha.two_desc": "Resuelve automáticamente reCAPTCHA v2/v3, Turnstile y CAPTCHA de imágenes con tu cuenta de 2Captcha. hCaptcha requiere CapSolver.",- "st.captcha.two_key": "Clave API de 2Captcha",- "st.captcha.two_need_key": "Introduce una clave API válida de 2Captcha: 32 caracteres hexadecimales.",- "st.captcha.two_saved": "Guardado. 2Captcha está activado.",- "st.captcha.providers_security": "Las claves se guardan como texto sin cifrar en este navegador. Cada proveedor activo puede cobrar por un intento. El cambio por tiempo agotado puede generar cargos en ambas cuentas aunque la primera tarea siga ejecutándose. Si no hay una solución válida, el agente te pide completar el CAPTCHA manualmente."+ "st.captcha.providers_security": "Las claves se guardan sin cifrar en este navegador. Cada proveedor probado puede cobrar, incluso tras agotar el tiempo. Si todos fallan, el agente pide completar el CAPTCHA manualmente.",+ "st.captcha.provider_desc": "Resuelve automáticamente reCAPTCHA v2/v3, Turnstile y CAPTCHA de imágenes con tu cuenta de {provider}. hCaptcha requiere CapSolver.",+ "st.captcha.provider_key": "Clave API de {provider}",+ "st.captcha.provider_need_key": "Introduce una clave API válida de {provider}: 32 caracteres hexadecimales.",+ "st.captcha.enabled": "Activado",+ "st.captcha.weight": "Peso (mayor primero)"},"fr": {"st.captcha.heading": "Résolution des CAPTCHA",- "st.captcha.order": "Utilisez un fournisseur ou les deux. Enregistrer une clé valide active le fournisseur ; Effacer le désactive. Si les deux sont actifs, CapSolver est essayé en premier, puis 2Captcha en cas d’échec ou de délai dépassé.",+ "st.captcha.order": "Activez autant de fournisseurs que souhaité. Saisir une clé coche Activé ; Enregistrer applique le choix. Décochez pour conserver la clé sans l’utiliser. Le poids le plus élevé passe en premier ; en cas d’échec ou de délai dépassé, le suivant compatible est essayé.","st.captcha.capsolver_desc": "Résolvez automatiquement les reCAPTCHA v2/v3, hCaptcha, Turnstile et CAPTCHA sous forme d’image avec votre compte CapSolver.",- "st.captcha.two_desc": "Résolvez automatiquement les reCAPTCHA v2/v3, Turnstile et CAPTCHA sous forme d’image avec votre compte 2Captcha. hCaptcha nécessite CapSolver.",- "st.captcha.two_key": "Clé API 2Captcha",- "st.captcha.two_need_key": "Saisissez une clé API 2Captcha valide : 32 caractères hexadécimaux.",- "st.captcha.two_saved": "Enregistré. 2Captcha est activé.",- "st.captcha.providers_security": "Les clés sont stockées en clair dans ce navigateur. Chaque fournisseur actif peut facturer une tentative. Le basculement après expiration du délai peut facturer les deux comptes même si la première tâche est toujours en cours. Sans solution utilisable, l’agent vous demande de terminer le CAPTCHA manuellement."+ "st.captcha.providers_security": "Les clés sont stockées en clair dans ce navigateur. Chaque fournisseur essayé peut facturer, même après un délai dépassé. Si tous échouent, l’agent vous demande de résoudre le CAPTCHA manuellement.",+ "st.captcha.provider_desc": "Résolvez automatiquement les reCAPTCHA v2/v3, Turnstile et CAPTCHA sous forme d’image avec votre compte {provider}. hCaptcha nécessite CapSolver.",+ "st.captcha.provider_key": "Clé API {provider}",+ "st.captcha.provider_need_key": "Saisissez une clé API {provider} valide : 32 caractères hexadécimaux.",+ "st.captcha.enabled": "Activé",+ "st.captcha.weight": "Poids (le plus élevé en premier)"},"de": {"st.captcha.heading": "CAPTCHA-Lösung",- "st.captcha.order": "Nutzen Sie einen oder beide Anbieter. Ein gültiger gespeicherter Schlüssel aktiviert den Anbieter; Löschen deaktiviert ihn. Sind beide aktiv, wird zuerst CapSolver versucht, bei Fehler oder Zeitüberschreitung dann 2Captcha.",+ "st.captcha.order": "Aktivieren Sie beliebig viele Anbieter. Eine Schlüsseleingabe setzt Aktiviert; Speichern übernimmt die Auswahl. Abwählen behält den Schlüssel ohne Nutzung. Höhere Gewichte kommen zuerst; bei Fehler oder Zeitüberschreitung folgt der nächste kompatible Anbieter.","st.captcha.capsolver_desc": "Lösen Sie reCAPTCHA v2/v3, hCaptcha, Turnstile und Bild-CAPTCHAs automatisch mit Ihrem CapSolver-Konto.",- "st.captcha.two_desc": "Lösen Sie reCAPTCHA v2/v3, Turnstile und Bild-CAPTCHAs automatisch mit Ihrem 2Captcha-Konto. hCaptcha erfordert CapSolver.",- "st.captcha.two_key": "2Captcha-API-Schlüssel",- "st.captcha.two_need_key": "Geben Sie einen gültigen 2Captcha-API-Schlüssel ein: 32 hexadezimale Zeichen.",- "st.captcha.two_saved": "Gespeichert. 2Captcha ist aktiviert.",- "st.captcha.providers_security": "Die Schlüssel werden in diesem Browser im Klartext gespeichert. Jeder aktive Anbieter kann einen Versuch berechnen. Beim Wechsel nach einer Zeitüberschreitung können beide Konten belastet werden, auch wenn der erste Auftrag noch läuft. Ohne nutzbare Lösung bittet der Agent Sie, das CAPTCHA manuell abzuschließen."+ "st.captcha.providers_security": "Schlüssel werden in diesem Browser im Klartext gespeichert. Jeder versuchte Anbieter kann Gebühren erheben, auch bei Zeitüberschreitung. Wenn alle Versuche scheitern, bittet der Agent um manuelle Lösung.",+ "st.captcha.provider_desc": "Lösen Sie reCAPTCHA v2/v3, Turnstile und Bild-CAPTCHAs automatisch mit Ihrem {provider}-Konto. hCaptcha erfordert CapSolver.",+ "st.captcha.provider_key": "{provider}-API-Schlüssel",+ "st.captcha.provider_need_key": "Geben Sie einen gültigen {provider}-API-Schlüssel ein: 32 hexadezimale Zeichen.",+ "st.captcha.enabled": "Aktiviert",+ "st.captcha.weight": "Gewicht (höher zuerst)"},"nl": {"st.captcha.heading": "CAPTCHA’s oplossen",- "st.captcha.order": "Gebruik één of beide aanbieders. Een geldige sleutel opslaan schakelt de aanbieder in; Wissen schakelt deze uit. Als beide actief zijn, wordt eerst CapSolver geprobeerd en daarna 2Captcha bij een fout of time-out.",+ "st.captcha.order": "Schakel zoveel aanbieders in als je wilt. Een sleutel invoeren vinkt Ingeschakeld aan; Opslaan past dit toe. Uitvinken bewaart de sleutel zonder deze te gebruiken. Hogere gewichten gaan eerst; bij fouten of time-outs volgt de volgende geschikte aanbieder.","st.captcha.capsolver_desc": "Los reCAPTCHA v2/v3, hCaptcha, Turnstile en afbeeldings-CAPTCHA’s automatisch op met je CapSolver-account.",- "st.captcha.two_desc": "Los reCAPTCHA v2/v3, Turnstile en afbeeldings-CAPTCHA’s automatisch op met je 2Captcha-account. hCaptcha vereist CapSolver.",- "st.captcha.two_key": "2Captcha API-sleutel",- "st.captcha.two_need_key": "Voer een geldige 2Captcha API-sleutel in: 32 hexadecimale tekens.",- "st.captcha.two_saved": "Opgeslagen. 2Captcha is ingeschakeld.",- "st.captcha.providers_security": "Sleutels worden als platte tekst in deze browser opgeslagen. Elke actieve aanbieder kan een poging in rekening brengen. Overschakelen na een time-out kan beide accounts belasten, ook als de eerste taak nog loopt. Zonder bruikbare oplossing vraagt de agent je de CAPTCHA handmatig af te ronden."+ "st.captcha.providers_security": "Sleutels worden onversleuteld in deze browser bewaard. Elke geprobeerde aanbieder kan kosten rekenen, ook na een time-out. Als alles mislukt, vraagt de agent je de CAPTCHA zelf op te lossen.",+ "st.captcha.provider_desc": "Los reCAPTCHA v2/v3, Turnstile en afbeeldings-CAPTCHA’s automatisch op met je {provider}-account. hCaptcha vereist CapSolver.",+ "st.captcha.provider_key": "{provider} API-sleutel",+ "st.captcha.provider_need_key": "Voer een geldige {provider} API-sleutel in: 32 hexadecimale tekens.",+ "st.captcha.enabled": "Ingeschakeld",+ "st.captcha.weight": "Gewicht (hoger eerst)"},"pt": {"st.captcha.heading": "Resolução de CAPTCHA",- "st.captcha.order": "Use um ou ambos os provedores. Salvar uma chave válida ativa o provedor; Limpar o desativa. Com ambos ativos, o CapSolver é tentado primeiro e depois o 2Captcha em caso de falha ou tempo esgotado.",+ "st.captcha.order": "Ative quantos provedores quiser. Inserir uma chave marca Ativado; Salvar aplica a escolha. Desmarque para manter a chave sem usá-la. Pesos maiores vêm primeiro; em caso de falha ou tempo esgotado, tenta-se o próximo compatível.","st.captcha.capsolver_desc": "Resolva automaticamente reCAPTCHA v2/v3, hCaptcha, Turnstile e CAPTCHAs de imagem com sua conta CapSolver.",- "st.captcha.two_desc": "Resolva automaticamente reCAPTCHA v2/v3, Turnstile e CAPTCHAs de imagem com sua conta 2Captcha. hCaptcha exige CapSolver.",- "st.captcha.two_key": "Chave API do 2Captcha",- "st.captcha.two_need_key": "Insira uma chave API válida do 2Captcha: 32 caracteres hexadecimais.",- "st.captcha.two_saved": "Salvo. 2Captcha está ativado.",- "st.captcha.providers_security": "As chaves são armazenadas em texto simples neste navegador. Cada provedor ativo pode cobrar por uma tentativa. A troca após o tempo esgotado pode gerar cobranças nas duas contas, mesmo que a primeira tarefa ainda esteja em andamento. Sem uma solução utilizável, o agente pede que você conclua o CAPTCHA manualmente."+ "st.captcha.providers_security": "As chaves ficam em texto simples neste navegador. Cada provedor testado pode cobrar, inclusive após o tempo esgotar. Se todos falharem, o agente pede que você resolva o CAPTCHA manualmente.",+ "st.captcha.provider_desc": "Resolva automaticamente reCAPTCHA v2/v3, Turnstile e CAPTCHAs de imagem com sua conta {provider}. hCaptcha exige CapSolver.",+ "st.captcha.provider_key": "Chave API do {provider}",+ "st.captcha.provider_need_key": "Insira uma chave API válida do {provider}: 32 caracteres hexadecimais.",+ "st.captcha.enabled": "Ativado",+ "st.captcha.weight": "Peso (maior primeiro)"},"zh": {"st.captcha.heading": "CAPTCHA 验证码识别",- "st.captcha.order": "可使用一个或两个服务商。保存有效密钥即可启用,清除密钥即可停用。两者都启用时,先尝试 CapSolver,失败或超时后再尝试 2Captcha。",+ "st.captcha.order": "可启用任意数量的服务商。输入密钥会勾选“已启用”,保存后生效。取消勾选可保留密钥但不使用。权重越高越先尝试;失败或超时后尝试下一个兼容的服务商。","st.captcha.capsolver_desc": "使用你的 CapSolver 账户自动识别 reCAPTCHA v2/v3、hCaptcha、Turnstile 和图片验证码。",- "st.captcha.two_desc": "使用你的 2Captcha 账户自动识别 reCAPTCHA v2/v3、Turnstile 和图片验证码。hCaptcha 需要 CapSolver。",- "st.captcha.two_key": "2Captcha API 密钥",- "st.captcha.two_need_key": "请输入有效的 2Captcha API 密钥:32 个十六进制字符。",- "st.captcha.two_saved": "已保存。2Captcha 已启用。",- "st.captcha.providers_security": "密钥以明文保存在此浏览器中。每个启用的服务商都可能对尝试收费。超时后切换服务商可能使两个账户都产生费用,即使第一个任务仍在运行。如果没有可用的结果,智能体会请你手动完成验证码。"+ "st.captcha.providers_security": "密钥以明文保存在此浏览器中。每个尝试过的服务商都可能收费,包括超时的情况。若全部失败,智能体会请你手动完成验证码。",+ "st.captcha.provider_desc": "使用你的 {provider} 账户自动识别 reCAPTCHA v2/v3、Turnstile 和图片验证码。hCaptcha 需要 CapSolver。",+ "st.captcha.provider_key": "{provider} API 密钥",+ "st.captcha.provider_need_key": "请输入有效的 {provider} API 密钥:32 个十六进制字符。",+ "st.captcha.enabled": "已启用",+ "st.captcha.weight": "权重(越高越优先)"},"ja": {"st.captcha.heading": "CAPTCHA の解決",- "st.captcha.order": "一方または両方のサービスを使用できます。有効なキーを保存すると有効になり、クリアすると無効になります。両方が有効な場合、先に CapSolver を試し、失敗またはタイムアウト時に 2Captcha を試します。",+ "st.captcha.order": "任意の数のサービスを有効にできます。キー入力で「有効」が選択され、保存で反映されます。解除するとキーを保持したまま使用を停止します。重みが大きい順に試し、失敗やタイムアウト時は次の対応サービスに進みます。","st.captcha.capsolver_desc": "CapSolver アカウントで reCAPTCHA v2/v3、hCaptcha、Turnstile、画像 CAPTCHA を自動的に解決します。",- "st.captcha.two_desc": "2Captcha アカウントで reCAPTCHA v2/v3、Turnstile、画像 CAPTCHA を自動的に解決します。hCaptcha には CapSolver が必要です。",- "st.captcha.two_key": "2Captcha API キー",- "st.captcha.two_need_key": "有効な 2Captcha API キーを入力してください。16 進数で 32 文字です。",- "st.captcha.two_saved": "保存しました。2Captcha は有効です。",- "st.captcha.providers_security": "キーはこのブラウザーに平文で保存されます。有効な各サービスで試行に料金がかかる場合があります。タイムアウト後の切り替えでは、最初のタスクが実行中でも両方のアカウントに料金が発生することがあります。有効な結果が得られない場合、エージェントは CAPTCHA を手動で完了するよう求めます。"+ "st.captcha.providers_security": "キーはこのブラウザに平文で保存されます。タイムアウトを含め、試行した各サービスで料金が発生する場合があります。すべて失敗すると、エージェントが手動での CAPTCHA 完了を求めます。",+ "st.captcha.provider_desc": "{provider} アカウントで reCAPTCHA v2/v3、Turnstile、画像 CAPTCHA を自動的に解決します。hCaptcha には CapSolver が必要です。",+ "st.captcha.provider_key": "{provider} API キー",+ "st.captcha.provider_need_key": "有効な {provider} API キーを入力してください。16 進数で 32 文字です。",+ "st.captcha.enabled": "有効",+ "st.captcha.weight": "重み(大きい順)"},"ko": {"st.captcha.heading": "CAPTCHA 해결",- "st.captcha.order": "한 서비스 또는 두 서비스를 모두 사용할 수 있습니다. 유효한 키를 저장하면 활성화되고 지우면 비활성화됩니다. 둘 다 활성화된 경우 CapSolver를 먼저 시도하고 실패하거나 시간이 초과되면 2Captcha를 시도합니다.",+ "st.captcha.order": "원하는 만큼 제공업체를 활성화하세요. 키를 입력하면 활성화가 선택되고 저장하면 적용됩니다. 선택을 해제하면 키는 보관하되 사용하지 않습니다. 가중치가 높은 순서로 시도하며 실패하거나 시간이 초과되면 다음 호환 업체를 시도합니다.","st.captcha.capsolver_desc": "CapSolver 계정으로 reCAPTCHA v2/v3, hCaptcha, Turnstile 및 이미지 CAPTCHA를 자동으로 해결합니다.",- "st.captcha.two_desc": "2Captcha 계정으로 reCAPTCHA v2/v3, Turnstile 및 이미지 CAPTCHA를 자동으로 해결합니다. hCaptcha에는 CapSolver가 필요합니다.",- "st.captcha.two_key": "2Captcha API 키",- "st.captcha.two_need_key": "유효한 2Captcha API 키를 입력하세요. 32자리 16진수여야 합니다.",- "st.captcha.two_saved": "저장되었습니다. 2Captcha가 활성화되었습니다.",- "st.captcha.providers_security": "키는 이 브라우저에 일반 텍스트로 저장됩니다. 활성화된 각 서비스는 시도에 대해 요금을 부과할 수 있습니다. 시간 초과 후 전환하면 첫 작업이 진행 중이어도 두 계정 모두에 요금이 부과될 수 있습니다. 사용 가능한 결과가 없으면 에이전트가 CAPTCHA를 직접 완료하도록 요청합니다."+ "st.captcha.providers_security": "키는 이 브라우저에 일반 텍스트로 저장됩니다. 시간 초과를 포함하여 시도한 각 업체에서 요금이 발생할 수 있습니다. 모두 실패하면 에이전트가 CAPTCHA를 직접 완료하도록 요청합니다.",+ "st.captcha.provider_desc": "{provider} 계정으로 reCAPTCHA v2/v3, Turnstile 및 이미지 CAPTCHA를 자동으로 해결합니다. hCaptcha에는 CapSolver가 필요합니다.",+ "st.captcha.provider_key": "{provider} API 키",+ "st.captcha.provider_need_key": "유효한 {provider} API 키를 입력하세요. 32자리 16진수여야 합니다.",+ "st.captcha.enabled": "활성화",+ "st.captcha.weight": "가중치 (높을수록 먼저)"},"ru": {"st.captcha.heading": "Решение CAPTCHA",- "st.captcha.order": "Используйте один или оба сервиса. Сохранение действительного ключа включает сервис, очистка отключает его. Если включены оба, сначала используется CapSolver, затем 2Captcha при ошибке или тайм-ауте.",+ "st.captcha.order": "Включите любое число сервисов. Ввод ключа отмечает «Включён»; сохранение применяет выбор. Снимите отметку, чтобы хранить ключ без использования. Больший вес идёт первым; при ошибке или тайм-ауте пробуется следующий совместимый сервис.","st.captcha.capsolver_desc": "Автоматически решайте reCAPTCHA v2/v3, hCaptcha, Turnstile и CAPTCHA с изображениями через свой аккаунт CapSolver.",- "st.captcha.two_desc": "Автоматически решайте reCAPTCHA v2/v3, Turnstile и CAPTCHA с изображениями через свой аккаунт 2Captcha. Для hCaptcha нужен CapSolver.",- "st.captcha.two_key": "API-ключ 2Captcha",- "st.captcha.two_need_key": "Введите действительный API-ключ 2Captcha: 32 шестнадцатеричных символа.",- "st.captcha.two_saved": "Сохранено. 2Captcha включён.",- "st.captcha.providers_security": "Ключи хранятся в этом браузере в открытом виде. Каждый включённый сервис может взимать плату за попытку. Переход после тайм-аута может привести к списанию с обоих аккаунтов, даже если первая задача ещё выполняется. Если подходящего решения нет, агент попросит вас пройти CAPTCHA вручную."+ "st.captcha.providers_security": "Ключи хранятся открытым текстом в этом браузере. Каждый опробованный сервис может списать плату, в том числе при тайм-ауте. Если все попытки неудачны, агент попросит решить CAPTCHA вручную.",+ "st.captcha.provider_desc": "Автоматически решайте reCAPTCHA v2/v3, Turnstile и CAPTCHA с изображениями через свой аккаунт {provider}. Для hCaptcha нужен CapSolver.",+ "st.captcha.provider_key": "API-ключ {provider}",+ "st.captcha.provider_need_key": "Введите действительный API-ключ {provider}: 32 шестнадцатеричных символа.",+ "st.captcha.enabled": "Включён",+ "st.captcha.weight": "Вес (больший первым)"},"uk": {"st.captcha.heading": "Розв’язання CAPTCHA",- "st.captcha.order": "Використовуйте один або обидва сервіси. Збереження дійсного ключа вмикає сервіс, очищення вимикає його. Якщо ввімкнено обидва, спочатку використовується CapSolver, а в разі помилки або тайм-ауту — 2Captcha.",+ "st.captcha.order": "Увімкніть будь-яку кількість сервісів. Введення ключа позначає «Увімкнено»; збереження застосовує вибір. Зніміть позначку, щоб зберігати ключ без використання. Більша вага йде першою; у разі помилки або тайм-ауту пробується наступний сумісний сервіс.","st.captcha.capsolver_desc": "Автоматично розв’язуйте reCAPTCHA v2/v3, hCaptcha, Turnstile та CAPTCHA із зображеннями через свій обліковий запис CapSolver.",- "st.captcha.two_desc": "Автоматично розв’язуйте reCAPTCHA v2/v3, Turnstile та CAPTCHA із зображеннями через свій обліковий запис 2Captcha. Для hCaptcha потрібен CapSolver.",- "st.captcha.two_key": "API-ключ 2Captcha",- "st.captcha.two_need_key": "Введіть дійсний API-ключ 2Captcha: 32 шістнадцяткові символи.",- "st.captcha.two_saved": "Збережено. 2Captcha ввімкнено.",- "st.captcha.providers_security": "Ключі зберігаються в цьому браузері відкритим текстом. Кожен увімкнений сервіс може стягувати плату за спробу. Перехід після тайм-ауту може спричинити списання з обох рахунків, навіть якщо перше завдання ще виконується. Якщо придатного рішення немає, агент попросить вас пройти CAPTCHA вручну."+ "st.captcha.providers_security": "Ключі зберігаються відкритим текстом у цьому браузері. Кожен випробуваний сервіс може стягнути плату, зокрема за тайм-ауту. Якщо всі спроби невдалі, агент попросить розв’язати CAPTCHA вручну.",+ "st.captcha.provider_desc": "Автоматично розв’язуйте reCAPTCHA v2/v3, Turnstile та CAPTCHA із зображеннями через свій обліковий запис {provider}. Для hCaptcha потрібен CapSolver.",+ "st.captcha.provider_key": "API-ключ {provider}",+ "st.captcha.provider_need_key": "Введіть дійсний API-ключ {provider}: 32 шістнадцяткові символи.",+ "st.captcha.enabled": "Увімкнено",+ "st.captcha.weight": "Вага (більша першою)"},"pl": {"st.captcha.heading": "Rozwiązywanie CAPTCHA",- "st.captcha.order": "Używaj jednej lub obu usług. Zapisanie prawidłowego klucza włącza usługę, a wyczyszczenie ją wyłącza. Gdy obie są aktywne, najpierw działa CapSolver, a po błędzie lub przekroczeniu czasu — 2Captcha.",+ "st.captcha.order": "Włącz dowolną liczbę usług. Wpisanie klucza zaznacza Włączone; Zapisz zatwierdza wybór. Odznacz, aby zachować klucz bez używania go. Wyższa waga ma pierwszeństwo; po błędzie lub przekroczeniu czasu próbowana jest kolejna zgodna usługa.","st.captcha.capsolver_desc": "Automatycznie rozwiązuj reCAPTCHA v2/v3, hCaptcha, Turnstile i obrazkowe CAPTCHA za pomocą konta CapSolver.",- "st.captcha.two_desc": "Automatycznie rozwiązuj reCAPTCHA v2/v3, Turnstile i obrazkowe CAPTCHA za pomocą konta 2Captcha. hCaptcha wymaga CapSolver.",- "st.captcha.two_key": "Klucz API 2Captcha",- "st.captcha.two_need_key": "Wpisz prawidłowy klucz API 2Captcha: 32 znaki szesnastkowe.",- "st.captcha.two_saved": "Zapisano. 2Captcha jest włączone.",- "st.captcha.providers_security": "Klucze są przechowywane w tej przeglądarce jawnym tekstem. Każda aktywna usługa może pobrać opłatę za próbę. Przełączenie po przekroczeniu czasu może obciążyć oba konta, nawet gdy pierwsze zadanie nadal trwa. Jeśli nie ma użytecznego rozwiązania, agent poprosi o ręczne ukończenie CAPTCHA."+ "st.captcha.providers_security": "Klucze są przechowywane jawnym tekstem w tej przeglądarce. Każda wypróbowana usługa może naliczyć opłatę, także po przekroczeniu czasu. Jeśli wszystkie zawiodą, agent poprosi o ręczne rozwiązanie CAPTCHA.",+ "st.captcha.provider_desc": "Automatycznie rozwiązuj reCAPTCHA v2/v3, Turnstile i obrazkowe CAPTCHA za pomocą konta {provider}. hCaptcha wymaga CapSolver.",+ "st.captcha.provider_key": "Klucz API {provider}",+ "st.captcha.provider_need_key": "Wpisz prawidłowy klucz API {provider}: 32 znaki szesnastkowe.",+ "st.captcha.enabled": "Włączone",+ "st.captcha.weight": "Waga (wyższa najpierw)"},"ar": {"st.captcha.heading": "حل CAPTCHA",- "st.captcha.order": "استخدم خدمة واحدة أو الخدمتين. حفظ مفتاح صالح يفعّل الخدمة، ومسحه يعطّلها. عند تفعيل الخدمتين، تُجرّب CapSolver أولاً ثم 2Captcha عند الفشل أو انتهاء المهلة.",+ "st.captcha.order": "يمكن تفعيل أي عدد من الخدمات. إدخال المفتاح يحدد «مفعّل»؛ والحفظ يطبّق الاختيار. ألغِ التحديد للاحتفاظ بالمفتاح دون استخدامه. يُجرّب الوزن الأعلى أولاً؛ وعند الفشل أو انتهاء المهلة تُجرّب الخدمة المتوافقة التالية.","st.captcha.capsolver_desc": "حل reCAPTCHA v2/v3 وhCaptcha وTurnstile واختبارات CAPTCHA المصوّرة تلقائياً باستخدام حساب CapSolver.",- "st.captcha.two_desc": "حل reCAPTCHA v2/v3 وTurnstile واختبارات CAPTCHA المصوّرة تلقائياً باستخدام حساب 2Captcha. تتطلب hCaptcha خدمة CapSolver.",- "st.captcha.two_key": "مفتاح API لخدمة 2Captcha",- "st.captcha.two_need_key": "أدخل مفتاح API صالحاً لخدمة 2Captcha: 32 رمزاً بالنظام الست عشري.",- "st.captcha.two_saved": "تم الحفظ. خدمة 2Captcha مفعّلة.",- "st.captcha.providers_security": "تُحفظ المفاتيح كنص صريح في هذا المتصفح. قد تفرض كل خدمة مفعّلة رسوماً على المحاولة. قد يؤدي الانتقال بعد انتهاء المهلة إلى احتساب رسوم على الحسابين حتى لو كانت المهمة الأولى لا تزال جارية. إذا لم تُرجع أي خدمة حلاً صالحاً، يطلب منك الوكيل إكمال CAPTCHA يدوياً."+ "st.captcha.providers_security": "تُخزّن المفاتيح كنص عادي في هذا المتصفح. قد تفرض كل خدمة جرى تجربتها رسوماً، حتى عند انتهاء المهلة. إذا فشلت جميع المحاولات، يطلب منك الوكيل إكمال CAPTCHA يدوياً.",+ "st.captcha.provider_desc": "حل reCAPTCHA v2/v3 وTurnstile واختبارات CAPTCHA المصوّرة تلقائياً باستخدام حساب {provider}. تتطلب hCaptcha خدمة CapSolver.",+ "st.captcha.provider_key": "مفتاح API لخدمة {provider}",+ "st.captcha.provider_need_key": "أدخل مفتاح API صالحاً لخدمة {provider}: 32 رمزاً بالنظام الست عشري.",+ "st.captcha.enabled": "مفعّل",+ "st.captcha.weight": "الوزن (الأعلى أولاً)"},"he": {"st.captcha.heading": "פתרון CAPTCHA",- "st.captcha.order": "אפשר להשתמש בספק אחד או בשניהם. שמירת מפתח תקין מפעילה ספק; ניקוי משבית אותו. כששניהם פעילים, CapSolver נבדק ראשון ולאחר כישלון או פסק זמן נעשה ניסיון עם 2Captcha.",+ "st.captcha.order": "אפשר להפעיל כל מספר של ספקים. הזנת מפתח מסמנת פעיל; שמירה מחילה את הבחירה. ביטול הסימון שומר את המפתח ללא שימוש. משקל גבוה יותר קודם; בכשל או בחריגת זמן מנסים את הספק התואם הבא.","st.captcha.capsolver_desc": "פתרון אוטומטי של reCAPTCHA v2/v3, hCaptcha, Turnstile ו-CAPTCHA בתמונה באמצעות חשבון CapSolver שלך.",- "st.captcha.two_desc": "פתרון אוטומטי של reCAPTCHA v2/v3, Turnstile ו-CAPTCHA בתמונה באמצעות חשבון 2Captcha שלך. hCaptcha דורש CapSolver.",- "st.captcha.two_key": "מפתח API של 2Captcha",- "st.captcha.two_need_key": "יש להזין מפתח API תקין של 2Captcha: 32 תווים הקסדצימליים.",- "st.captcha.two_saved": "נשמר. 2Captcha פעיל.",- "st.captcha.providers_security": "המפתחות נשמרים כטקסט גלוי בדפדפן זה. כל ספק פעיל עשוי לחייב עבור ניסיון. מעבר לאחר פסק זמן עשוי לחייב את שני החשבונות גם אם המשימה הראשונה עדיין פועלת. אם לא מתקבל פתרון שמיש, הסוכן יבקש ממך להשלים את ה-CAPTCHA ידנית."+ "st.captcha.providers_security": "המפתחות נשמרים כטקסט גלוי בדפדפן זה. כל ספק שנוסה עשוי לחייב, גם לאחר חריגת זמן. אם כל הניסיונות נכשלים, הסוכן מבקש להשלים את ה-CAPTCHA ידנית.",+ "st.captcha.provider_desc": "פתרון אוטומטי של reCAPTCHA v2/v3, Turnstile ו-CAPTCHA בתמונה באמצעות חשבון {provider} שלך. hCaptcha דורש CapSolver.",+ "st.captcha.provider_key": "מפתח API של {provider}",+ "st.captcha.provider_need_key": "יש להזין מפתח API תקין של {provider}: 32 תווים הקסדצימליים.",+ "st.captcha.enabled": "פעיל",+ "st.captcha.weight": "משקל (גבוה קודם)"},"fa": {"st.captcha.heading": "حل CAPTCHA",- "st.captcha.order": "از یک سرویس یا هر دو استفاده کنید. ذخیرهٔ کلید معتبر سرویس را فعال و پاککردن آن غیرفعال میکند. اگر هر دو فعال باشند، ابتدا CapSolver و در صورت خطا یا پایان مهلت، 2Captcha امتحان میشود.",+ "st.captcha.order": "هر تعداد ارائهدهنده را فعال کنید. وارد کردن کلید، فعال را علامت میزند؛ ذخیره انتخاب را اعمال میکند. برای نگهداری کلید بدون استفاده، علامت را بردارید. وزن بالاتر اول اجرا میشود؛ در خطا یا پایان مهلت، ارائهدهنده سازگار بعدی امتحان میشود.","st.captcha.capsolver_desc": "با حساب CapSolver خود reCAPTCHA v2/v3، hCaptcha، Turnstile و CAPTCHAهای تصویری را خودکار حل کنید.",- "st.captcha.two_desc": "با حساب 2Captcha خود reCAPTCHA v2/v3، Turnstile و CAPTCHAهای تصویری را خودکار حل کنید. hCaptcha به CapSolver نیاز دارد.",- "st.captcha.two_key": "کلید API سرویس 2Captcha",- "st.captcha.two_need_key": "یک کلید API معتبر 2Captcha وارد کنید: ۳۲ نویسهٔ شانزدهشانزدهی.",- "st.captcha.two_saved": "ذخیره شد. 2Captcha فعال است.",- "st.captcha.providers_security": "کلیدها بهصورت متن ساده در این مرورگر ذخیره میشوند. هر سرویس فعال ممکن است برای تلاش هزینه بگیرد. تغییر سرویس پس از پایان مهلت ممکن است از هر دو حساب هزینه بگیرد، حتی اگر کار اول هنوز در حال اجرا باشد. اگر راهحل قابل استفادهای دریافت نشود، عامل از شما میخواهد CAPTCHA را دستی تکمیل کنید."+ "st.captcha.providers_security": "کلیدها بهصورت متن ساده در این مرورگر ذخیره میشوند. هر ارائهدهنده امتحانشده ممکن است هزینه بگیرد، حتی پس از پایان مهلت. اگر همه تلاشها شکست بخورند، عامل تکمیل دستی CAPTCHA را درخواست میکند.",+ "st.captcha.provider_desc": "با حساب {provider} خود reCAPTCHA v2/v3، Turnstile و CAPTCHAهای تصویری را خودکار حل کنید. hCaptcha به CapSolver نیاز دارد.",+ "st.captcha.provider_key": "کلید API سرویس {provider}",+ "st.captcha.provider_need_key": "یک کلید API معتبر {provider} وارد کنید: ۳۲ نویسهٔ شانزدهشانزدهی.",+ "st.captcha.enabled": "فعال",+ "st.captcha.weight": "وزن (بالاتر ابتدا)"},"hi": {"st.captcha.heading": "CAPTCHA हल करना",- "st.captcha.order": "एक या दोनों सेवाओं का उपयोग करें। मान्य कुंजी सहेजने से सेवा सक्रिय होती है; साफ़ करने से बंद होती है। दोनों सक्रिय हों तो पहले CapSolver और विफलता या समय सीमा पूरी होने पर 2Captcha आज़माया जाता है।",+ "st.captcha.order": "जितने चाहें प्रदाता सक्षम करें। कुंजी डालने पर सक्षम चुना जाता है; सहेजने पर लागू होता है। कुंजी रखकर उपयोग बंद करने के लिए चयन हटाएँ। अधिक भार पहले चलता है; विफलता या समय समाप्त होने पर अगला संगत प्रदाता आज़माया जाता है।","st.captcha.capsolver_desc": "अपने CapSolver खाते से reCAPTCHA v2/v3, hCaptcha, Turnstile और चित्र CAPTCHA अपने-आप हल करें।",- "st.captcha.two_desc": "अपने 2Captcha खाते से reCAPTCHA v2/v3, Turnstile और चित्र CAPTCHA अपने-आप हल करें। hCaptcha के लिए CapSolver चाहिए।",- "st.captcha.two_key": "2Captcha API कुंजी",- "st.captcha.two_need_key": "मान्य 2Captcha API कुंजी दर्ज करें: 32 हेक्साडेसिमल वर्ण।",- "st.captcha.two_saved": "सहेजा गया। 2Captcha सक्रिय है।",- "st.captcha.providers_security": "कुंजियाँ इस ब्राउज़र में सादे पाठ के रूप में सहेजी जाती हैं। हर सक्रिय सेवा प्रयास के लिए शुल्क ले सकती है। समय सीमा पूरी होने पर दूसरी सेवा आज़माने से दोनों खातों पर शुल्क लग सकता है, भले ही पहला काम अभी चल रहा हो। उपयोग योग्य समाधान न मिलने पर एजेंट आपसे CAPTCHA मैन्युअल रूप से पूरा करने को कहता है।"+ "st.captcha.providers_security": "कुंजियाँ इस ब्राउज़र में सादे पाठ में रखी जाती हैं। हर आज़माया गया प्रदाता शुल्क ले सकता है, समय समाप्त होने पर भी। सभी प्रयास विफल हों तो एजेंट CAPTCHA स्वयं पूरा करने को कहता है।",+ "st.captcha.provider_desc": "अपने {provider} खाते से reCAPTCHA v2/v3, Turnstile और चित्र CAPTCHA अपने-आप हल करें। hCaptcha के लिए CapSolver चाहिए।",+ "st.captcha.provider_key": "{provider} API कुंजी",+ "st.captcha.provider_need_key": "मान्य {provider} API कुंजी दर्ज करें: 32 हेक्साडेसिमल वर्ण।",+ "st.captcha.enabled": "सक्षम",+ "st.captcha.weight": "भार (अधिक पहले)"},"bn": {"st.captcha.heading": "CAPTCHA সমাধান",- "st.captcha.order": "একটি বা উভয় পরিষেবা ব্যবহার করুন। বৈধ কী সংরক্ষণ করলে পরিষেবা চালু হয়; মুছে ফেললে বন্ধ হয়। উভয়টি চালু থাকলে প্রথমে CapSolver, ব্যর্থ হলে বা সময় শেষ হলে 2Captcha চেষ্টা করা হয়।",+ "st.captcha.order": "যত খুশি সেবা চালু করুন। কী লিখলে সক্রিয় নির্বাচিত হয়; সংরক্ষণ করলে প্রয়োগ হয়। কী রেখে ব্যবহার বন্ধ করতে নির্বাচন সরান। বেশি ওজন আগে চলে; ব্যর্থ হলে বা সময় শেষ হলে পরের উপযুক্ত সেবা চেষ্টা করা হয়।","st.captcha.capsolver_desc": "আপনার CapSolver অ্যাকাউন্ট দিয়ে reCAPTCHA v2/v3, hCaptcha, Turnstile এবং ছবির CAPTCHA স্বয়ংক্রিয়ভাবে সমাধান করুন।",- "st.captcha.two_desc": "আপনার 2Captcha অ্যাকাউন্ট দিয়ে reCAPTCHA v2/v3, Turnstile এবং ছবির CAPTCHA স্বয়ংক্রিয়ভাবে সমাধান করুন। hCaptcha-এর জন্য CapSolver প্রয়োজন।",- "st.captcha.two_key": "2Captcha API কী",- "st.captcha.two_need_key": "একটি বৈধ 2Captcha API কী লিখুন: ৩২টি হেক্সাডেসিমেল অক্ষর।",- "st.captcha.two_saved": "সংরক্ষিত। 2Captcha চালু আছে।",- "st.captcha.providers_security": "কীগুলি এই ব্রাউজারে সাধারণ পাঠ্য হিসেবে সংরক্ষিত থাকে। প্রতিটি সক্রিয় পরিষেবা চেষ্টার জন্য অর্থ নিতে পারে। সময় শেষ হলে অন্য পরিষেবায় যাওয়ার কারণে প্রথম কাজ চলতে থাকলেও উভয় অ্যাকাউন্টে খরচ হতে পারে। ব্যবহারযোগ্য সমাধান না এলে এজেন্ট আপনাকে CAPTCHA নিজে সম্পূর্ণ করতে বলে।"+ "st.captcha.providers_security": "কীগুলো এই ব্রাউজারে সাধারণ পাঠ্য হিসেবে সংরক্ষিত হয়। চেষ্টা করা প্রতিটি সেবা চার্জ নিতে পারে, সময় শেষ হলেও। সব চেষ্টা ব্যর্থ হলে এজেন্ট নিজে CAPTCHA সম্পূর্ণ করতে বলে।",+ "st.captcha.provider_desc": "আপনার {provider} অ্যাকাউন্ট দিয়ে reCAPTCHA v2/v3, Turnstile এবং ছবির CAPTCHA স্বয়ংক্রিয়ভাবে সমাধান করুন। hCaptcha-এর জন্য CapSolver প্রয়োজন।",+ "st.captcha.provider_key": "{provider} API কী",+ "st.captcha.provider_need_key": "একটি বৈধ {provider} API কী লিখুন: ৩২টি হেক্সাডেসিমেল অক্ষর।",+ "st.captcha.enabled": "সক্রিয়",+ "st.captcha.weight": "ওজন (বেশি আগে)"},"id": {"st.captcha.heading": "Penyelesaian CAPTCHA",- "st.captcha.order": "Gunakan salah satu atau kedua layanan. Menyimpan kunci valid mengaktifkan layanan; Hapus menonaktifkannya. Jika keduanya aktif, CapSolver dicoba dahulu, lalu 2Captcha jika gagal atau batas waktu habis.",+ "st.captcha.order": "Aktifkan sebanyak mungkin penyedia yang diinginkan. Memasukkan kunci mencentang Aktif; Simpan menerapkannya. Hapus centang untuk menyimpan kunci tanpa menggunakannya. Bobot lebih tinggi didahulukan; saat gagal atau waktu habis, penyedia kompatibel berikutnya dicoba.","st.captcha.capsolver_desc": "Selesaikan reCAPTCHA v2/v3, hCaptcha, Turnstile, dan CAPTCHA gambar secara otomatis dengan akun CapSolver Anda.",- "st.captcha.two_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile, dan CAPTCHA gambar secara otomatis dengan akun 2Captcha Anda. hCaptcha memerlukan CapSolver.",- "st.captcha.two_key": "Kunci API 2Captcha",- "st.captcha.two_need_key": "Masukkan kunci API 2Captcha yang valid: 32 karakter heksadesimal.",- "st.captcha.two_saved": "Disimpan. 2Captcha aktif.",- "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa di browser ini. Setiap layanan aktif dapat mengenakan biaya per percobaan. Peralihan setelah batas waktu habis dapat membebani kedua akun meskipun tugas pertama masih berjalan. Jika tidak ada solusi yang dapat digunakan, agen meminta Anda menyelesaikan CAPTCHA secara manual."+ "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa di browser ini. Setiap penyedia yang dicoba dapat mengenakan biaya, termasuk saat waktu habis. Jika semuanya gagal, agen meminta Anda menyelesaikan CAPTCHA secara manual.",+ "st.captcha.provider_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile, dan CAPTCHA gambar secara otomatis dengan akun {provider} Anda. hCaptcha memerlukan CapSolver.",+ "st.captcha.provider_key": "Kunci API {provider}",+ "st.captcha.provider_need_key": "Masukkan kunci API {provider} yang valid: 32 karakter heksadesimal.",+ "st.captcha.enabled": "Aktif",+ "st.captcha.weight": "Bobot (lebih tinggi dahulu)"},"ms": {"st.captcha.heading": "Penyelesaian CAPTCHA",- "st.captcha.order": "Gunakan satu atau kedua-dua perkhidmatan. Menyimpan kunci sah mengaktifkan perkhidmatan; Kosongkan menyahaktifkannya. Jika kedua-duanya aktif, CapSolver dicuba dahulu, kemudian 2Captcha jika gagal atau tamat masa.",+ "st.captcha.order": "Aktifkan seberapa banyak penyedia yang dikehendaki. Memasukkan kunci menandakan Aktif; Simpan menerapkannya. Buang tanda untuk menyimpan kunci tanpa menggunakannya. Wajaran lebih tinggi didahulukan; jika gagal atau tamat masa, penyedia serasi seterusnya dicuba.","st.captcha.capsolver_desc": "Selesaikan reCAPTCHA v2/v3, hCaptcha, Turnstile dan CAPTCHA imej secara automatik dengan akaun CapSolver anda.",- "st.captcha.two_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile dan CAPTCHA imej secara automatik dengan akaun 2Captcha anda. hCaptcha memerlukan CapSolver.",- "st.captcha.two_key": "Kunci API 2Captcha",- "st.captcha.two_need_key": "Masukkan kunci API 2Captcha yang sah: 32 aksara perenambelasan.",- "st.captcha.two_saved": "Disimpan. 2Captcha aktif.",- "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa dalam pelayar ini. Setiap perkhidmatan aktif boleh mengenakan caj bagi percubaan. Pertukaran selepas tamat masa boleh mengenakan caj pada kedua-dua akaun walaupun tugas pertama masih berjalan. Jika tiada penyelesaian yang boleh digunakan, ejen meminta anda melengkapkan CAPTCHA secara manual."+ "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa dalam pelayar ini. Setiap penyedia yang dicuba mungkin mengenakan caj, termasuk selepas tamat masa. Jika semuanya gagal, ejen meminta anda melengkapkan CAPTCHA secara manual.",+ "st.captcha.provider_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile dan CAPTCHA imej secara automatik dengan akaun {provider} anda. hCaptcha memerlukan CapSolver.",+ "st.captcha.provider_key": "Kunci API {provider}",+ "st.captcha.provider_need_key": "Masukkan kunci API {provider} yang sah: 32 aksara perenambelasan.",+ "st.captcha.enabled": "Aktif",+ "st.captcha.weight": "Wajaran (lebih tinggi dahulu)"},"vi": {"st.captcha.heading": "Giải CAPTCHA",- "st.captcha.order": "Dùng một hoặc cả hai dịch vụ. Lưu khóa hợp lệ để bật dịch vụ; Xóa để tắt. Khi cả hai được bật, CapSolver được thử trước, rồi đến 2Captcha nếu thất bại hoặc hết thời gian chờ.",+ "st.captcha.order": "Bật bao nhiêu nhà cung cấp tùy ý. Nhập khóa sẽ chọn Đã bật; Lưu sẽ áp dụng. Bỏ chọn để giữ khóa mà không sử dụng. Trọng số cao được thử trước; khi lỗi hoặc hết thời gian, nhà cung cấp tương thích tiếp theo được thử.","st.captcha.capsolver_desc": "Tự động giải reCAPTCHA v2/v3, hCaptcha, Turnstile và CAPTCHA hình ảnh bằng tài khoản CapSolver của bạn.",- "st.captcha.two_desc": "Tự động giải reCAPTCHA v2/v3, Turnstile và CAPTCHA hình ảnh bằng tài khoản 2Captcha của bạn. hCaptcha cần CapSolver.",- "st.captcha.two_key": "Khóa API 2Captcha",- "st.captcha.two_need_key": "Nhập khóa API 2Captcha hợp lệ: 32 ký tự thập lục phân.",- "st.captcha.two_saved": "Đã lưu. 2Captcha đã được bật.",- "st.captcha.providers_security": "Khóa được lưu dưới dạng văn bản thuần trong trình duyệt này. Mỗi dịch vụ đang bật có thể tính phí cho một lần thử. Việc chuyển dịch vụ sau khi hết thời gian chờ có thể tính phí cả hai tài khoản dù tác vụ đầu vẫn đang chạy. Nếu không có lời giải dùng được, tác nhân sẽ yêu cầu bạn hoàn tất CAPTCHA thủ công."+ "st.captcha.providers_security": "Khóa được lưu dưới dạng văn bản thuần trong trình duyệt này. Mỗi nhà cung cấp đã thử có thể tính phí, kể cả khi hết thời gian. Nếu tất cả thất bại, tác nhân yêu cầu bạn hoàn thành CAPTCHA thủ công.",+ "st.captcha.provider_desc": "Tự động giải reCAPTCHA v2/v3, Turnstile và CAPTCHA hình ảnh bằng tài khoản {provider} của bạn. hCaptcha cần CapSolver.",+ "st.captcha.provider_key": "Khóa API {provider}",+ "st.captcha.provider_need_key": "Nhập khóa API {provider} hợp lệ: 32 ký tự thập lục phân.",+ "st.captcha.enabled": "Đã bật",+ "st.captcha.weight": "Trọng số (cao trước)"},"th": {"st.captcha.heading": "การแก้ CAPTCHA",- "st.captcha.order": "ใช้บริการเดียวหรือทั้งสองบริการได้ การบันทึกคีย์ที่ถูกต้องจะเปิดใช้บริการ และการล้างจะปิดใช้ หากเปิดทั้งสอง จะลอง CapSolver ก่อน แล้วจึงลอง 2Captcha เมื่อล้มเหลวหรือหมดเวลา",+ "st.captcha.order": "เปิดใช้ผู้ให้บริการได้ตามต้องการ เมื่อกรอกคีย์จะเลือกเปิดใช้งาน และบันทึกเพื่อใช้ค่า ยกเลิกการเลือกเพื่อเก็บคีย์ไว้โดยไม่ใช้งาน น้ำหนักสูงจะถูกลองก่อน หากล้มเหลวหรือหมดเวลาจะลองผู้ให้บริการที่รองรับรายถัดไป","st.captcha.capsolver_desc": "แก้ reCAPTCHA v2/v3, hCaptcha, Turnstile และ CAPTCHA แบบรูปภาพโดยอัตโนมัติด้วยบัญชี CapSolver ของคุณ",- "st.captcha.two_desc": "แก้ reCAPTCHA v2/v3, Turnstile และ CAPTCHA แบบรูปภาพโดยอัตโนมัติด้วยบัญชี 2Captcha ของคุณ โดย hCaptcha ต้องใช้ CapSolver",- "st.captcha.two_key": "คีย์ API ของ 2Captcha",- "st.captcha.two_need_key": "ป้อนคีย์ API ของ 2Captcha ที่ถูกต้อง: อักขระฐานสิบหก 32 ตัว",- "st.captcha.two_saved": "บันทึกแล้ว เปิดใช้ 2Captcha แล้ว",- "st.captcha.providers_security": "คีย์จะถูกเก็บเป็นข้อความธรรมดาในเบราว์เซอร์นี้ แต่ละบริการที่เปิดใช้อาจคิดค่าบริการต่อการลอง การเปลี่ยนบริการหลังหมดเวลาอาจทำให้ทั้งสองบัญชีถูกคิดค่าบริการ แม้งานแรกยังทำงานอยู่ หากไม่มีคำตอบที่ใช้ได้ เอเจนต์จะขอให้คุณทำ CAPTCHA ด้วยตนเอง"+ "st.captcha.providers_security": "คีย์ถูกเก็บเป็นข้อความธรรมดาในเบราว์เซอร์นี้ ผู้ให้บริการแต่ละรายที่ลองอาจคิดค่าบริการ รวมถึงเมื่อหมดเวลา หากทุกครั้งล้มเหลว เอเจนต์จะขอให้คุณทำ CAPTCHA เอง",+ "st.captcha.provider_desc": "แก้ reCAPTCHA v2/v3, Turnstile และ CAPTCHA แบบรูปภาพโดยอัตโนมัติด้วยบัญชี {provider} ของคุณ โดย hCaptcha ต้องใช้ CapSolver",+ "st.captcha.provider_key": "คีย์ API ของ {provider}",+ "st.captcha.provider_need_key": "ป้อนคีย์ API ของ {provider} ที่ถูกต้อง: อักขระฐานสิบหก 32 ตัว",+ "st.captcha.enabled": "เปิดใช้งาน",+ "st.captcha.weight": "น้ำหนัก (สูงก่อน)"},"tl": {"st.captcha.heading": "Paglutas ng CAPTCHA",- "st.captcha.order": "Gamitin ang isa o parehong serbisyo. Ang pag-save ng wastong key ay nagpapagana sa serbisyo; ang pag-clear ay nagdi-disable nito. Kapag parehong aktibo, CapSolver muna, saka 2Captcha kapag nabigo o nag-timeout.",+ "st.captcha.order": "Paganahin ang kahit ilang serbisyo. Ang paglagay ng key ay pipili sa Naka-enable; ilalapat ito ng I-save. Alisin ang tsek upang itago ang key nang hindi ginagamit. Mas mataas na timbang ang mauuna; kapag nabigo o nag-timeout, susubukan ang susunod na katugmang serbisyo.","st.captcha.capsolver_desc": "Awtomatikong lutasin ang reCAPTCHA v2/v3, hCaptcha, Turnstile, at mga CAPTCHA na larawan gamit ang iyong CapSolver account.",- "st.captcha.two_desc": "Awtomatikong lutasin ang reCAPTCHA v2/v3, Turnstile, at mga CAPTCHA na larawan gamit ang iyong 2Captcha account. Kailangan ng CapSolver para sa hCaptcha.",- "st.captcha.two_key": "API key ng 2Captcha",- "st.captcha.two_need_key": "Maglagay ng wastong API key ng 2Captcha: 32 hexadecimal na character.",- "st.captcha.two_saved": "Na-save. Naka-enable ang 2Captcha.",- "st.captcha.providers_security": "Nakaimbak ang mga key bilang plain text sa browser na ito. Maaaring maningil ang bawat aktibong serbisyo para sa isang pagsubok. Ang paglipat pagkatapos ng timeout ay maaaring maningil sa parehong account kahit tumatakbo pa ang unang gawain. Kung walang magagamit na solusyon, hihilingin ng agent na kumpletuhin mo mismo ang CAPTCHA."+ "st.captcha.providers_security": "Nakaimbak ang mga key bilang plain text sa browser na ito. Bawat sinubukang serbisyo ay maaaring maningil, kahit matapos ang timeout. Kapag lahat ay nabigo, hihilingin ng agent na kumpletuhin mo mismo ang CAPTCHA.",+ "st.captcha.provider_desc": "Awtomatikong lutasin ang reCAPTCHA v2/v3, Turnstile, at mga CAPTCHA na larawan gamit ang iyong {provider} account. Kailangan ng CapSolver para sa hCaptcha.",+ "st.captcha.provider_key": "API key ng {provider}",+ "st.captcha.provider_need_key": "Maglagay ng wastong API key ng {provider}: 32 hexadecimal na character.",+ "st.captcha.enabled": "Naka-enable",+ "st.captcha.weight": "Timbang (mas mataas muna)"}};diff --git a/src/chrome/src/ui/settings.html b/src/chrome/src/ui/settings.htmlindex c47140834..4595fec15 100644--- a/src/chrome/src/ui/settings.html+++ b/src/chrome/src/ui/settings.html@@ -1390,7 +1390,16 @@.captcha-provider h4 a { color: var(--accent); text-decoration: none; }.captcha-provider h4 a:hover { text-decoration: underline; }.captcha-provider .btn-row { flex-wrap: wrap; }- </style>+ .captcha-provider-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }+ .captcha-enabled { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }+ .captcha-enabled input { margin: 0; width: auto; }+ .captcha-advanced { margin-top: 14px; font-size: 12px; color: var(--text2); }+ .captcha-advanced summary { cursor: pointer; }+ #captcha-card .captcha-advanced > summary::after { content: '+'; }+ #captcha-card .captcha-advanced[open] > summary::after { content: '-'; }+ .captcha-advanced .field { margin-top: 12px; }+ .captcha-advanced input { max-width: 140px; }+</style><link rel="stylesheet" href="apocalypse-comm.css"><link rel="stylesheet" href="download-tracker.css"></head>@@ -1817,11 +1826,14 @@<p class="captcha-description" data-i18n="st.captcha.order"></p><section class="captcha-provider" aria-labelledby="capsolver-heading">- <h4 id="capsolver-heading"><a href="https://capsolver.com" target="_blank" rel="noopener noreferrer">CapSolver</a></h4>- <p class="captcha-description" data-i18n="st.captcha.capsolver_desc"></p>+ <div class="captcha-provider-header">+ <h4 id="capsolver-heading"><a href="https://capsolver.com" target="_blank" rel="noopener noreferrer">CapSolver</a></h4>+ <label class="captcha-enabled"><input type="checkbox" id="captcha-enabled"><span data-i18n="st.captcha.enabled"></span></label>+ </div>+ <p class="captcha-description" data-i18n="st.captcha.capsolver_desc" data-i18n-params='{"provider":"CapSolver"}'></p><div class="field">- <label for="captcha-api-key" data-i18n="st.captcha.api_key.label"></label>- <input type="password" id="captcha-api-key" placeholder="CAP-XXXXXXXXXXXXXXXXXXXX" pattern="CAP-[A-Za-z0-9_-]{20,}" minlength="24" autocomplete="off" spellcheck="false">+ <label for="captcha-api-key" data-i18n="st.captcha.api_key.label" data-i18n-params='{"provider":"CapSolver"}'></label>+ <input type="password" id="captcha-api-key" pattern="CAP-[A-Za-z0-9_-]{20,}" minlength="24" autocomplete="off" spellcheck="false"></div><div class="btn-row"><button class="btn-primary" id="btn-save-captcha" data-i18n="st.captcha.save"></button>@@ -1829,14 +1841,24 @@<button class="btn-secondary" id="btn-clear-captcha" data-i18n="st.captcha.clear"></button></div><div class="test-result" id="test-captcha" role="status" aria-live="polite"></div>+ <details class="captcha-advanced">+ <summary data-i18n="st.display.advanced"></summary>+ <div class="field">+ <label for="captcha-weight" data-i18n="st.captcha.weight"></label>+ <input type="number" id="captcha-weight" value="100" step="any">+ </div>+ </details></section><section class="captcha-provider" aria-labelledby="two-captcha-heading">- <h4 id="two-captcha-heading"><a href="https://2captcha.com" target="_blank" rel="noopener noreferrer">2Captcha</a></h4>- <p class="captcha-description" data-i18n="st.captcha.two_desc"></p>+ <div class="captcha-provider-header">+ <h4 id="two-captcha-heading"><a href="https://2captcha.com" target="_blank" rel="noopener noreferrer">2Captcha</a></h4>+ <label class="captcha-enabled"><input type="checkbox" id="two-captcha-enabled"><span data-i18n="st.captcha.enabled"></span></label>+ </div>+ <p class="captcha-description" data-i18n="st.captcha.provider_desc" data-i18n-params='{"provider":"2Captcha"}'></p><div class="field">- <label for="two-captcha-api-key" data-i18n="st.captcha.two_key"></label>- <input type="password" id="two-captcha-api-key" placeholder="0123456789abcdef0123456789abcdef" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false">+ <label for="two-captcha-api-key" data-i18n="st.captcha.provider_key" data-i18n-params='{"provider":"2Captcha"}'></label>+ <input type="password" id="two-captcha-api-key" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false"></div><div class="btn-row"><button class="btn-primary" id="btn-save-two-captcha" data-i18n="st.captcha.save"></button>@@ -1844,6 +1866,88 @@<button class="btn-secondary" id="btn-clear-two-captcha" data-i18n="st.captcha.clear"></button></div><div class="test-result" id="test-two-captcha" role="status" aria-live="polite"></div>+ <details class="captcha-advanced">+ <summary data-i18n="st.display.advanced"></summary>+ <div class="field">+ <label for="two-captcha-weight" data-i18n="st.captcha.weight"></label>+ <input type="number" id="two-captcha-weight" value="99" step="any">+ </div>+ </details>+ </section>++ <section class="captcha-provider" aria-labelledby="capmonster-heading">+ <div class="captcha-provider-header">+ <h4 id="capmonster-heading"><a href="https://capmonster.cloud" target="_blank" rel="noopener noreferrer">CapMonster Cloud</a></h4>+ <label class="captcha-enabled"><input type="checkbox" id="capmonster-enabled"><span data-i18n="st.captcha.enabled"></span></label>+ </div>+ <p class="captcha-description" data-i18n="st.captcha.provider_desc" data-i18n-params='{"provider":"CapMonster Cloud"}'></p>+ <div class="field">+ <label for="capmonster-api-key" data-i18n="st.captcha.provider_key" data-i18n-params='{"provider":"CapMonster Cloud"}'></label>+ <input type="password" id="capmonster-api-key" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false">+ </div>+ <div class="btn-row">+ <button class="btn-primary" id="btn-save-capmonster" data-i18n="st.captcha.save"></button>+ <button class="btn-secondary" id="btn-test-capmonster" data-i18n="st.captcha.check_balance"></button>+ <button class="btn-secondary" id="btn-clear-capmonster" data-i18n="st.captcha.clear"></button>+ </div>+ <div class="test-result" id="test-capmonster" role="status" aria-live="polite"></div>+ <details class="captcha-advanced">+ <summary data-i18n="st.display.advanced"></summary>+ <div class="field">+ <label for="capmonster-weight" data-i18n="st.captcha.weight"></label>+ <input type="number" id="capmonster-weight" value="98" step="any">+ </div>+ </details>+ </section>++ <section class="captcha-provider" aria-labelledby="solve-captcha-heading">+ <div class="captcha-provider-header">+ <h4 id="solve-captcha-heading"><a href="https://solvecaptcha.com" target="_blank" rel="noopener noreferrer">SolveCaptcha</a></h4>+ <label class="captcha-enabled"><input type="checkbox" id="solve-captcha-enabled"><span data-i18n="st.captcha.enabled"></span></label>+ </div>+ <p class="captcha-description" data-i18n="st.captcha.provider_desc" data-i18n-params='{"provider":"SolveCaptcha"}'></p>+ <div class="field">+ <label for="solve-captcha-api-key" data-i18n="st.captcha.provider_key" data-i18n-params='{"provider":"SolveCaptcha"}'></label>+ <input type="password" id="solve-captcha-api-key" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false">+ </div>+ <div class="btn-row">+ <button class="btn-primary" id="btn-save-solve-captcha" data-i18n="st.captcha.save"></button>+ <button class="btn-secondary" id="btn-test-solve-captcha" data-i18n="st.captcha.check_balance"></button>+ <button class="btn-secondary" id="btn-clear-solve-captcha" data-i18n="st.captcha.clear"></button>+ </div>+ <div class="test-result" id="test-solve-captcha" role="status" aria-live="polite"></div>+ <details class="captcha-advanced">+ <summary data-i18n="st.display.advanced"></summary>+ <div class="field">+ <label for="solve-captcha-weight" data-i18n="st.captcha.weight"></label>+ <input type="number" id="solve-captcha-weight" value="97" step="any">+ </div>+ </details>+ </section>++ <section class="captcha-provider" aria-labelledby="anti-captcha-heading">+ <div class="captcha-provider-header">+ <h4 id="anti-captcha-heading"><a href="https://anti-captcha.com" target="_blank" rel="noopener noreferrer">Anti-Captcha</a></h4>+ <label class="captcha-enabled"><input type="checkbox" id="anti-captcha-enabled"><span data-i18n="st.captcha.enabled"></span></label>+ </div>+ <p class="captcha-description" data-i18n="st.captcha.provider_desc" data-i18n-params='{"provider":"Anti-Captcha"}'></p>+ <div class="field">+ <label for="anti-captcha-api-key" data-i18n="st.captcha.provider_key" data-i18n-params='{"provider":"Anti-Captcha"}'></label>+ <input type="password" id="anti-captcha-api-key" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false">+ </div>+ <div class="btn-row">+ <button class="btn-primary" id="btn-save-anti-captcha" data-i18n="st.captcha.save"></button>+ <button class="btn-secondary" id="btn-test-anti-captcha" data-i18n="st.captcha.check_balance"></button>+ <button class="btn-secondary" id="btn-clear-anti-captcha" data-i18n="st.captcha.clear"></button>+ </div>+ <div class="test-result" id="test-anti-captcha" role="status" aria-live="polite"></div>+ <details class="captcha-advanced">+ <summary data-i18n="st.display.advanced"></summary>+ <div class="field">+ <label for="anti-captcha-weight" data-i18n="st.captcha.weight"></label>+ <input type="number" id="anti-captcha-weight" value="96" step="any">+ </div>+ </details></section><div class="info-box" style="margin-top:16px;" data-i18n="st.captcha.providers_security"></div></div>diff --git a/src/chrome/src/ui/settings.js b/src/chrome/src/ui/settings.jsindex f02b2deb7..4812fc8f0 100644--- a/src/chrome/src/ui/settings.js+++ b/src/chrome/src/ui/settings.js@@ -36,11 +36,7 @@ import {USER_MEMORY_MAX_PROMPT_CHARS_KEY,normalizeUserMemoryMaxPromptChars,} from '../agent/user-memory.js';-import {- isValidCapsolverApiKey,- normalizeCapsolverApiKey,-} from '../agent/capsolver-config.js';-import { isValidTwoCaptchaApiKey, normalizeTwoCaptchaApiKey } from '../agent/captcha-provider-config.js';+import { initCaptchaSettings } from './captcha-settings.js';import {isValidTypesafeApiKey,normalizeSystemOneThreshold,@@ -213,16 +209,6 @@ const btnClearUserMemory = document.getElementById('btn-clear-user-memory');const userMemoryImportText = document.getElementById('user-memory-import-text');const btnImportUserMemory = document.getElementById('btn-import-user-memory');const userMemoryTestResult = document.getElementById('test-user-memory');-const captchaApiKeyInput = document.getElementById('captcha-api-key');-const btnSaveCaptcha = document.getElementById('btn-save-captcha');-const btnTestCaptcha = document.getElementById('btn-test-captcha');-const btnClearCaptcha = document.getElementById('btn-clear-captcha');-const captchaTestResult = document.getElementById('test-captcha');-const twoCaptchaApiKeyInput = document.getElementById('two-captcha-api-key');-const btnSaveTwoCaptcha = document.getElementById('btn-save-two-captcha');-const btnTestTwoCaptcha = document.getElementById('btn-test-two-captcha');-const btnClearTwoCaptcha = document.getElementById('btn-clear-two-captcha');-const twoCaptchaTestResult = document.getElementById('test-two-captcha');const systemOneApiKeyInput = document.getElementById('system-one-api-key');const systemOneEnabledToggle = document.getElementById('toggle-system-one');const systemOneWatchToggle = document.getElementById('toggle-system-one-watch');@@ -940,14 +926,8 @@ async function init() {if (profileTextArea) profileTextArea.value = profileStored.profileText || '';await loadUserMemorySettings();- // Saving a valid key enables its provider independently.- const captchaStored = await chrome.storage.local.get(['capsolverApiKey', 'twoCaptchaApiKey', 'webbrainCloudManaged']);- const cloudCaptchaCard = document.getElementById('captcha-card');- if (cloudCaptchaCard) cloudCaptchaCard.style.display = captchaStored.webbrainCloudManaged === true ? 'none' : '';- if (captchaApiKeyInput) captchaApiKeyInput.value = captchaStored.webbrainCloudManaged === true- ? '' : (captchaStored.capsolverApiKey || '');- if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = captchaStored.webbrainCloudManaged === true- ? '' : (captchaStored.twoCaptchaApiKey || '');+ // Each provider has independent key, enable state, and fallback weight.+ await initCaptchaSettings(chrome.storage.local, sendToBackground, t);await loadCustomSkills();@@ -2382,133 +2362,6 @@ if (btnImportUserMemory) {});}-// --- CapSolver (captcha solving) ----// Saving a structurally valid API key enables CapSolver automatically.--function showCaptchaResult(className, text, color = '') {- if (!captchaTestResult) return;- captchaTestResult.className = `test-result show${className ? ` ${className}` : ''}`;- captchaTestResult.textContent = text;- captchaTestResult.style.color = color || '';- return captchaTestResult;-}--function flashCaptchaResult(className, text) {- const resultEl = showCaptchaResult(className, text);- if (resultEl) setTimeout(() => resultEl.classList.remove('show'), 3000);-}--if (btnSaveCaptcha) {- btnSaveCaptcha.addEventListener('click', async () => {- const key = normalizeCapsolverApiKey(captchaApiKeyInput?.value);- if (!isValidCapsolverApiKey(key)) {- flashCaptchaResult('fail', t('st.captcha.need_key'));- return;- }- if (captchaApiKeyInput) captchaApiKeyInput.value = key;- // Saving the key is the user's explicit opt-in. Keep the legacy boolean- // as an internal consent bit so upgrades preserve an existing opt-out.- await chrome.storage.local.set({- capsolverApiKey: key,- captchaSolverEnabled: true,- });- flashCaptchaResult('ok', t('st.captcha.saved'));- });-}--if (btnTestCaptcha) {- btnTestCaptcha.addEventListener('click', async () => {- const key = normalizeCapsolverApiKey(captchaApiKeyInput?.value);- if (!isValidCapsolverApiKey(key)) {- flashCaptchaResult('fail', t('st.captcha.need_key'));- return;- }- showCaptchaResult('', t('st.captcha.checking'), 'var(--text2)');- try {- const res = await sendToBackground('test_capsolver_balance', { apiKey: key });- if (res?.ok) {- flashCaptchaResult('ok', t('st.captcha.balance_ok', { balance: `$${Number(res.balance).toFixed(4)}` }));- } else {- flashCaptchaResult('fail', t('st.captcha.balance_fail', { error: res?.error || 'Unknown error' }));- }- } catch (e) {- flashCaptchaResult('fail', t('st.captcha.balance_fail', { error: e.message }));- }- });-}--if (btnClearCaptcha) {- btnClearCaptcha.addEventListener('click', async () => {- if (captchaApiKeyInput) captchaApiKeyInput.value = '';- // Remove the legacy flag too so old exports cannot preserve a- // contradictory enabled-without-a-key state.- await chrome.storage.local.remove(['capsolverApiKey', 'captchaSolverEnabled']);- flashCaptchaResult('ok', t('st.captcha.cleared'));- });-}--// --- 2Captcha (independent opt-in and balance check) -----function showTwoCaptchaResult(className, text, color = '') {- if (!twoCaptchaTestResult) return;- twoCaptchaTestResult.className = `test-result show${className ? ` ${className}` : ''}`;- twoCaptchaTestResult.textContent = text;- twoCaptchaTestResult.style.color = color || '';- return twoCaptchaTestResult;-}--function flashTwoCaptchaResult(className, text) {- const resultEl = showTwoCaptchaResult(className, text);- if (resultEl) setTimeout(() => resultEl.classList.remove('show'), 3000);-}--if (btnSaveTwoCaptcha) {- btnSaveTwoCaptcha.addEventListener('click', async () => {- const key = normalizeTwoCaptchaApiKey(twoCaptchaApiKeyInput?.value);- if (!isValidTwoCaptchaApiKey(key)) {- flashTwoCaptchaResult('fail', t('st.captcha.two_need_key'));- return;- }- if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = key;- // Saving this key opts in to 2Captcha independently of CapSolver.- await chrome.storage.local.set({- twoCaptchaApiKey: key,- twoCaptchaEnabled: true,- });- flashTwoCaptchaResult('ok', t('st.captcha.two_saved'));- });-}--if (btnTestTwoCaptcha) {- btnTestTwoCaptcha.addEventListener('click', async () => {- const key = normalizeTwoCaptchaApiKey(twoCaptchaApiKeyInput?.value);- if (!isValidTwoCaptchaApiKey(key)) {- flashTwoCaptchaResult('fail', t('st.captcha.two_need_key'));- return;- }- showTwoCaptchaResult('', t('st.captcha.checking'), 'var(--text2)');- try {- const res = await sendToBackground('test_two_captcha_balance', { apiKey: key });- if (res?.ok) {- flashTwoCaptchaResult('ok', t('st.captcha.balance_ok', { balance: `$${Number(res.balance).toFixed(4)}` }));- } else {- flashTwoCaptchaResult('fail', t('st.captcha.balance_fail', { error: res?.error || 'Unknown error' }));- }- } catch (e) {- flashTwoCaptchaResult('fail', t('st.captcha.balance_fail', { error: e.message }));- }- });-}--if (btnClearTwoCaptcha) {- btnClearTwoCaptcha.addEventListener('click', async () => {- if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = '';- // Clear only this provider's key and consent.- await chrome.storage.local.remove(['twoCaptchaApiKey', 'twoCaptchaEnabled']);- flashTwoCaptchaResult('ok', t('st.captcha.cleared'));- });-}-// --- Provider Rendering ---// Prompt-tier selector, shown only for local + OpenRouter providers (cloud isdiff --git a/src/firefox/src/agent/agent.js b/src/firefox/src/agent/agent.jsindex 67e344fdd..7a2a3b067 100644--- a/src/firefox/src/agent/agent.js+++ b/src/firefox/src/agent/agent.js@@ -22598,7 +22598,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dif (memoryPrompt) prompt += `\n\n${memoryPrompt}`;}if (this.captchaSolverEnabled) {- prompt += `\n\n[CAPTCHA SOLVER — the user has enabled a CAPTCHA solver. When both local providers are enabled, the runtime tries CapSolver first, then 2Captcha on failure or timeout; both may charge. This fallback is internal to one tool call, not permission to call the tool again. 2Captcha supports reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires enabled CapSolver. Unsupported challenges require manual completion. When a CAPTCHA or verification dialog blocks a step, read the page/tree without dismissing it. The runtime will route a supported widget to \`solve_captcha\` once and block page-changing actions until a fresh root accessibility-tree read confirms the dialog cleared. If no supported widget is detected, the solve fails, or the dialog remains after solving, stop and ask the user to complete it manually; never dismiss and resubmit or retry solve_captcha.]`;+ prompt += `\n\n[CAPTCHA SOLVER — the user has enabled a CAPTCHA solver. Enabled providers run in descending weight order; failure or timeout tries the next compatible provider. Each attempt may charge. This fallback is internal to one tool call, not permission to call the tool again. All five providers support reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires enabled CapSolver. Unsupported challenges require manual completion. When a CAPTCHA or verification dialog blocks a step, read the page/tree without dismissing it. The runtime will route a supported widget to \`solve_captcha\` once and block page-changing actions until a fresh root accessibility-tree read confirms the dialog cleared. If no supported widget is detected, the solve fails, or the dialog remains after solving, stop and ask the user to complete it manually; never dismiss and resubmit or retry solve_captcha.]`;}// Ordinary turns get the one-line rendering; the full block is reserved for// policies that need the precise wording (translation targets, multilingual@@ -32637,7 +32637,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout dconst stored = await browser.storage.local.get(CAPTCHA_SETTINGS_KEYS);const providers = getCaptchaProviders(stored);if (!providers.length) {- return noDispatchFailure('No CAPTCHA solver is enabled with a valid API key. Save a CapSolver or 2Captcha key in Settings → General → Advanced, or ask the user to solve the CAPTCHA manually.');+ return noDispatchFailure('No CAPTCHA solver is enabled with a valid API key. Save and enable a CAPTCHA provider key in Settings → General → Advanced, or ask the user to solve the CAPTCHA manually.');}let websiteURL = '';@@ -32774,6 +32774,7 @@ Rules: no prose intro, no conclusion, no "this screenshot shows...", no layout d...(recaptchaDataSValue ? { recaptchaDataSValue } : {}),...(imageBase64 ? { body: imageBase64 } : {}),...(type === 'turnstile' && metadata ? { metadata } : {}),+ ...(type === 'turnstile' && globalThis.navigator?.userAgent ? { userAgent: globalThis.navigator.userAgent } : {}),};if (type === 'image_to_text') {diff --git a/src/firefox/src/agent/captcha-additional-providers.js b/src/firefox/src/agent/captcha-additional-providers.jsnew file mode 100644index 000000000..3c43559b8--- /dev/null+++ b/src/firefox/src/agent/captcha-additional-providers.js@@ -0,0 +1,97 @@+import { buildTwoCaptchaTask } from './two-captcha.js';+import { getJsonCaptchaBalance, solveJsonCaptcha } from './captcha-json-api.js';++// Provider schemas: https://docs.capmonster.cloud/docs/captchas/+// https://anti-captcha.com/apidoc and https://solvecaptcha.com/captcha-solver-api+export function buildAdditionalCaptchaTask(id, task) {+ const mapped = buildTwoCaptchaTask(task);+ if (id === 'anti-captcha') {+ if (task.type === 'AntiTurnstileTaskProxyLess') {+ const { data, pagedata, ...rest } = mapped;+ return { ...rest, ...(data ? { cData: data } : {}), ...(pagedata ? { chlPageData: pagedata } : {}) };+ }+ return mapped;+ }+ if (id !== 'capmonster') throw new Error(`Unknown CAPTCHA provider: ${id}`);+ if (task.type === 'AntiTurnstileTaskProxyLess') {+ const { action, pagedata, ...rest } = mapped;+ return { ...rest, type: 'TurnstileTask', ...(action ? { pageAction: action } : {}),+ ...(task.userAgent ? { userAgent: task.userAgent } : {}),+ ...(pagedata ? { pageData: pagedata, cloudflareTaskType: 'token' } : {}) };+ }+ if (mapped.type === 'RecaptchaV2TaskProxyless') mapped.type = 'RecaptchaV2Task';+ if (mapped.type === 'RecaptchaV2EnterpriseTaskProxyless') mapped.type = 'RecaptchaV2EnterpriseTask';+ return mapped;+}++export function buildSolveCaptchaTask(task) {+ const mapped = buildTwoCaptchaTask(task);+ if (task.type === 'ImageToTextTask') return { method: 'base64', body: task.body, ...(task.case != null ? { regsense: Number(task.case) } : {}) };+ if (task.type === 'AntiTurnstileTaskProxyLess') {+ return { method: 'turnstile', sitekey: task.websiteKey, pageurl: task.websiteURL,+ ...(mapped.action ? { action: mapped.action } : {}), ...(mapped.data ? { data: mapped.data } : {}),+ ...(mapped.pagedata ? { pagedata: mapped.pagedata } : {}) };+ }+ return { method: 'userrecaptcha', googlekey: task.websiteKey, pageurl: task.websiteURL,+ ...(task.type.includes('V3') ? { version: 'v3', min_score: task.minScore || 0.3 } : {}),+ ...(task.pageAction ? { action: task.pageAction } : {}),+ ...(task.type.includes('Enterprise') ? { enterprise: 1 } : {}),+ ...(task.isInvisible != null ? { invisible: Number(task.isInvisible) } : {}),+ ...(task.userAgent ? { userAgent: task.userAgent } : {}),+ ...(task.enterprisePayload?.s || task.recaptchaDataSValue ? { 'data-s': task.enterprisePayload?.s || task.recaptchaDataSValue } : {}) };+}++async function solveCaptchaRequest(apiKey, path, fields, timeout = 30_000) {+ if (!apiKey) throw new Error('No SolveCaptcha API key configured.');+ const body = new URLSearchParams({ key: apiKey, json: '1', ...fields });+ const isGet = path === 'res.php';+ const response = await fetch(`https://api.solvecaptcha.com/${path}${isGet ? `?${body}` : ''}`, {+ method: isGet ? 'GET' : 'POST', ...(isGet ? {} : { body }), signal: AbortSignal.timeout(timeout),+ });+ if (!response.ok) throw new Error(`SolveCaptcha ${path}: HTTP ${response.status}`);+ const result = await response.json().catch(() => null);+ if (!result || ![0, 1].includes(Number(result.status))) throw new Error(`SolveCaptcha ${path}: invalid response`);+ if (Number(result.status) !== 1 && result.request !== 'CAPCHA_NOT_READY') throw new Error(`SolveCaptcha ${path}: ${result.request || 'unknown error'}`);+ return result;+}++async function solveWithSolveCaptcha(apiKey, task) {+ const created = await solveCaptchaRequest(apiKey, 'in.php', buildSolveCaptchaTask(task));+ if (Number(created.status) !== 1 || !created.request) throw new Error('SolveCaptcha: missing task ID');+ const deadline = Date.now() + 180_000;+ // reCAPTCHA requires an initial 20-second wait; subsequent polls are five seconds apart.+ let delay = task.type.startsWith('ReCaptcha') ? 20_000 : 5_000;+ while (Date.now() < deadline) {+ await new Promise(resolve => setTimeout(resolve, delay));+ delay = 5_000;+ const remaining = deadline - Date.now();+ if (remaining <= 0) break;+ const result = await solveCaptchaRequest(apiKey, 'res.php', { action: 'get', id: created.request }, Math.min(30_000, remaining));+ if (Number(result.status) === 1) {+ const field = task.type === 'ImageToTextTask' ? 'text' : task.type === 'AntiTurnstileTaskProxyLess' ? 'token' : 'gRecaptchaResponse';+ return { taskId: created.request, solution: { [field]: result.request, ...(result.useragent ? { userAgent: result.useragent } : {}) } };+ }+ }+ throw new Error('SolveCaptcha: timed out waiting for solution.');+}++const JSON_PROVIDERS = {+ capmonster: { base: 'https://api.capmonster.cloud', name: 'CapMonster Cloud' },+ 'anti-captcha': { base: 'https://api.anti-captcha.com', name: 'Anti-Captcha' },+};+export async function getAdditionalCaptchaBalance(id, apiKey) {+ if (id === 'solvecaptcha') {+ const result = await solveCaptchaRequest(apiKey, 'res.php', { action: 'getbalance' });+ if (Number(result.status) !== 1 || result.request == null || result.request === '' || !Number.isFinite(Number(result.request))) throw new Error('SolveCaptcha: missing balance');+ return { balance: Number(result.request) };+ }+ const provider = JSON_PROVIDERS[id];+ if (!provider) throw new Error(`Unknown CAPTCHA provider: ${id}`);+ return getJsonCaptchaBalance(provider.base, provider.name, apiKey);+}+export function solveWithAdditionalProvider(id, apiKey, task) {+ if (id === 'solvecaptcha') return solveWithSolveCaptcha(apiKey, task);+ const provider = JSON_PROVIDERS[id];+ if (!provider) throw new Error(`Unknown CAPTCHA provider: ${id}`);+ return solveJsonCaptcha(provider.base, provider.name, apiKey, buildAdditionalCaptchaTask(id, task));+}diff --git a/src/firefox/src/agent/captcha-json-api.js b/src/firefox/src/agent/captcha-json-api.jsnew file mode 100644index 000000000..2dd1e4b46--- /dev/null+++ b/src/firefox/src/agent/captcha-json-api.js@@ -0,0 +1,37 @@+async function postJson(apiBase, name, path, body, timeoutMs = 30_000) {+ const response = await fetch(`${apiBase}/${path}`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify(body),+ signal: AbortSignal.timeout(timeoutMs),+ });+ if (!response.ok) throw new Error(`${name} ${path}: HTTP ${response.status}`);+ const result = await response.json().catch(() => null);+ if (!result || typeof result !== 'object') throw new Error(`${name} ${path}: invalid response`);+ if (result.errorId) throw new Error(`${name} ${path}: ${result.errorDescription || result.errorCode || 'unknown error'}`);+ return result;+}++export async function getJsonCaptchaBalance(apiBase, name, apiKey) {+ if (!apiKey) throw new Error(`No ${name} API key configured.`);+ const result = await postJson(apiBase, name, 'getBalance', { clientKey: apiKey });+ if (result.balance == null || result.balance === '' || !Number.isFinite(Number(result.balance))) throw new Error(`${name} getBalance: missing balance`);+ return { balance: Number(result.balance) };+}++export async function solveJsonCaptcha(apiBase, name, apiKey, task) {+ if (!apiKey) throw new Error(`No ${name} API key configured.`);+ const created = await postJson(apiBase, name, 'createTask', { clientKey: apiKey, task });+ if (!created.taskId) throw new Error(`${name} createTask: missing taskId`);+ if (created.status === 'ready') return { taskId: created.taskId, solution: created.solution || {} };+ const deadline = Date.now() + 180_000;+ while (Date.now() < deadline) {+ await new Promise(resolve => setTimeout(resolve, 5_000));+ const remaining = deadline - Date.now();+ if (remaining <= 0) break;+ const result = await postJson(apiBase, name, 'getTaskResult', { clientKey: apiKey, taskId: created.taskId }, Math.min(30_000, remaining));+ if (result.status === 'ready') return { taskId: created.taskId, solution: result.solution || {} };+ if (result.status !== 'processing') throw new Error(`${name} getTaskResult: unexpected status`);+ }+ throw new Error(`${name}: timed out waiting for solution.`);+}diff --git a/src/firefox/src/agent/captcha-provider-config.js b/src/firefox/src/agent/captcha-provider-config.jsindex 5884bba30..d40bf5a62 100644--- a/src/firefox/src/agent/captcha-provider-config.js+++ b/src/firefox/src/agent/captcha-provider-config.js@@ -1,40 +1,48 @@import { normalizeCaptchaType } from './captcha-frame-runtime.js';-import { isCapsolverEnabled, normalizeCapsolverApiKey } from './capsolver-config.js';+import { isValidCapsolverApiKey } from './capsolver-config.js';+export const CAPTCHA_PROVIDERS = [+ { id: 'capsolver', name: 'CapSolver', key: 'capsolverApiKey', enabled: 'captchaSolverEnabled', weight: 'capsolverWeight', defaultWeight: 100, domId: 'captcha' },+ { id: '2captcha', name: '2Captcha', key: 'twoCaptchaApiKey', enabled: 'twoCaptchaEnabled', weight: 'twoCaptchaWeight', defaultWeight: 99, domId: 'two-captcha' },+ { id: 'capmonster', name: 'CapMonster Cloud', key: 'capmonsterApiKey', enabled: 'capmonsterEnabled', weight: 'capmonsterWeight', defaultWeight: 98, domId: 'capmonster' },+ { id: 'solvecaptcha', name: 'SolveCaptcha', key: 'solveCaptchaApiKey', enabled: 'solveCaptchaEnabled', weight: 'solveCaptchaWeight', defaultWeight: 97, domId: 'solve-captcha' },+ { id: 'anti-captcha', name: 'Anti-Captcha', key: 'antiCaptchaApiKey', enabled: 'antiCaptchaEnabled', weight: 'antiCaptchaWeight', defaultWeight: 96, domId: 'anti-captcha' },+];export const CAPTCHA_SETTINGS_KEYS = [- 'capsolverApiKey', 'captchaSolverEnabled', 'twoCaptchaApiKey', 'twoCaptchaEnabled',+ ...CAPTCHA_PROVIDERS.flatMap(provider => [provider.key, provider.enabled, provider.weight]),'webbrainCloudManaged', 'webbrainCloudCapsolverBrokerEnabled',];-export function normalizeTwoCaptchaApiKey(value) {return typeof value === 'string' ? value.trim() : '';}-export function isValidTwoCaptchaApiKey(value) {return /^[a-f0-9]{32}$/i.test(normalizeTwoCaptchaApiKey(value));}+export function isValidCaptchaApiKey(id, value) {+ return id === 'capsolver' ? isValidCapsolverApiKey(value)+ : CAPTCHA_PROVIDERS.some(provider => provider.id === id) && isValidTwoCaptchaApiKey(value);+}+export function normalizeCaptchaWeight(value, fallback) {+ return typeof value === 'number' && Number.isFinite(value) ? value : fallback;+}-// This order is also the fallback order. Managed browsers must never use-// personal keys from storage, even if an old/imported configuration has them.+// Managed browsers never use personal keys or fallback settings from storage.export function getCaptchaProviders(stored = {}) {if (stored.webbrainCloudManaged === true) {return stored.captchaSolverEnabled === true && stored.webbrainCloudCapsolverBrokerEnabled === true? [{ id: 'capsolver', apiKey: '', useCloudBroker: true }] : [];}- const providers = [];- if (isCapsolverEnabled(stored.capsolverApiKey, stored.captchaSolverEnabled)) {- providers.push({ id: 'capsolver', apiKey: normalizeCapsolverApiKey(stored.capsolverApiKey) });- }- if (stored.twoCaptchaEnabled === true && isValidTwoCaptchaApiKey(stored.twoCaptchaApiKey)) {- providers.push({ id: '2captcha', apiKey: normalizeTwoCaptchaApiKey(stored.twoCaptchaApiKey) });- }- return providers;+ // Stable sorting preserves the default provider order when weights tie.+ return CAPTCHA_PROVIDERS.filter(provider => stored[provider.enabled] === true && isValidCaptchaApiKey(provider.id, stored[provider.key]))+ .map(provider => ({ id: provider.id, apiKey: normalizeTwoCaptchaApiKey(stored[provider.key]),+ weight: normalizeCaptchaWeight(stored[provider.weight], provider.defaultWeight) }))+ .sort((a, b) => b.weight - a.weight);}// Capabilities describe this integration, rather than every product a service sells.export function captchaProviderSupportsType(providerId, type) {const normalized = normalizeCaptchaType(type);if (normalized === 'hcaptcha') return providerId === 'capsolver';- return ['capsolver', '2captcha'].includes(providerId)+ return CAPTCHA_PROVIDERS.some(provider => provider.id === providerId)&& ['recaptcha_v2', 'recaptcha_v2_enterprise', 'recaptcha_v3', 'recaptcha_v3_enterprise', 'turnstile', 'image_to_text'].includes(normalized);}diff --git a/src/firefox/src/agent/captcha-solver.js b/src/firefox/src/agent/captcha-solver.jsindex a3977eb0f..0adee96c1 100644--- a/src/firefox/src/agent/captcha-solver.js+++ b/src/firefox/src/agent/captcha-solver.js@@ -20,6 +20,7 @@ import {selectCaptchaCandidate,} from './captcha-frame-runtime.js';import { buildCaptchaDiagnostics, captchaChallengeMatcherOptions } from './captcha-gate.js';+import { solveWithAdditionalProvider } from './captcha-additional-providers.js';import { solveWithTwoCaptcha } from './two-captcha.js';import { captchaProviderSupportsType } from './captcha-provider-config.js';@@ -171,6 +172,7 @@ export function buildTask({ type, websiteURL, websiteKey, ...rest }) {websiteURL,websiteKey,...(rest.metadata ? { metadata: rest.metadata } : {}),+ ...(rest.userAgent ? { userAgent: rest.userAgent } : {}),};}if (t === 'image_to_text' || t === 'image') {@@ -248,7 +250,9 @@ export async function solveCaptchaWithProviders(providers, params) {const result = provider.id === 'capsolver'? await solveCaptcha(provider.apiKey, params, { useCloudBroker: provider.useCloudBroker === true }): await (async () => {- const result = await solveWithTwoCaptcha(provider.apiKey, task);+ const result = provider.id === '2captcha'+ ? await solveWithTwoCaptcha(provider.apiKey, task)+ : await solveWithAdditionalProvider(provider.id, provider.apiKey, task);return { ...result, ...solutionFor(params.type, result.solution) };})();if (typeof result.token !== 'string' || !result.token.trim()) {diff --git a/src/firefox/src/agent/tools.js b/src/firefox/src/agent/tools.jsindex 4d8868064..062e6fce6 100644--- a/src/firefox/src/agent/tools.js+++ b/src/firefox/src/agent/tools.js@@ -1074,7 +1074,7 @@ export const AGENT_TOOLS = [type: 'function',function: {name: 'solve_captcha',- description: 'Solve a CAPTCHA on the current page using CapSolver or 2Captcha, enabled by saving a key in Settings → General → Advanced. With both enabled, one tool call tries CapSolver first, then 2Captcha on failure or timeout; both may charge. Do not repeat the tool call. 2Captcha supports reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires CapSolver. Unsupported challenges require manual completion before dispatch. The tool scans every frame, ranks the active visible widget above hidden/background integrations, and fills missing type/site-key parameters from the selected frame. Returns the token, selected frame/type, and targeted injection/callback status; verify page progress afterward because token injection alone does not prove the challenge cleared. On failure (no CAPTCHA solver key configured, ambiguous candidates, unknown type, API error, timeout) the tool returns `{ success: false, error: "..." }` — use only the exact frameUrl, websiteKey, frameId, or framePath discriminator offered by the ambiguity result; otherwise ask the user to solve it manually.',+ description: 'Solve a CAPTCHA on the current page using an enabled provider (CapSolver, 2Captcha, CapMonster Cloud, SolveCaptcha, or Anti-Captcha) configured in Settings → General → Advanced. One tool call tries compatible enabled providers in descending weight order, moving to the next on failure or timeout; each may charge. Do not repeat the tool call. All five providers support reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs; hCaptcha requires CapSolver. Unsupported challenges require manual completion before dispatch. The tool scans every frame, ranks the active visible widget above hidden/background integrations, and fills missing type/site-key parameters from the selected frame. Returns the token, selected frame/type, and targeted injection/callback status; verify page progress afterward because token injection alone does not prove the challenge cleared. On failure (no CAPTCHA solver key configured, ambiguous candidates, unknown type, API error, timeout) the tool returns `{ success: false, error: "..." }` — use only the exact frameUrl, websiteKey, frameId, or framePath discriminator offered by the ambiguity result; otherwise ask the user to solve it manually.',parameters: {type: 'object',properties: {@@ -1963,7 +1963,7 @@ FORMS — read this:- You do NOT need verify_form for simple interactions: search boxes, single-field forms, or login forms. Use it for multi-field forms where wrong data has consequences (checkout, profile, issue creation, releases, etc.).- AFTER submitting a form, ALWAYS read the page/tree and inspect any injected verification/auto-screenshot context to confirm success BEFORE doing anything else. Do not resume other actions until you verify the submission result. Look for: a success message/toast, the newly created item appearing in a list, or a detail page for the new item. Check that the details (name, price, dates) match what you intended.- NEVER claim you created something unless you see CONFIRMATION on the page. If you see a list of items, check the creation date — if it says "2 months ago" or a past date, that is an EXISTING item, NOT something you just created. Only items with a timestamp from right now are yours.-- If you encounter any CAPTCHA, anti-bot check, or human verification challenge, do not dismiss, close, or resubmit it. When the user has configured CapSolver or 2Captcha (you will see a "[CAPTCHA SOLVER]" note), let the runtime route one \`solve_captcha\` call, then read the root accessibility tree to confirm the dialog cleared before any submit. If no supported widget is detected, the solve fails, or the dialog remains, STOP and ask the user to complete it manually — never retry the solve.+- If you encounter any CAPTCHA, anti-bot check, or human verification challenge, do not dismiss, close, or resubmit it. When the user has enabled a CAPTCHA provider (you will see a "[CAPTCHA SOLVER]" note), let the runtime route one \`solve_captcha\` call, then read the root accessibility tree to confirm the dialog cleared before any submit. If no supported widget is detected, the solve fails, or the dialog remains, STOP and ask the user to complete it manually — never retry the solve.MODALS & DIALOGS — read this:- When a modal/dialog is open, treat the rest of the page as unreachable. click({text: ...}) is automatically scoped to the topmost dialog, so text queries for buttons behind the overlay will return "no match" — that's intentional.@@ -2071,7 +2071,7 @@ ${BROWSER_TAB_LIMITATION}- fetch_url({url}) / research_url({url}): read OTHER URLs (not the active tab). list_downloads, download_files, download_resource_from_page, read_downloaded_file, upload_file({selector, attachmentId}) or upload_file({selector, downloadId}): file workflows. Use attachmentId for a current user-supplied file; use downloadId for a downloaded file. Use download_files for direct URLs and download_resource_from_page when the resource is attached to a visible page element or a blob: URL. Successful downloads auto-pin each file's downloadId to the scratchpad as an \`[auto]\` line — attach with upload_file({downloadId, selector}) and re-read with read_downloaded_file({downloadId}); no need to recall the path. Omit both ids to prompt the user to pick a new local file.- download_public_media (if enabled) / download_social_media: one-shot image/video download from supported public social sites; purpose-built download tools should be tried before manual DOM/resource workflows.- verify_form: check a form's field values before submitting. scratchpad_write({text}): pin facts that survive context summarization. progress_update/progress_read: track repeated item/action progress.-- clarify({question, options?, safe_first?}): ask the user only when materially blocked/ambiguous (budget 1-2 per run). Unanswered clarifies auto-select options[0] after timeout; safe_first makes that selection apply, and source=auto Instant is intentional auto-approve. solve_captcha: one tool call, CapSolver first then 2Captcha on failure or timeout when both are enabled; either may charge. Do not repeat the call. hCaptcha requires CapSolver; unsupported provider/type combinations require manual completion.+- clarify({question, options?, safe_first?}): ask the user only when materially blocked/ambiguous (budget 1-2 per run). Unanswered clarifies auto-select options[0] after timeout; safe_first makes that selection apply, and source=auto Instant is intentional auto-approve. solve_captcha: one tool call, compatible enabled providers in descending weight order, falling back on failure or timeout; each may charge. Do not repeat the call. hCaptcha requires CapSolver; unsupported provider/type combinations require manual completion.- done({summary, outcome}): signal completion; use outcome:"success" only after verifying success.CHAT IMAGES:diff --git a/src/firefox/src/agent/two-captcha.js b/src/firefox/src/agent/two-captcha.jsindex 256b3d056..849d0a725 100644--- a/src/firefox/src/agent/two-captcha.js+++ b/src/firefox/src/agent/two-captcha.js@@ -1,30 +1,8 @@// 2Captcha API v2: https://2captcha.com/api-docs+import { getJsonCaptchaBalance, solveJsonCaptcha } from './captcha-json-api.js';const API_BASE = 'https://api.2captcha.com';-const POLL_INTERVAL_MS = 5_000;-const SOLVE_TIMEOUT_MS = 180_000;-async function postJson(path, body, timeoutMs = 30_000) {- const response = await fetch(`${API_BASE}/${path}`, {- method: 'POST',- headers: { 'Content-Type': 'application/json' },- body: JSON.stringify(body),- signal: AbortSignal.timeout(timeoutMs),- });- if (!response.ok) throw new Error(`2Captcha ${path}: HTTP ${response.status}`);- const result = await response.json().catch(() => null);- if (!result || typeof result !== 'object') throw new Error(`2Captcha ${path}: invalid response`);- if (result.errorId) throw new Error(`2Captcha ${path}: ${result.errorDescription || result.errorCode || 'unknown error'}`);- return result;-}--export async function getTwoCaptchaBalance(apiKey) {- if (!apiKey) throw new Error('No 2Captcha API key configured.');- const result = await postJson('getBalance', { clientKey: apiKey });- if (!Number.isFinite(Number(result.balance)) || result.balance == null) {- throw new Error('2Captcha getBalance: missing balance');- }- return { balance: Number(result.balance) };-}+export const getTwoCaptchaBalance = apiKey => getJsonCaptchaBalance(API_BASE, '2Captcha', apiKey);// Translate the existing normalized task to 2Captcha's case-sensitive types// and fields. Never forward CapSolver-specific task names or affiliate IDs.@@ -65,18 +43,4 @@ export function buildTwoCaptchaTask(task) {}}-export async function solveWithTwoCaptcha(apiKey, task) {- if (!apiKey) throw new Error('No 2Captcha API key configured.');- const created = await postJson('createTask', { clientKey: apiKey, task: buildTwoCaptchaTask(task) });- if (!created.taskId) throw new Error('2Captcha createTask: missing taskId');- const deadline = Date.now() + SOLVE_TIMEOUT_MS;- while (Date.now() < deadline) {- await new Promise(resolve => setTimeout(resolve, POLL_INTERVAL_MS));- const remaining = deadline - Date.now();- if (remaining <= 0) break;- const result = await postJson('getTaskResult', { clientKey: apiKey, taskId: created.taskId }, Math.min(30_000, remaining));- if (result.status === 'ready') return { taskId: created.taskId, solution: result.solution || {} };- if (result.status !== 'processing') throw new Error('2Captcha getTaskResult: unexpected status');- }- throw new Error('2Captcha: timed out waiting for solution.');-}+export const solveWithTwoCaptcha = (apiKey, task) => solveJsonCaptcha(API_BASE, '2Captcha', apiKey, buildTwoCaptchaTask(task));diff --git a/src/firefox/src/background.js b/src/firefox/src/background.jsindex 871f13731..5cf6ecfa8 100644--- a/src/firefox/src/background.js+++ b/src/firefox/src/background.js@@ -40,6 +40,7 @@ import {} from './providers/oauth-claude.js';import { getBalance as capsolverGetBalance } from './agent/captcha-solver.js';import { CAPTCHA_SETTINGS_KEYS, getCaptchaProviders } from './agent/captcha-provider-config.js';+import { getAdditionalCaptchaBalance } from './agent/captcha-additional-providers.js';import { getTwoCaptchaBalance } from './agent/two-captcha.js';import { createSystemOneJudge } from './agent/systemone-judge.js';import {@@ -1152,9 +1153,7 @@ browser.storage.onChanged.addListener((changes) => {}refreshPrompts = true;}- if (changes.capsolverApiKey || changes.captchaSolverEnabled- || changes.twoCaptchaApiKey || changes.twoCaptchaEnabled- || changes.webbrainCloudManaged || changes.webbrainCloudCapsolverBrokerEnabled) {+ if (CAPTCHA_SETTINGS_KEYS.some(key => changes[key])) {loadCaptchaSolver().then(() => agent._refreshSystemPrompts()).catch((error) => console.warn('[WebBrain] CAPTCHA settings could not be refreshed', error));@@ -3482,6 +3481,12 @@ async function handleMessage(msg, sender) {} catch (error) { return { success: false, error: error.message }; }}+ case 'test_captcha_provider_balance': {+ try {+ return { ok: true, ...await getAdditionalCaptchaBalance(msg.provider, String(msg.apiKey || '').trim()) };+ } catch (error) { return { ok: false, error: error.message }; }+ }+case 'test_two_captcha_balance': {try {const key = String(msg.apiKey || '').trim();diff --git a/src/firefox/src/config-transfer.js b/src/firefox/src/config-transfer.jsindex 067ab2df6..1937337f8 100644--- a/src/firefox/src/config-transfer.js+++ b/src/firefox/src/config-transfer.js@@ -80,6 +80,17 @@ export const DEFAULT_CONFIG_SETTINGS = Object.freeze({capsolverApiKey: '',twoCaptchaApiKey: '',twoCaptchaEnabled: false,+ capsolverWeight: 100,+ twoCaptchaWeight: 99,+ capmonsterApiKey: '',+ capmonsterEnabled: false,+ capmonsterWeight: 98,+ solveCaptchaApiKey: '',+ solveCaptchaEnabled: false,+ solveCaptchaWeight: 97,+ antiCaptchaApiKey: '',+ antiCaptchaEnabled: false,+ antiCaptchaWeight: 96,systemOneEnabled: false,systemOneWatchEnabled: false,systemOneCompletionEnabled: false,@@ -127,6 +138,9 @@ const BOOLEAN_KEYS = new Set(['enableAllPackagedSkills','captchaSolverEnabled','twoCaptchaEnabled',+ 'capmonsterEnabled',+ 'solveCaptchaEnabled',+ 'antiCaptchaEnabled','systemOneEnabled','systemOneWatchEnabled','systemOneCompletionEnabled',@@ -134,6 +148,11 @@ const BOOLEAN_KEYS = new Set(['systemOneFastBrowser',]);const NUMBER_KEYS = new Set([+ 'capsolverWeight',+ 'twoCaptchaWeight',+ 'capmonsterWeight',+ 'solveCaptchaWeight',+ 'antiCaptchaWeight','maxAgentSteps','requestTimeoutMs','clarifyTimeoutSec',@@ -157,6 +176,9 @@ const STRING_KEYS = new Set(['profileText','capsolverApiKey','twoCaptchaApiKey',+ 'capmonsterApiKey',+ 'solveCaptchaApiKey',+ 'antiCaptchaApiKey','typesafeApiKey',]);const ARRAY_KEYS = new Set([diff --git a/src/firefox/src/ui/captcha-settings.js b/src/firefox/src/ui/captcha-settings.jsnew file mode 100644index 000000000..aa4c4c7a3--- /dev/null+++ b/src/firefox/src/ui/captcha-settings.js@@ -0,0 +1,83 @@+import { CAPTCHA_PROVIDERS, CAPTCHA_SETTINGS_KEYS, isValidCaptchaApiKey, normalizeCaptchaWeight } from '../agent/captcha-provider-config.js';++export async function initCaptchaSettings(storage, sendToBackground, t) {+ const stored = await storage.get(CAPTCHA_SETTINGS_KEYS);+ const managed = stored.webbrainCloudManaged === true;+ const card = document.getElementById('captcha-card');+ if (!card) return;+ card.hidden = managed;+ if (managed) return;+ for (const provider of CAPTCHA_PROVIDERS) {+ const id = provider.domId;+ const keyInput = document.getElementById(`${id}-api-key`);+ const enabled = document.getElementById(`${id}-enabled`);+ const weight = document.getElementById(`${id}-weight`);+ const result = document.getElementById(`test-${id}`);+ if (!keyInput || !enabled || !weight || !result) continue;+ keyInput.value = stored[provider.key] || '';+ enabled.checked = stored[provider.enabled] === true;+ weight.value = normalizeCaptchaWeight(stored[provider.weight], provider.defaultWeight);+ let manuallyDisabled = false;+ let messageTimer;+ const show = (status, message) => {+ clearTimeout(messageTimer);+ result.className = `test-result show ${status}`;+ result.textContent = message;+ result.style.color = '';+ messageTimer = setTimeout(() => result.classList.remove('show'), 5000);+ };+ const validKey = () => {+ const key = keyInput.value.trim();+ if (isValidCaptchaApiKey(provider.id, key)) return key;+ show('fail', provider.id === 'capsolver' ? t('st.captcha.need_key') : t('st.captcha.provider_need_key', { provider: provider.name }));+ return null;+ };+ // Typing opts in by default, but an explicit unchecked box wins for this edit.+ keyInput.addEventListener('input', () => {+ if (!manuallyDisabled) enabled.checked = !!keyInput.value.trim();+ });+ const save = async () => {+ const key = validKey();+ if (!key) return;+ keyInput.value = key;+ await storage.set({ [provider.key]: key, [provider.enabled]: enabled.checked });+ show('ok', t(provider.id === 'capsolver' && enabled.checked ? 'st.captcha.saved' : 'st.providers.saved'));+ };+ // Report storage failures, rather than silently showing a successful save.+ const handle = fn => async () => { try { await fn(); } catch (error) { show('fail', error.message); } };+ document.getElementById(`btn-save-${id}`).addEventListener('click', handle(save));+ enabled.addEventListener('change', handle(async () => {+ manuallyDisabled = !enabled.checked;+ if (!enabled.checked) await storage.set({ [provider.enabled]: false });+ else if (isValidCaptchaApiKey(provider.id, keyInput.value)) await save();+ else {+ enabled.checked = false;+ validKey();+ }+ }));+ weight.addEventListener('change', handle(async () => {+ const value = normalizeCaptchaWeight(weight.value === '' ? undefined : Number(weight.value), provider.defaultWeight);+ weight.value = value;+ await storage.set({ [provider.weight]: value });+ }));+ document.getElementById(`btn-clear-${id}`).addEventListener('click', handle(async () => {+ await storage.remove([provider.key, provider.enabled]);+ keyInput.value = '';+ enabled.checked = false;+ manuallyDisabled = false;+ show('ok', t('st.captcha.cleared'));+ }));+ document.getElementById(`btn-test-${id}`).addEventListener('click', handle(async () => {+ const key = validKey();+ if (!key) return;+ show('', t('st.captcha.checking'));+ const action = provider.id === 'capsolver' ? 'test_capsolver_balance'+ : provider.id === '2captcha' ? 'test_two_captcha_balance' : 'test_captcha_provider_balance';+ try {+ const response = await sendToBackground(action, { apiKey: key, provider: provider.id });+ if (!response?.ok) throw new Error(response?.error || 'Unknown error');+ show('ok', t('st.captcha.balance_ok', { balance: `$${Number(response.balance).toFixed(4)}` }));+ } catch (error) { show('fail', t('st.captcha.balance_fail', { error: error.message })); }+ }));+ }+}diff --git a/src/firefox/src/ui/i18n.js b/src/firefox/src/ui/i18n.jsindex 520516ae8..e9b9864be 100644--- a/src/firefox/src/ui/i18n.js+++ b/src/firefox/src/ui/i18n.js@@ -138,7 +138,9 @@ export function translationsForKey(key) {export function applyDOMTranslations(root) {root = root || document;root.querySelectorAll('[data-i18n]').forEach((el) => {- el.textContent = t(el.dataset.i18n);+ let params;+ try { params = JSON.parse(el.dataset.i18nParams || '{}'); } catch { /* ignore malformed optional parameters */ }+ el.textContent = t(el.dataset.i18n, params);});root.querySelectorAll('[data-i18n-html]').forEach((el) => {el.innerHTML = t(el.dataset.i18nHtml);diff --git a/src/firefox/src/ui/locales/captcha-copy.mjs b/src/firefox/src/ui/locales/captcha-copy.mjsindex 6bb0e249e..f548a6385 100644--- a/src/firefox/src/ui/locales/captcha-copy.mjs+++ b/src/firefox/src/ui/locales/captcha-copy.mjs@@ -1,233 +1,256 @@export const captchaEnglish = {"st.captcha.heading": "CAPTCHA solving",- "st.captcha.order": "Use either provider or both. Save a valid key to enable a provider; Clear disables it. With both enabled, CapSolver runs first, then 2Captcha on failure or timeout.",+ "st.captcha.order": "Enable any number of providers. Entering a key checks Enabled; Save applies it. Uncheck to keep the key without using it. Higher weights run first; failures or timeouts try the next compatible provider.","st.captcha.capsolver_desc": "Automatically solve reCAPTCHA v2/v3, hCaptcha, Turnstile, and image CAPTCHAs with your CapSolver account.",- "st.captcha.two_desc": "Automatically solve reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs with your 2Captcha account. hCaptcha requires CapSolver.",- "st.captcha.two_key": "2Captcha API Key",- "st.captcha.two_need_key": "Enter a valid 2Captcha API key: 32 hexadecimal characters.",- "st.captcha.two_saved": "Saved. 2Captcha is enabled.",- "st.captcha.providers_security": "Keys are stored in plaintext in this browser. Each enabled provider may charge for an attempt. Timeout fallback can charge both accounts even if the first task is still running. If neither returns a usable solution, the agent asks you to complete the CAPTCHA manually."+ "st.captcha.providers_security": "Keys are stored in plaintext in this browser. Each attempted provider may charge, including after a timeout. If all attempts fail, the agent asks you to complete the CAPTCHA manually.",+ "st.captcha.provider_desc": "Automatically solve reCAPTCHA v2/v3, Turnstile, and image CAPTCHAs with your {provider} account. hCaptcha requires CapSolver.",+ "st.captcha.provider_key": "{provider} API Key",+ "st.captcha.provider_need_key": "Enter a valid {provider} API key: 32 hexadecimal characters.",+ "st.captcha.enabled": "Enabled",+ "st.captcha.weight": "Weight (higher runs first)"};export const captchaTranslations = {"tr": {"st.captcha.heading": "CAPTCHA çözümü",- "st.captcha.order": "Bir sağlayıcıyı veya ikisini birden kullanın. Geçerli anahtarı kaydetmek etkinleştirir; Temizle devre dışı bırakır. İkisi de etkinse önce CapSolver, hata veya zaman aşımında 2Captcha denenir.",+ "st.captcha.order": "İstediğiniz kadar sağlayıcıyı etkinleştirin. Anahtar girince Etkin seçilir; Kaydet uygular. Anahtarı saklayıp kullanmamak için seçimi kaldırın. Yüksek ağırlık önce denenir; hata veya zaman aşımında sıradaki uyumlu sağlayıcıya geçilir.","st.captcha.capsolver_desc": "CapSolver hesabınızla reCAPTCHA v2/v3, hCaptcha, Turnstile ve görsel CAPTCHA’ları otomatik çözün.",- "st.captcha.two_desc": "2Captcha hesabınızla reCAPTCHA v2/v3, Turnstile ve görsel CAPTCHA’ları otomatik çözün. hCaptcha için CapSolver gerekir.",- "st.captcha.two_key": "2Captcha API anahtarı",- "st.captcha.two_need_key": "32 onaltılık karakterden oluşan geçerli bir 2Captcha API anahtarı girin.",- "st.captcha.two_saved": "Kaydedildi. 2Captcha etkin.",- "st.captcha.providers_security": "Anahtarlar bu tarayıcıda düz metin olarak saklanır. Her etkin sağlayıcı deneme için ücret alabilir. Zaman aşımında diğer sağlayıcıya geçildiğinde ilk görev hâlâ sürse bile iki hesap da ücretlendirilebilir. Kullanılabilir çözüm dönmezse ajan CAPTCHA’yı elle tamamlamanızı ister."+ "st.captcha.providers_security": "Anahtarlar bu tarayıcıda düz metin olarak saklanır. Zaman aşımı dahil her denenen sağlayıcı ücret alabilir. Tüm denemeler başarısızsa ajan CAPTCHA’yı elle tamamlamanızı ister.",+ "st.captcha.provider_desc": "{provider} hesabınızla reCAPTCHA v2/v3, Turnstile ve görsel CAPTCHA’ları otomatik çözün. hCaptcha için CapSolver gerekir.",+ "st.captcha.provider_key": "{provider} API anahtarı",+ "st.captcha.provider_need_key": "32 onaltılık karakterden oluşan geçerli bir {provider} API anahtarı girin.",+ "st.captcha.enabled": "Etkin",+ "st.captcha.weight": "Ağırlık (yüksek olan önce)"},"es": {"st.captcha.heading": "Resolución de CAPTCHA",- "st.captcha.order": "Usa uno o ambos proveedores. Guarda una clave válida para activar cada uno; Borrar lo desactiva. Si ambos están activos, se prueba CapSolver primero y después 2Captcha si falla o agota el tiempo.",+ "st.captcha.order": "Activa tantos proveedores como quieras. Introducir una clave marca Activado; Guardar aplica el cambio. Desmarca para conservar la clave sin usarla. El mayor peso va primero; si falla o agota el tiempo, se prueba el siguiente compatible.","st.captcha.capsolver_desc": "Resuelve automáticamente reCAPTCHA v2/v3, hCaptcha, Turnstile y CAPTCHA de imágenes con tu cuenta de CapSolver.",- "st.captcha.two_desc": "Resuelve automáticamente reCAPTCHA v2/v3, Turnstile y CAPTCHA de imágenes con tu cuenta de 2Captcha. hCaptcha requiere CapSolver.",- "st.captcha.two_key": "Clave API de 2Captcha",- "st.captcha.two_need_key": "Introduce una clave API válida de 2Captcha: 32 caracteres hexadecimales.",- "st.captcha.two_saved": "Guardado. 2Captcha está activado.",- "st.captcha.providers_security": "Las claves se guardan como texto sin cifrar en este navegador. Cada proveedor activo puede cobrar por un intento. El cambio por tiempo agotado puede generar cargos en ambas cuentas aunque la primera tarea siga ejecutándose. Si no hay una solución válida, el agente te pide completar el CAPTCHA manualmente."+ "st.captcha.providers_security": "Las claves se guardan sin cifrar en este navegador. Cada proveedor probado puede cobrar, incluso tras agotar el tiempo. Si todos fallan, el agente pide completar el CAPTCHA manualmente.",+ "st.captcha.provider_desc": "Resuelve automáticamente reCAPTCHA v2/v3, Turnstile y CAPTCHA de imágenes con tu cuenta de {provider}. hCaptcha requiere CapSolver.",+ "st.captcha.provider_key": "Clave API de {provider}",+ "st.captcha.provider_need_key": "Introduce una clave API válida de {provider}: 32 caracteres hexadecimales.",+ "st.captcha.enabled": "Activado",+ "st.captcha.weight": "Peso (mayor primero)"},"fr": {"st.captcha.heading": "Résolution des CAPTCHA",- "st.captcha.order": "Utilisez un fournisseur ou les deux. Enregistrer une clé valide active le fournisseur ; Effacer le désactive. Si les deux sont actifs, CapSolver est essayé en premier, puis 2Captcha en cas d’échec ou de délai dépassé.",+ "st.captcha.order": "Activez autant de fournisseurs que souhaité. Saisir une clé coche Activé ; Enregistrer applique le choix. Décochez pour conserver la clé sans l’utiliser. Le poids le plus élevé passe en premier ; en cas d’échec ou de délai dépassé, le suivant compatible est essayé.","st.captcha.capsolver_desc": "Résolvez automatiquement les reCAPTCHA v2/v3, hCaptcha, Turnstile et CAPTCHA sous forme d’image avec votre compte CapSolver.",- "st.captcha.two_desc": "Résolvez automatiquement les reCAPTCHA v2/v3, Turnstile et CAPTCHA sous forme d’image avec votre compte 2Captcha. hCaptcha nécessite CapSolver.",- "st.captcha.two_key": "Clé API 2Captcha",- "st.captcha.two_need_key": "Saisissez une clé API 2Captcha valide : 32 caractères hexadécimaux.",- "st.captcha.two_saved": "Enregistré. 2Captcha est activé.",- "st.captcha.providers_security": "Les clés sont stockées en clair dans ce navigateur. Chaque fournisseur actif peut facturer une tentative. Le basculement après expiration du délai peut facturer les deux comptes même si la première tâche est toujours en cours. Sans solution utilisable, l’agent vous demande de terminer le CAPTCHA manuellement."+ "st.captcha.providers_security": "Les clés sont stockées en clair dans ce navigateur. Chaque fournisseur essayé peut facturer, même après un délai dépassé. Si tous échouent, l’agent vous demande de résoudre le CAPTCHA manuellement.",+ "st.captcha.provider_desc": "Résolvez automatiquement les reCAPTCHA v2/v3, Turnstile et CAPTCHA sous forme d’image avec votre compte {provider}. hCaptcha nécessite CapSolver.",+ "st.captcha.provider_key": "Clé API {provider}",+ "st.captcha.provider_need_key": "Saisissez une clé API {provider} valide : 32 caractères hexadécimaux.",+ "st.captcha.enabled": "Activé",+ "st.captcha.weight": "Poids (le plus élevé en premier)"},"de": {"st.captcha.heading": "CAPTCHA-Lösung",- "st.captcha.order": "Nutzen Sie einen oder beide Anbieter. Ein gültiger gespeicherter Schlüssel aktiviert den Anbieter; Löschen deaktiviert ihn. Sind beide aktiv, wird zuerst CapSolver versucht, bei Fehler oder Zeitüberschreitung dann 2Captcha.",+ "st.captcha.order": "Aktivieren Sie beliebig viele Anbieter. Eine Schlüsseleingabe setzt Aktiviert; Speichern übernimmt die Auswahl. Abwählen behält den Schlüssel ohne Nutzung. Höhere Gewichte kommen zuerst; bei Fehler oder Zeitüberschreitung folgt der nächste kompatible Anbieter.","st.captcha.capsolver_desc": "Lösen Sie reCAPTCHA v2/v3, hCaptcha, Turnstile und Bild-CAPTCHAs automatisch mit Ihrem CapSolver-Konto.",- "st.captcha.two_desc": "Lösen Sie reCAPTCHA v2/v3, Turnstile und Bild-CAPTCHAs automatisch mit Ihrem 2Captcha-Konto. hCaptcha erfordert CapSolver.",- "st.captcha.two_key": "2Captcha-API-Schlüssel",- "st.captcha.two_need_key": "Geben Sie einen gültigen 2Captcha-API-Schlüssel ein: 32 hexadezimale Zeichen.",- "st.captcha.two_saved": "Gespeichert. 2Captcha ist aktiviert.",- "st.captcha.providers_security": "Die Schlüssel werden in diesem Browser im Klartext gespeichert. Jeder aktive Anbieter kann einen Versuch berechnen. Beim Wechsel nach einer Zeitüberschreitung können beide Konten belastet werden, auch wenn der erste Auftrag noch läuft. Ohne nutzbare Lösung bittet der Agent Sie, das CAPTCHA manuell abzuschließen."+ "st.captcha.providers_security": "Schlüssel werden in diesem Browser im Klartext gespeichert. Jeder versuchte Anbieter kann Gebühren erheben, auch bei Zeitüberschreitung. Wenn alle Versuche scheitern, bittet der Agent um manuelle Lösung.",+ "st.captcha.provider_desc": "Lösen Sie reCAPTCHA v2/v3, Turnstile und Bild-CAPTCHAs automatisch mit Ihrem {provider}-Konto. hCaptcha erfordert CapSolver.",+ "st.captcha.provider_key": "{provider}-API-Schlüssel",+ "st.captcha.provider_need_key": "Geben Sie einen gültigen {provider}-API-Schlüssel ein: 32 hexadezimale Zeichen.",+ "st.captcha.enabled": "Aktiviert",+ "st.captcha.weight": "Gewicht (höher zuerst)"},"nl": {"st.captcha.heading": "CAPTCHA’s oplossen",- "st.captcha.order": "Gebruik één of beide aanbieders. Een geldige sleutel opslaan schakelt de aanbieder in; Wissen schakelt deze uit. Als beide actief zijn, wordt eerst CapSolver geprobeerd en daarna 2Captcha bij een fout of time-out.",+ "st.captcha.order": "Schakel zoveel aanbieders in als je wilt. Een sleutel invoeren vinkt Ingeschakeld aan; Opslaan past dit toe. Uitvinken bewaart de sleutel zonder deze te gebruiken. Hogere gewichten gaan eerst; bij fouten of time-outs volgt de volgende geschikte aanbieder.","st.captcha.capsolver_desc": "Los reCAPTCHA v2/v3, hCaptcha, Turnstile en afbeeldings-CAPTCHA’s automatisch op met je CapSolver-account.",- "st.captcha.two_desc": "Los reCAPTCHA v2/v3, Turnstile en afbeeldings-CAPTCHA’s automatisch op met je 2Captcha-account. hCaptcha vereist CapSolver.",- "st.captcha.two_key": "2Captcha API-sleutel",- "st.captcha.two_need_key": "Voer een geldige 2Captcha API-sleutel in: 32 hexadecimale tekens.",- "st.captcha.two_saved": "Opgeslagen. 2Captcha is ingeschakeld.",- "st.captcha.providers_security": "Sleutels worden als platte tekst in deze browser opgeslagen. Elke actieve aanbieder kan een poging in rekening brengen. Overschakelen na een time-out kan beide accounts belasten, ook als de eerste taak nog loopt. Zonder bruikbare oplossing vraagt de agent je de CAPTCHA handmatig af te ronden."+ "st.captcha.providers_security": "Sleutels worden onversleuteld in deze browser bewaard. Elke geprobeerde aanbieder kan kosten rekenen, ook na een time-out. Als alles mislukt, vraagt de agent je de CAPTCHA zelf op te lossen.",+ "st.captcha.provider_desc": "Los reCAPTCHA v2/v3, Turnstile en afbeeldings-CAPTCHA’s automatisch op met je {provider}-account. hCaptcha vereist CapSolver.",+ "st.captcha.provider_key": "{provider} API-sleutel",+ "st.captcha.provider_need_key": "Voer een geldige {provider} API-sleutel in: 32 hexadecimale tekens.",+ "st.captcha.enabled": "Ingeschakeld",+ "st.captcha.weight": "Gewicht (hoger eerst)"},"pt": {"st.captcha.heading": "Resolução de CAPTCHA",- "st.captcha.order": "Use um ou ambos os provedores. Salvar uma chave válida ativa o provedor; Limpar o desativa. Com ambos ativos, o CapSolver é tentado primeiro e depois o 2Captcha em caso de falha ou tempo esgotado.",+ "st.captcha.order": "Ative quantos provedores quiser. Inserir uma chave marca Ativado; Salvar aplica a escolha. Desmarque para manter a chave sem usá-la. Pesos maiores vêm primeiro; em caso de falha ou tempo esgotado, tenta-se o próximo compatível.","st.captcha.capsolver_desc": "Resolva automaticamente reCAPTCHA v2/v3, hCaptcha, Turnstile e CAPTCHAs de imagem com sua conta CapSolver.",- "st.captcha.two_desc": "Resolva automaticamente reCAPTCHA v2/v3, Turnstile e CAPTCHAs de imagem com sua conta 2Captcha. hCaptcha exige CapSolver.",- "st.captcha.two_key": "Chave API do 2Captcha",- "st.captcha.two_need_key": "Insira uma chave API válida do 2Captcha: 32 caracteres hexadecimais.",- "st.captcha.two_saved": "Salvo. 2Captcha está ativado.",- "st.captcha.providers_security": "As chaves são armazenadas em texto simples neste navegador. Cada provedor ativo pode cobrar por uma tentativa. A troca após o tempo esgotado pode gerar cobranças nas duas contas, mesmo que a primeira tarefa ainda esteja em andamento. Sem uma solução utilizável, o agente pede que você conclua o CAPTCHA manualmente."+ "st.captcha.providers_security": "As chaves ficam em texto simples neste navegador. Cada provedor testado pode cobrar, inclusive após o tempo esgotar. Se todos falharem, o agente pede que você resolva o CAPTCHA manualmente.",+ "st.captcha.provider_desc": "Resolva automaticamente reCAPTCHA v2/v3, Turnstile e CAPTCHAs de imagem com sua conta {provider}. hCaptcha exige CapSolver.",+ "st.captcha.provider_key": "Chave API do {provider}",+ "st.captcha.provider_need_key": "Insira uma chave API válida do {provider}: 32 caracteres hexadecimais.",+ "st.captcha.enabled": "Ativado",+ "st.captcha.weight": "Peso (maior primeiro)"},"zh": {"st.captcha.heading": "CAPTCHA 验证码识别",- "st.captcha.order": "可使用一个或两个服务商。保存有效密钥即可启用,清除密钥即可停用。两者都启用时,先尝试 CapSolver,失败或超时后再尝试 2Captcha。",+ "st.captcha.order": "可启用任意数量的服务商。输入密钥会勾选“已启用”,保存后生效。取消勾选可保留密钥但不使用。权重越高越先尝试;失败或超时后尝试下一个兼容的服务商。","st.captcha.capsolver_desc": "使用你的 CapSolver 账户自动识别 reCAPTCHA v2/v3、hCaptcha、Turnstile 和图片验证码。",- "st.captcha.two_desc": "使用你的 2Captcha 账户自动识别 reCAPTCHA v2/v3、Turnstile 和图片验证码。hCaptcha 需要 CapSolver。",- "st.captcha.two_key": "2Captcha API 密钥",- "st.captcha.two_need_key": "请输入有效的 2Captcha API 密钥:32 个十六进制字符。",- "st.captcha.two_saved": "已保存。2Captcha 已启用。",- "st.captcha.providers_security": "密钥以明文保存在此浏览器中。每个启用的服务商都可能对尝试收费。超时后切换服务商可能使两个账户都产生费用,即使第一个任务仍在运行。如果没有可用的结果,智能体会请你手动完成验证码。"+ "st.captcha.providers_security": "密钥以明文保存在此浏览器中。每个尝试过的服务商都可能收费,包括超时的情况。若全部失败,智能体会请你手动完成验证码。",+ "st.captcha.provider_desc": "使用你的 {provider} 账户自动识别 reCAPTCHA v2/v3、Turnstile 和图片验证码。hCaptcha 需要 CapSolver。",+ "st.captcha.provider_key": "{provider} API 密钥",+ "st.captcha.provider_need_key": "请输入有效的 {provider} API 密钥:32 个十六进制字符。",+ "st.captcha.enabled": "已启用",+ "st.captcha.weight": "权重(越高越优先)"},"ja": {"st.captcha.heading": "CAPTCHA の解決",- "st.captcha.order": "一方または両方のサービスを使用できます。有効なキーを保存すると有効になり、クリアすると無効になります。両方が有効な場合、先に CapSolver を試し、失敗またはタイムアウト時に 2Captcha を試します。",+ "st.captcha.order": "任意の数のサービスを有効にできます。キー入力で「有効」が選択され、保存で反映されます。解除するとキーを保持したまま使用を停止します。重みが大きい順に試し、失敗やタイムアウト時は次の対応サービスに進みます。","st.captcha.capsolver_desc": "CapSolver アカウントで reCAPTCHA v2/v3、hCaptcha、Turnstile、画像 CAPTCHA を自動的に解決します。",- "st.captcha.two_desc": "2Captcha アカウントで reCAPTCHA v2/v3、Turnstile、画像 CAPTCHA を自動的に解決します。hCaptcha には CapSolver が必要です。",- "st.captcha.two_key": "2Captcha API キー",- "st.captcha.two_need_key": "有効な 2Captcha API キーを入力してください。16 進数で 32 文字です。",- "st.captcha.two_saved": "保存しました。2Captcha は有効です。",- "st.captcha.providers_security": "キーはこのブラウザーに平文で保存されます。有効な各サービスで試行に料金がかかる場合があります。タイムアウト後の切り替えでは、最初のタスクが実行中でも両方のアカウントに料金が発生することがあります。有効な結果が得られない場合、エージェントは CAPTCHA を手動で完了するよう求めます。"+ "st.captcha.providers_security": "キーはこのブラウザに平文で保存されます。タイムアウトを含め、試行した各サービスで料金が発生する場合があります。すべて失敗すると、エージェントが手動での CAPTCHA 完了を求めます。",+ "st.captcha.provider_desc": "{provider} アカウントで reCAPTCHA v2/v3、Turnstile、画像 CAPTCHA を自動的に解決します。hCaptcha には CapSolver が必要です。",+ "st.captcha.provider_key": "{provider} API キー",+ "st.captcha.provider_need_key": "有効な {provider} API キーを入力してください。16 進数で 32 文字です。",+ "st.captcha.enabled": "有効",+ "st.captcha.weight": "重み(大きい順)"},"ko": {"st.captcha.heading": "CAPTCHA 해결",- "st.captcha.order": "한 서비스 또는 두 서비스를 모두 사용할 수 있습니다. 유효한 키를 저장하면 활성화되고 지우면 비활성화됩니다. 둘 다 활성화된 경우 CapSolver를 먼저 시도하고 실패하거나 시간이 초과되면 2Captcha를 시도합니다.",+ "st.captcha.order": "원하는 만큼 제공업체를 활성화하세요. 키를 입력하면 활성화가 선택되고 저장하면 적용됩니다. 선택을 해제하면 키는 보관하되 사용하지 않습니다. 가중치가 높은 순서로 시도하며 실패하거나 시간이 초과되면 다음 호환 업체를 시도합니다.","st.captcha.capsolver_desc": "CapSolver 계정으로 reCAPTCHA v2/v3, hCaptcha, Turnstile 및 이미지 CAPTCHA를 자동으로 해결합니다.",- "st.captcha.two_desc": "2Captcha 계정으로 reCAPTCHA v2/v3, Turnstile 및 이미지 CAPTCHA를 자동으로 해결합니다. hCaptcha에는 CapSolver가 필요합니다.",- "st.captcha.two_key": "2Captcha API 키",- "st.captcha.two_need_key": "유효한 2Captcha API 키를 입력하세요. 32자리 16진수여야 합니다.",- "st.captcha.two_saved": "저장되었습니다. 2Captcha가 활성화되었습니다.",- "st.captcha.providers_security": "키는 이 브라우저에 일반 텍스트로 저장됩니다. 활성화된 각 서비스는 시도에 대해 요금을 부과할 수 있습니다. 시간 초과 후 전환하면 첫 작업이 진행 중이어도 두 계정 모두에 요금이 부과될 수 있습니다. 사용 가능한 결과가 없으면 에이전트가 CAPTCHA를 직접 완료하도록 요청합니다."+ "st.captcha.providers_security": "키는 이 브라우저에 일반 텍스트로 저장됩니다. 시간 초과를 포함하여 시도한 각 업체에서 요금이 발생할 수 있습니다. 모두 실패하면 에이전트가 CAPTCHA를 직접 완료하도록 요청합니다.",+ "st.captcha.provider_desc": "{provider} 계정으로 reCAPTCHA v2/v3, Turnstile 및 이미지 CAPTCHA를 자동으로 해결합니다. hCaptcha에는 CapSolver가 필요합니다.",+ "st.captcha.provider_key": "{provider} API 키",+ "st.captcha.provider_need_key": "유효한 {provider} API 키를 입력하세요. 32자리 16진수여야 합니다.",+ "st.captcha.enabled": "활성화",+ "st.captcha.weight": "가중치 (높을수록 먼저)"},"ru": {"st.captcha.heading": "Решение CAPTCHA",- "st.captcha.order": "Используйте один или оба сервиса. Сохранение действительного ключа включает сервис, очистка отключает его. Если включены оба, сначала используется CapSolver, затем 2Captcha при ошибке или тайм-ауте.",+ "st.captcha.order": "Включите любое число сервисов. Ввод ключа отмечает «Включён»; сохранение применяет выбор. Снимите отметку, чтобы хранить ключ без использования. Больший вес идёт первым; при ошибке или тайм-ауте пробуется следующий совместимый сервис.","st.captcha.capsolver_desc": "Автоматически решайте reCAPTCHA v2/v3, hCaptcha, Turnstile и CAPTCHA с изображениями через свой аккаунт CapSolver.",- "st.captcha.two_desc": "Автоматически решайте reCAPTCHA v2/v3, Turnstile и CAPTCHA с изображениями через свой аккаунт 2Captcha. Для hCaptcha нужен CapSolver.",- "st.captcha.two_key": "API-ключ 2Captcha",- "st.captcha.two_need_key": "Введите действительный API-ключ 2Captcha: 32 шестнадцатеричных символа.",- "st.captcha.two_saved": "Сохранено. 2Captcha включён.",- "st.captcha.providers_security": "Ключи хранятся в этом браузере в открытом виде. Каждый включённый сервис может взимать плату за попытку. Переход после тайм-аута может привести к списанию с обоих аккаунтов, даже если первая задача ещё выполняется. Если подходящего решения нет, агент попросит вас пройти CAPTCHA вручную."+ "st.captcha.providers_security": "Ключи хранятся открытым текстом в этом браузере. Каждый опробованный сервис может списать плату, в том числе при тайм-ауте. Если все попытки неудачны, агент попросит решить CAPTCHA вручную.",+ "st.captcha.provider_desc": "Автоматически решайте reCAPTCHA v2/v3, Turnstile и CAPTCHA с изображениями через свой аккаунт {provider}. Для hCaptcha нужен CapSolver.",+ "st.captcha.provider_key": "API-ключ {provider}",+ "st.captcha.provider_need_key": "Введите действительный API-ключ {provider}: 32 шестнадцатеричных символа.",+ "st.captcha.enabled": "Включён",+ "st.captcha.weight": "Вес (больший первым)"},"uk": {"st.captcha.heading": "Розв’язання CAPTCHA",- "st.captcha.order": "Використовуйте один або обидва сервіси. Збереження дійсного ключа вмикає сервіс, очищення вимикає його. Якщо ввімкнено обидва, спочатку використовується CapSolver, а в разі помилки або тайм-ауту — 2Captcha.",+ "st.captcha.order": "Увімкніть будь-яку кількість сервісів. Введення ключа позначає «Увімкнено»; збереження застосовує вибір. Зніміть позначку, щоб зберігати ключ без використання. Більша вага йде першою; у разі помилки або тайм-ауту пробується наступний сумісний сервіс.","st.captcha.capsolver_desc": "Автоматично розв’язуйте reCAPTCHA v2/v3, hCaptcha, Turnstile та CAPTCHA із зображеннями через свій обліковий запис CapSolver.",- "st.captcha.two_desc": "Автоматично розв’язуйте reCAPTCHA v2/v3, Turnstile та CAPTCHA із зображеннями через свій обліковий запис 2Captcha. Для hCaptcha потрібен CapSolver.",- "st.captcha.two_key": "API-ключ 2Captcha",- "st.captcha.two_need_key": "Введіть дійсний API-ключ 2Captcha: 32 шістнадцяткові символи.",- "st.captcha.two_saved": "Збережено. 2Captcha ввімкнено.",- "st.captcha.providers_security": "Ключі зберігаються в цьому браузері відкритим текстом. Кожен увімкнений сервіс може стягувати плату за спробу. Перехід після тайм-ауту може спричинити списання з обох рахунків, навіть якщо перше завдання ще виконується. Якщо придатного рішення немає, агент попросить вас пройти CAPTCHA вручну."+ "st.captcha.providers_security": "Ключі зберігаються відкритим текстом у цьому браузері. Кожен випробуваний сервіс може стягнути плату, зокрема за тайм-ауту. Якщо всі спроби невдалі, агент попросить розв’язати CAPTCHA вручну.",+ "st.captcha.provider_desc": "Автоматично розв’язуйте reCAPTCHA v2/v3, Turnstile та CAPTCHA із зображеннями через свій обліковий запис {provider}. Для hCaptcha потрібен CapSolver.",+ "st.captcha.provider_key": "API-ключ {provider}",+ "st.captcha.provider_need_key": "Введіть дійсний API-ключ {provider}: 32 шістнадцяткові символи.",+ "st.captcha.enabled": "Увімкнено",+ "st.captcha.weight": "Вага (більша першою)"},"pl": {"st.captcha.heading": "Rozwiązywanie CAPTCHA",- "st.captcha.order": "Używaj jednej lub obu usług. Zapisanie prawidłowego klucza włącza usługę, a wyczyszczenie ją wyłącza. Gdy obie są aktywne, najpierw działa CapSolver, a po błędzie lub przekroczeniu czasu — 2Captcha.",+ "st.captcha.order": "Włącz dowolną liczbę usług. Wpisanie klucza zaznacza Włączone; Zapisz zatwierdza wybór. Odznacz, aby zachować klucz bez używania go. Wyższa waga ma pierwszeństwo; po błędzie lub przekroczeniu czasu próbowana jest kolejna zgodna usługa.","st.captcha.capsolver_desc": "Automatycznie rozwiązuj reCAPTCHA v2/v3, hCaptcha, Turnstile i obrazkowe CAPTCHA za pomocą konta CapSolver.",- "st.captcha.two_desc": "Automatycznie rozwiązuj reCAPTCHA v2/v3, Turnstile i obrazkowe CAPTCHA za pomocą konta 2Captcha. hCaptcha wymaga CapSolver.",- "st.captcha.two_key": "Klucz API 2Captcha",- "st.captcha.two_need_key": "Wpisz prawidłowy klucz API 2Captcha: 32 znaki szesnastkowe.",- "st.captcha.two_saved": "Zapisano. 2Captcha jest włączone.",- "st.captcha.providers_security": "Klucze są przechowywane w tej przeglądarce jawnym tekstem. Każda aktywna usługa może pobrać opłatę za próbę. Przełączenie po przekroczeniu czasu może obciążyć oba konta, nawet gdy pierwsze zadanie nadal trwa. Jeśli nie ma użytecznego rozwiązania, agent poprosi o ręczne ukończenie CAPTCHA."+ "st.captcha.providers_security": "Klucze są przechowywane jawnym tekstem w tej przeglądarce. Każda wypróbowana usługa może naliczyć opłatę, także po przekroczeniu czasu. Jeśli wszystkie zawiodą, agent poprosi o ręczne rozwiązanie CAPTCHA.",+ "st.captcha.provider_desc": "Automatycznie rozwiązuj reCAPTCHA v2/v3, Turnstile i obrazkowe CAPTCHA za pomocą konta {provider}. hCaptcha wymaga CapSolver.",+ "st.captcha.provider_key": "Klucz API {provider}",+ "st.captcha.provider_need_key": "Wpisz prawidłowy klucz API {provider}: 32 znaki szesnastkowe.",+ "st.captcha.enabled": "Włączone",+ "st.captcha.weight": "Waga (wyższa najpierw)"},"ar": {"st.captcha.heading": "حل CAPTCHA",- "st.captcha.order": "استخدم خدمة واحدة أو الخدمتين. حفظ مفتاح صالح يفعّل الخدمة، ومسحه يعطّلها. عند تفعيل الخدمتين، تُجرّب CapSolver أولاً ثم 2Captcha عند الفشل أو انتهاء المهلة.",+ "st.captcha.order": "يمكن تفعيل أي عدد من الخدمات. إدخال المفتاح يحدد «مفعّل»؛ والحفظ يطبّق الاختيار. ألغِ التحديد للاحتفاظ بالمفتاح دون استخدامه. يُجرّب الوزن الأعلى أولاً؛ وعند الفشل أو انتهاء المهلة تُجرّب الخدمة المتوافقة التالية.","st.captcha.capsolver_desc": "حل reCAPTCHA v2/v3 وhCaptcha وTurnstile واختبارات CAPTCHA المصوّرة تلقائياً باستخدام حساب CapSolver.",- "st.captcha.two_desc": "حل reCAPTCHA v2/v3 وTurnstile واختبارات CAPTCHA المصوّرة تلقائياً باستخدام حساب 2Captcha. تتطلب hCaptcha خدمة CapSolver.",- "st.captcha.two_key": "مفتاح API لخدمة 2Captcha",- "st.captcha.two_need_key": "أدخل مفتاح API صالحاً لخدمة 2Captcha: 32 رمزاً بالنظام الست عشري.",- "st.captcha.two_saved": "تم الحفظ. خدمة 2Captcha مفعّلة.",- "st.captcha.providers_security": "تُحفظ المفاتيح كنص صريح في هذا المتصفح. قد تفرض كل خدمة مفعّلة رسوماً على المحاولة. قد يؤدي الانتقال بعد انتهاء المهلة إلى احتساب رسوم على الحسابين حتى لو كانت المهمة الأولى لا تزال جارية. إذا لم تُرجع أي خدمة حلاً صالحاً، يطلب منك الوكيل إكمال CAPTCHA يدوياً."+ "st.captcha.providers_security": "تُخزّن المفاتيح كنص عادي في هذا المتصفح. قد تفرض كل خدمة جرى تجربتها رسوماً، حتى عند انتهاء المهلة. إذا فشلت جميع المحاولات، يطلب منك الوكيل إكمال CAPTCHA يدوياً.",+ "st.captcha.provider_desc": "حل reCAPTCHA v2/v3 وTurnstile واختبارات CAPTCHA المصوّرة تلقائياً باستخدام حساب {provider}. تتطلب hCaptcha خدمة CapSolver.",+ "st.captcha.provider_key": "مفتاح API لخدمة {provider}",+ "st.captcha.provider_need_key": "أدخل مفتاح API صالحاً لخدمة {provider}: 32 رمزاً بالنظام الست عشري.",+ "st.captcha.enabled": "مفعّل",+ "st.captcha.weight": "الوزن (الأعلى أولاً)"},"he": {"st.captcha.heading": "פתרון CAPTCHA",- "st.captcha.order": "אפשר להשתמש בספק אחד או בשניהם. שמירת מפתח תקין מפעילה ספק; ניקוי משבית אותו. כששניהם פעילים, CapSolver נבדק ראשון ולאחר כישלון או פסק זמן נעשה ניסיון עם 2Captcha.",+ "st.captcha.order": "אפשר להפעיל כל מספר של ספקים. הזנת מפתח מסמנת פעיל; שמירה מחילה את הבחירה. ביטול הסימון שומר את המפתח ללא שימוש. משקל גבוה יותר קודם; בכשל או בחריגת זמן מנסים את הספק התואם הבא.","st.captcha.capsolver_desc": "פתרון אוטומטי של reCAPTCHA v2/v3, hCaptcha, Turnstile ו-CAPTCHA בתמונה באמצעות חשבון CapSolver שלך.",- "st.captcha.two_desc": "פתרון אוטומטי של reCAPTCHA v2/v3, Turnstile ו-CAPTCHA בתמונה באמצעות חשבון 2Captcha שלך. hCaptcha דורש CapSolver.",- "st.captcha.two_key": "מפתח API של 2Captcha",- "st.captcha.two_need_key": "יש להזין מפתח API תקין של 2Captcha: 32 תווים הקסדצימליים.",- "st.captcha.two_saved": "נשמר. 2Captcha פעיל.",- "st.captcha.providers_security": "המפתחות נשמרים כטקסט גלוי בדפדפן זה. כל ספק פעיל עשוי לחייב עבור ניסיון. מעבר לאחר פסק זמן עשוי לחייב את שני החשבונות גם אם המשימה הראשונה עדיין פועלת. אם לא מתקבל פתרון שמיש, הסוכן יבקש ממך להשלים את ה-CAPTCHA ידנית."+ "st.captcha.providers_security": "המפתחות נשמרים כטקסט גלוי בדפדפן זה. כל ספק שנוסה עשוי לחייב, גם לאחר חריגת זמן. אם כל הניסיונות נכשלים, הסוכן מבקש להשלים את ה-CAPTCHA ידנית.",+ "st.captcha.provider_desc": "פתרון אוטומטי של reCAPTCHA v2/v3, Turnstile ו-CAPTCHA בתמונה באמצעות חשבון {provider} שלך. hCaptcha דורש CapSolver.",+ "st.captcha.provider_key": "מפתח API של {provider}",+ "st.captcha.provider_need_key": "יש להזין מפתח API תקין של {provider}: 32 תווים הקסדצימליים.",+ "st.captcha.enabled": "פעיל",+ "st.captcha.weight": "משקל (גבוה קודם)"},"fa": {"st.captcha.heading": "حل CAPTCHA",- "st.captcha.order": "از یک سرویس یا هر دو استفاده کنید. ذخیرهٔ کلید معتبر سرویس را فعال و پاککردن آن غیرفعال میکند. اگر هر دو فعال باشند، ابتدا CapSolver و در صورت خطا یا پایان مهلت، 2Captcha امتحان میشود.",+ "st.captcha.order": "هر تعداد ارائهدهنده را فعال کنید. وارد کردن کلید، فعال را علامت میزند؛ ذخیره انتخاب را اعمال میکند. برای نگهداری کلید بدون استفاده، علامت را بردارید. وزن بالاتر اول اجرا میشود؛ در خطا یا پایان مهلت، ارائهدهنده سازگار بعدی امتحان میشود.","st.captcha.capsolver_desc": "با حساب CapSolver خود reCAPTCHA v2/v3، hCaptcha، Turnstile و CAPTCHAهای تصویری را خودکار حل کنید.",- "st.captcha.two_desc": "با حساب 2Captcha خود reCAPTCHA v2/v3، Turnstile و CAPTCHAهای تصویری را خودکار حل کنید. hCaptcha به CapSolver نیاز دارد.",- "st.captcha.two_key": "کلید API سرویس 2Captcha",- "st.captcha.two_need_key": "یک کلید API معتبر 2Captcha وارد کنید: ۳۲ نویسهٔ شانزدهشانزدهی.",- "st.captcha.two_saved": "ذخیره شد. 2Captcha فعال است.",- "st.captcha.providers_security": "کلیدها بهصورت متن ساده در این مرورگر ذخیره میشوند. هر سرویس فعال ممکن است برای تلاش هزینه بگیرد. تغییر سرویس پس از پایان مهلت ممکن است از هر دو حساب هزینه بگیرد، حتی اگر کار اول هنوز در حال اجرا باشد. اگر راهحل قابل استفادهای دریافت نشود، عامل از شما میخواهد CAPTCHA را دستی تکمیل کنید."+ "st.captcha.providers_security": "کلیدها بهصورت متن ساده در این مرورگر ذخیره میشوند. هر ارائهدهنده امتحانشده ممکن است هزینه بگیرد، حتی پس از پایان مهلت. اگر همه تلاشها شکست بخورند، عامل تکمیل دستی CAPTCHA را درخواست میکند.",+ "st.captcha.provider_desc": "با حساب {provider} خود reCAPTCHA v2/v3، Turnstile و CAPTCHAهای تصویری را خودکار حل کنید. hCaptcha به CapSolver نیاز دارد.",+ "st.captcha.provider_key": "کلید API سرویس {provider}",+ "st.captcha.provider_need_key": "یک کلید API معتبر {provider} وارد کنید: ۳۲ نویسهٔ شانزدهشانزدهی.",+ "st.captcha.enabled": "فعال",+ "st.captcha.weight": "وزن (بالاتر ابتدا)"},"hi": {"st.captcha.heading": "CAPTCHA हल करना",- "st.captcha.order": "एक या दोनों सेवाओं का उपयोग करें। मान्य कुंजी सहेजने से सेवा सक्रिय होती है; साफ़ करने से बंद होती है। दोनों सक्रिय हों तो पहले CapSolver और विफलता या समय सीमा पूरी होने पर 2Captcha आज़माया जाता है।",+ "st.captcha.order": "जितने चाहें प्रदाता सक्षम करें। कुंजी डालने पर सक्षम चुना जाता है; सहेजने पर लागू होता है। कुंजी रखकर उपयोग बंद करने के लिए चयन हटाएँ। अधिक भार पहले चलता है; विफलता या समय समाप्त होने पर अगला संगत प्रदाता आज़माया जाता है।","st.captcha.capsolver_desc": "अपने CapSolver खाते से reCAPTCHA v2/v3, hCaptcha, Turnstile और चित्र CAPTCHA अपने-आप हल करें।",- "st.captcha.two_desc": "अपने 2Captcha खाते से reCAPTCHA v2/v3, Turnstile और चित्र CAPTCHA अपने-आप हल करें। hCaptcha के लिए CapSolver चाहिए।",- "st.captcha.two_key": "2Captcha API कुंजी",- "st.captcha.two_need_key": "मान्य 2Captcha API कुंजी दर्ज करें: 32 हेक्साडेसिमल वर्ण।",- "st.captcha.two_saved": "सहेजा गया। 2Captcha सक्रिय है।",- "st.captcha.providers_security": "कुंजियाँ इस ब्राउज़र में सादे पाठ के रूप में सहेजी जाती हैं। हर सक्रिय सेवा प्रयास के लिए शुल्क ले सकती है। समय सीमा पूरी होने पर दूसरी सेवा आज़माने से दोनों खातों पर शुल्क लग सकता है, भले ही पहला काम अभी चल रहा हो। उपयोग योग्य समाधान न मिलने पर एजेंट आपसे CAPTCHA मैन्युअल रूप से पूरा करने को कहता है।"+ "st.captcha.providers_security": "कुंजियाँ इस ब्राउज़र में सादे पाठ में रखी जाती हैं। हर आज़माया गया प्रदाता शुल्क ले सकता है, समय समाप्त होने पर भी। सभी प्रयास विफल हों तो एजेंट CAPTCHA स्वयं पूरा करने को कहता है।",+ "st.captcha.provider_desc": "अपने {provider} खाते से reCAPTCHA v2/v3, Turnstile और चित्र CAPTCHA अपने-आप हल करें। hCaptcha के लिए CapSolver चाहिए।",+ "st.captcha.provider_key": "{provider} API कुंजी",+ "st.captcha.provider_need_key": "मान्य {provider} API कुंजी दर्ज करें: 32 हेक्साडेसिमल वर्ण।",+ "st.captcha.enabled": "सक्षम",+ "st.captcha.weight": "भार (अधिक पहले)"},"bn": {"st.captcha.heading": "CAPTCHA সমাধান",- "st.captcha.order": "একটি বা উভয় পরিষেবা ব্যবহার করুন। বৈধ কী সংরক্ষণ করলে পরিষেবা চালু হয়; মুছে ফেললে বন্ধ হয়। উভয়টি চালু থাকলে প্রথমে CapSolver, ব্যর্থ হলে বা সময় শেষ হলে 2Captcha চেষ্টা করা হয়।",+ "st.captcha.order": "যত খুশি সেবা চালু করুন। কী লিখলে সক্রিয় নির্বাচিত হয়; সংরক্ষণ করলে প্রয়োগ হয়। কী রেখে ব্যবহার বন্ধ করতে নির্বাচন সরান। বেশি ওজন আগে চলে; ব্যর্থ হলে বা সময় শেষ হলে পরের উপযুক্ত সেবা চেষ্টা করা হয়।","st.captcha.capsolver_desc": "আপনার CapSolver অ্যাকাউন্ট দিয়ে reCAPTCHA v2/v3, hCaptcha, Turnstile এবং ছবির CAPTCHA স্বয়ংক্রিয়ভাবে সমাধান করুন।",- "st.captcha.two_desc": "আপনার 2Captcha অ্যাকাউন্ট দিয়ে reCAPTCHA v2/v3, Turnstile এবং ছবির CAPTCHA স্বয়ংক্রিয়ভাবে সমাধান করুন। hCaptcha-এর জন্য CapSolver প্রয়োজন।",- "st.captcha.two_key": "2Captcha API কী",- "st.captcha.two_need_key": "একটি বৈধ 2Captcha API কী লিখুন: ৩২টি হেক্সাডেসিমেল অক্ষর।",- "st.captcha.two_saved": "সংরক্ষিত। 2Captcha চালু আছে।",- "st.captcha.providers_security": "কীগুলি এই ব্রাউজারে সাধারণ পাঠ্য হিসেবে সংরক্ষিত থাকে। প্রতিটি সক্রিয় পরিষেবা চেষ্টার জন্য অর্থ নিতে পারে। সময় শেষ হলে অন্য পরিষেবায় যাওয়ার কারণে প্রথম কাজ চলতে থাকলেও উভয় অ্যাকাউন্টে খরচ হতে পারে। ব্যবহারযোগ্য সমাধান না এলে এজেন্ট আপনাকে CAPTCHA নিজে সম্পূর্ণ করতে বলে।"+ "st.captcha.providers_security": "কীগুলো এই ব্রাউজারে সাধারণ পাঠ্য হিসেবে সংরক্ষিত হয়। চেষ্টা করা প্রতিটি সেবা চার্জ নিতে পারে, সময় শেষ হলেও। সব চেষ্টা ব্যর্থ হলে এজেন্ট নিজে CAPTCHA সম্পূর্ণ করতে বলে।",+ "st.captcha.provider_desc": "আপনার {provider} অ্যাকাউন্ট দিয়ে reCAPTCHA v2/v3, Turnstile এবং ছবির CAPTCHA স্বয়ংক্রিয়ভাবে সমাধান করুন। hCaptcha-এর জন্য CapSolver প্রয়োজন।",+ "st.captcha.provider_key": "{provider} API কী",+ "st.captcha.provider_need_key": "একটি বৈধ {provider} API কী লিখুন: ৩২টি হেক্সাডেসিমেল অক্ষর।",+ "st.captcha.enabled": "সক্রিয়",+ "st.captcha.weight": "ওজন (বেশি আগে)"},"id": {"st.captcha.heading": "Penyelesaian CAPTCHA",- "st.captcha.order": "Gunakan salah satu atau kedua layanan. Menyimpan kunci valid mengaktifkan layanan; Hapus menonaktifkannya. Jika keduanya aktif, CapSolver dicoba dahulu, lalu 2Captcha jika gagal atau batas waktu habis.",+ "st.captcha.order": "Aktifkan sebanyak mungkin penyedia yang diinginkan. Memasukkan kunci mencentang Aktif; Simpan menerapkannya. Hapus centang untuk menyimpan kunci tanpa menggunakannya. Bobot lebih tinggi didahulukan; saat gagal atau waktu habis, penyedia kompatibel berikutnya dicoba.","st.captcha.capsolver_desc": "Selesaikan reCAPTCHA v2/v3, hCaptcha, Turnstile, dan CAPTCHA gambar secara otomatis dengan akun CapSolver Anda.",- "st.captcha.two_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile, dan CAPTCHA gambar secara otomatis dengan akun 2Captcha Anda. hCaptcha memerlukan CapSolver.",- "st.captcha.two_key": "Kunci API 2Captcha",- "st.captcha.two_need_key": "Masukkan kunci API 2Captcha yang valid: 32 karakter heksadesimal.",- "st.captcha.two_saved": "Disimpan. 2Captcha aktif.",- "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa di browser ini. Setiap layanan aktif dapat mengenakan biaya per percobaan. Peralihan setelah batas waktu habis dapat membebani kedua akun meskipun tugas pertama masih berjalan. Jika tidak ada solusi yang dapat digunakan, agen meminta Anda menyelesaikan CAPTCHA secara manual."+ "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa di browser ini. Setiap penyedia yang dicoba dapat mengenakan biaya, termasuk saat waktu habis. Jika semuanya gagal, agen meminta Anda menyelesaikan CAPTCHA secara manual.",+ "st.captcha.provider_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile, dan CAPTCHA gambar secara otomatis dengan akun {provider} Anda. hCaptcha memerlukan CapSolver.",+ "st.captcha.provider_key": "Kunci API {provider}",+ "st.captcha.provider_need_key": "Masukkan kunci API {provider} yang valid: 32 karakter heksadesimal.",+ "st.captcha.enabled": "Aktif",+ "st.captcha.weight": "Bobot (lebih tinggi dahulu)"},"ms": {"st.captcha.heading": "Penyelesaian CAPTCHA",- "st.captcha.order": "Gunakan satu atau kedua-dua perkhidmatan. Menyimpan kunci sah mengaktifkan perkhidmatan; Kosongkan menyahaktifkannya. Jika kedua-duanya aktif, CapSolver dicuba dahulu, kemudian 2Captcha jika gagal atau tamat masa.",+ "st.captcha.order": "Aktifkan seberapa banyak penyedia yang dikehendaki. Memasukkan kunci menandakan Aktif; Simpan menerapkannya. Buang tanda untuk menyimpan kunci tanpa menggunakannya. Wajaran lebih tinggi didahulukan; jika gagal atau tamat masa, penyedia serasi seterusnya dicuba.","st.captcha.capsolver_desc": "Selesaikan reCAPTCHA v2/v3, hCaptcha, Turnstile dan CAPTCHA imej secara automatik dengan akaun CapSolver anda.",- "st.captcha.two_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile dan CAPTCHA imej secara automatik dengan akaun 2Captcha anda. hCaptcha memerlukan CapSolver.",- "st.captcha.two_key": "Kunci API 2Captcha",- "st.captcha.two_need_key": "Masukkan kunci API 2Captcha yang sah: 32 aksara perenambelasan.",- "st.captcha.two_saved": "Disimpan. 2Captcha aktif.",- "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa dalam pelayar ini. Setiap perkhidmatan aktif boleh mengenakan caj bagi percubaan. Pertukaran selepas tamat masa boleh mengenakan caj pada kedua-dua akaun walaupun tugas pertama masih berjalan. Jika tiada penyelesaian yang boleh digunakan, ejen meminta anda melengkapkan CAPTCHA secara manual."+ "st.captcha.providers_security": "Kunci disimpan sebagai teks biasa dalam pelayar ini. Setiap penyedia yang dicuba mungkin mengenakan caj, termasuk selepas tamat masa. Jika semuanya gagal, ejen meminta anda melengkapkan CAPTCHA secara manual.",+ "st.captcha.provider_desc": "Selesaikan reCAPTCHA v2/v3, Turnstile dan CAPTCHA imej secara automatik dengan akaun {provider} anda. hCaptcha memerlukan CapSolver.",+ "st.captcha.provider_key": "Kunci API {provider}",+ "st.captcha.provider_need_key": "Masukkan kunci API {provider} yang sah: 32 aksara perenambelasan.",+ "st.captcha.enabled": "Aktif",+ "st.captcha.weight": "Wajaran (lebih tinggi dahulu)"},"vi": {"st.captcha.heading": "Giải CAPTCHA",- "st.captcha.order": "Dùng một hoặc cả hai dịch vụ. Lưu khóa hợp lệ để bật dịch vụ; Xóa để tắt. Khi cả hai được bật, CapSolver được thử trước, rồi đến 2Captcha nếu thất bại hoặc hết thời gian chờ.",+ "st.captcha.order": "Bật bao nhiêu nhà cung cấp tùy ý. Nhập khóa sẽ chọn Đã bật; Lưu sẽ áp dụng. Bỏ chọn để giữ khóa mà không sử dụng. Trọng số cao được thử trước; khi lỗi hoặc hết thời gian, nhà cung cấp tương thích tiếp theo được thử.","st.captcha.capsolver_desc": "Tự động giải reCAPTCHA v2/v3, hCaptcha, Turnstile và CAPTCHA hình ảnh bằng tài khoản CapSolver của bạn.",- "st.captcha.two_desc": "Tự động giải reCAPTCHA v2/v3, Turnstile và CAPTCHA hình ảnh bằng tài khoản 2Captcha của bạn. hCaptcha cần CapSolver.",- "st.captcha.two_key": "Khóa API 2Captcha",- "st.captcha.two_need_key": "Nhập khóa API 2Captcha hợp lệ: 32 ký tự thập lục phân.",- "st.captcha.two_saved": "Đã lưu. 2Captcha đã được bật.",- "st.captcha.providers_security": "Khóa được lưu dưới dạng văn bản thuần trong trình duyệt này. Mỗi dịch vụ đang bật có thể tính phí cho một lần thử. Việc chuyển dịch vụ sau khi hết thời gian chờ có thể tính phí cả hai tài khoản dù tác vụ đầu vẫn đang chạy. Nếu không có lời giải dùng được, tác nhân sẽ yêu cầu bạn hoàn tất CAPTCHA thủ công."+ "st.captcha.providers_security": "Khóa được lưu dưới dạng văn bản thuần trong trình duyệt này. Mỗi nhà cung cấp đã thử có thể tính phí, kể cả khi hết thời gian. Nếu tất cả thất bại, tác nhân yêu cầu bạn hoàn thành CAPTCHA thủ công.",+ "st.captcha.provider_desc": "Tự động giải reCAPTCHA v2/v3, Turnstile và CAPTCHA hình ảnh bằng tài khoản {provider} của bạn. hCaptcha cần CapSolver.",+ "st.captcha.provider_key": "Khóa API {provider}",+ "st.captcha.provider_need_key": "Nhập khóa API {provider} hợp lệ: 32 ký tự thập lục phân.",+ "st.captcha.enabled": "Đã bật",+ "st.captcha.weight": "Trọng số (cao trước)"},"th": {"st.captcha.heading": "การแก้ CAPTCHA",- "st.captcha.order": "ใช้บริการเดียวหรือทั้งสองบริการได้ การบันทึกคีย์ที่ถูกต้องจะเปิดใช้บริการ และการล้างจะปิดใช้ หากเปิดทั้งสอง จะลอง CapSolver ก่อน แล้วจึงลอง 2Captcha เมื่อล้มเหลวหรือหมดเวลา",+ "st.captcha.order": "เปิดใช้ผู้ให้บริการได้ตามต้องการ เมื่อกรอกคีย์จะเลือกเปิดใช้งาน และบันทึกเพื่อใช้ค่า ยกเลิกการเลือกเพื่อเก็บคีย์ไว้โดยไม่ใช้งาน น้ำหนักสูงจะถูกลองก่อน หากล้มเหลวหรือหมดเวลาจะลองผู้ให้บริการที่รองรับรายถัดไป","st.captcha.capsolver_desc": "แก้ reCAPTCHA v2/v3, hCaptcha, Turnstile และ CAPTCHA แบบรูปภาพโดยอัตโนมัติด้วยบัญชี CapSolver ของคุณ",- "st.captcha.two_desc": "แก้ reCAPTCHA v2/v3, Turnstile และ CAPTCHA แบบรูปภาพโดยอัตโนมัติด้วยบัญชี 2Captcha ของคุณ โดย hCaptcha ต้องใช้ CapSolver",- "st.captcha.two_key": "คีย์ API ของ 2Captcha",- "st.captcha.two_need_key": "ป้อนคีย์ API ของ 2Captcha ที่ถูกต้อง: อักขระฐานสิบหก 32 ตัว",- "st.captcha.two_saved": "บันทึกแล้ว เปิดใช้ 2Captcha แล้ว",- "st.captcha.providers_security": "คีย์จะถูกเก็บเป็นข้อความธรรมดาในเบราว์เซอร์นี้ แต่ละบริการที่เปิดใช้อาจคิดค่าบริการต่อการลอง การเปลี่ยนบริการหลังหมดเวลาอาจทำให้ทั้งสองบัญชีถูกคิดค่าบริการ แม้งานแรกยังทำงานอยู่ หากไม่มีคำตอบที่ใช้ได้ เอเจนต์จะขอให้คุณทำ CAPTCHA ด้วยตนเอง"+ "st.captcha.providers_security": "คีย์ถูกเก็บเป็นข้อความธรรมดาในเบราว์เซอร์นี้ ผู้ให้บริการแต่ละรายที่ลองอาจคิดค่าบริการ รวมถึงเมื่อหมดเวลา หากทุกครั้งล้มเหลว เอเจนต์จะขอให้คุณทำ CAPTCHA เอง",+ "st.captcha.provider_desc": "แก้ reCAPTCHA v2/v3, Turnstile และ CAPTCHA แบบรูปภาพโดยอัตโนมัติด้วยบัญชี {provider} ของคุณ โดย hCaptcha ต้องใช้ CapSolver",+ "st.captcha.provider_key": "คีย์ API ของ {provider}",+ "st.captcha.provider_need_key": "ป้อนคีย์ API ของ {provider} ที่ถูกต้อง: อักขระฐานสิบหก 32 ตัว",+ "st.captcha.enabled": "เปิดใช้งาน",+ "st.captcha.weight": "น้ำหนัก (สูงก่อน)"},"tl": {"st.captcha.heading": "Paglutas ng CAPTCHA",- "st.captcha.order": "Gamitin ang isa o parehong serbisyo. Ang pag-save ng wastong key ay nagpapagana sa serbisyo; ang pag-clear ay nagdi-disable nito. Kapag parehong aktibo, CapSolver muna, saka 2Captcha kapag nabigo o nag-timeout.",+ "st.captcha.order": "Paganahin ang kahit ilang serbisyo. Ang paglagay ng key ay pipili sa Naka-enable; ilalapat ito ng I-save. Alisin ang tsek upang itago ang key nang hindi ginagamit. Mas mataas na timbang ang mauuna; kapag nabigo o nag-timeout, susubukan ang susunod na katugmang serbisyo.","st.captcha.capsolver_desc": "Awtomatikong lutasin ang reCAPTCHA v2/v3, hCaptcha, Turnstile, at mga CAPTCHA na larawan gamit ang iyong CapSolver account.",- "st.captcha.two_desc": "Awtomatikong lutasin ang reCAPTCHA v2/v3, Turnstile, at mga CAPTCHA na larawan gamit ang iyong 2Captcha account. Kailangan ng CapSolver para sa hCaptcha.",- "st.captcha.two_key": "API key ng 2Captcha",- "st.captcha.two_need_key": "Maglagay ng wastong API key ng 2Captcha: 32 hexadecimal na character.",- "st.captcha.two_saved": "Na-save. Naka-enable ang 2Captcha.",- "st.captcha.providers_security": "Nakaimbak ang mga key bilang plain text sa browser na ito. Maaaring maningil ang bawat aktibong serbisyo para sa isang pagsubok. Ang paglipat pagkatapos ng timeout ay maaaring maningil sa parehong account kahit tumatakbo pa ang unang gawain. Kung walang magagamit na solusyon, hihilingin ng agent na kumpletuhin mo mismo ang CAPTCHA."+ "st.captcha.providers_security": "Nakaimbak ang mga key bilang plain text sa browser na ito. Bawat sinubukang serbisyo ay maaaring maningil, kahit matapos ang timeout. Kapag lahat ay nabigo, hihilingin ng agent na kumpletuhin mo mismo ang CAPTCHA.",+ "st.captcha.provider_desc": "Awtomatikong lutasin ang reCAPTCHA v2/v3, Turnstile, at mga CAPTCHA na larawan gamit ang iyong {provider} account. Kailangan ng CapSolver para sa hCaptcha.",+ "st.captcha.provider_key": "API key ng {provider}",+ "st.captcha.provider_need_key": "Maglagay ng wastong API key ng {provider}: 32 hexadecimal na character.",+ "st.captcha.enabled": "Naka-enable",+ "st.captcha.weight": "Timbang (mas mataas muna)"}};diff --git a/src/firefox/src/ui/settings.html b/src/firefox/src/ui/settings.htmlindex 74753ee8b..3d487274c 100644--- a/src/firefox/src/ui/settings.html+++ b/src/firefox/src/ui/settings.html@@ -1230,7 +1230,16 @@.captcha-provider h4 a { color: var(--accent); text-decoration: none; }.captcha-provider h4 a:hover { text-decoration: underline; }.captcha-provider .btn-row { flex-wrap: wrap; }- </style>+ .captcha-provider-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }+ .captcha-enabled { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }+ .captcha-enabled input { margin: 0; width: auto; }+ .captcha-advanced { margin-top: 14px; font-size: 12px; color: var(--text2); }+ .captcha-advanced summary { cursor: pointer; }+ #captcha-card .captcha-advanced > summary::after { content: '+'; }+ #captcha-card .captcha-advanced[open] > summary::after { content: '-'; }+ .captcha-advanced .field { margin-top: 12px; }+ .captcha-advanced input { max-width: 140px; }+</style><link rel="stylesheet" href="apocalypse-comm.css"><link rel="stylesheet" href="download-tracker.css"></head>@@ -1622,11 +1631,14 @@<p class="captcha-description" data-i18n="st.captcha.order"></p><section class="captcha-provider" aria-labelledby="capsolver-heading">- <h4 id="capsolver-heading"><a href="https://capsolver.com" target="_blank" rel="noopener noreferrer">CapSolver</a></h4>- <p class="captcha-description" data-i18n="st.captcha.capsolver_desc"></p>+ <div class="captcha-provider-header">+ <h4 id="capsolver-heading"><a href="https://capsolver.com" target="_blank" rel="noopener noreferrer">CapSolver</a></h4>+ <label class="captcha-enabled"><input type="checkbox" id="captcha-enabled"><span data-i18n="st.captcha.enabled"></span></label>+ </div>+ <p class="captcha-description" data-i18n="st.captcha.capsolver_desc" data-i18n-params='{"provider":"CapSolver"}'></p><div class="field">- <label for="captcha-api-key" data-i18n="st.captcha.api_key.label"></label>- <input type="password" id="captcha-api-key" placeholder="CAP-XXXXXXXXXXXXXXXXXXXX" pattern="CAP-[A-Za-z0-9_-]{20,}" minlength="24" autocomplete="off" spellcheck="false">+ <label for="captcha-api-key" data-i18n="st.captcha.api_key.label" data-i18n-params='{"provider":"CapSolver"}'></label>+ <input type="password" id="captcha-api-key" pattern="CAP-[A-Za-z0-9_-]{20,}" minlength="24" autocomplete="off" spellcheck="false"></div><div class="btn-row"><button class="btn-primary" id="btn-save-captcha" data-i18n="st.captcha.save"></button>@@ -1634,14 +1646,24 @@<button class="btn-secondary" id="btn-clear-captcha" data-i18n="st.captcha.clear"></button></div><div class="test-result" id="test-captcha" role="status" aria-live="polite"></div>+ <details class="captcha-advanced">+ <summary data-i18n="st.display.advanced"></summary>+ <div class="field">+ <label for="captcha-weight" data-i18n="st.captcha.weight"></label>+ <input type="number" id="captcha-weight" value="100" step="any">+ </div>+ </details></section><section class="captcha-provider" aria-labelledby="two-captcha-heading">- <h4 id="two-captcha-heading"><a href="https://2captcha.com" target="_blank" rel="noopener noreferrer">2Captcha</a></h4>- <p class="captcha-description" data-i18n="st.captcha.two_desc"></p>+ <div class="captcha-provider-header">+ <h4 id="two-captcha-heading"><a href="https://2captcha.com" target="_blank" rel="noopener noreferrer">2Captcha</a></h4>+ <label class="captcha-enabled"><input type="checkbox" id="two-captcha-enabled"><span data-i18n="st.captcha.enabled"></span></label>+ </div>+ <p class="captcha-description" data-i18n="st.captcha.provider_desc" data-i18n-params='{"provider":"2Captcha"}'></p><div class="field">- <label for="two-captcha-api-key" data-i18n="st.captcha.two_key"></label>- <input type="password" id="two-captcha-api-key" placeholder="0123456789abcdef0123456789abcdef" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false">+ <label for="two-captcha-api-key" data-i18n="st.captcha.provider_key" data-i18n-params='{"provider":"2Captcha"}'></label>+ <input type="password" id="two-captcha-api-key" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false"></div><div class="btn-row"><button class="btn-primary" id="btn-save-two-captcha" data-i18n="st.captcha.save"></button>@@ -1649,6 +1671,88 @@<button class="btn-secondary" id="btn-clear-two-captcha" data-i18n="st.captcha.clear"></button></div><div class="test-result" id="test-two-captcha" role="status" aria-live="polite"></div>+ <details class="captcha-advanced">+ <summary data-i18n="st.display.advanced"></summary>+ <div class="field">+ <label for="two-captcha-weight" data-i18n="st.captcha.weight"></label>+ <input type="number" id="two-captcha-weight" value="99" step="any">+ </div>+ </details>+ </section>++ <section class="captcha-provider" aria-labelledby="capmonster-heading">+ <div class="captcha-provider-header">+ <h4 id="capmonster-heading"><a href="https://capmonster.cloud" target="_blank" rel="noopener noreferrer">CapMonster Cloud</a></h4>+ <label class="captcha-enabled"><input type="checkbox" id="capmonster-enabled"><span data-i18n="st.captcha.enabled"></span></label>+ </div>+ <p class="captcha-description" data-i18n="st.captcha.provider_desc" data-i18n-params='{"provider":"CapMonster Cloud"}'></p>+ <div class="field">+ <label for="capmonster-api-key" data-i18n="st.captcha.provider_key" data-i18n-params='{"provider":"CapMonster Cloud"}'></label>+ <input type="password" id="capmonster-api-key" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false">+ </div>+ <div class="btn-row">+ <button class="btn-primary" id="btn-save-capmonster" data-i18n="st.captcha.save"></button>+ <button class="btn-secondary" id="btn-test-capmonster" data-i18n="st.captcha.check_balance"></button>+ <button class="btn-secondary" id="btn-clear-capmonster" data-i18n="st.captcha.clear"></button>+ </div>+ <div class="test-result" id="test-capmonster" role="status" aria-live="polite"></div>+ <details class="captcha-advanced">+ <summary data-i18n="st.display.advanced"></summary>+ <div class="field">+ <label for="capmonster-weight" data-i18n="st.captcha.weight"></label>+ <input type="number" id="capmonster-weight" value="98" step="any">+ </div>+ </details>+ </section>++ <section class="captcha-provider" aria-labelledby="solve-captcha-heading">+ <div class="captcha-provider-header">+ <h4 id="solve-captcha-heading"><a href="https://solvecaptcha.com" target="_blank" rel="noopener noreferrer">SolveCaptcha</a></h4>+ <label class="captcha-enabled"><input type="checkbox" id="solve-captcha-enabled"><span data-i18n="st.captcha.enabled"></span></label>+ </div>+ <p class="captcha-description" data-i18n="st.captcha.provider_desc" data-i18n-params='{"provider":"SolveCaptcha"}'></p>+ <div class="field">+ <label for="solve-captcha-api-key" data-i18n="st.captcha.provider_key" data-i18n-params='{"provider":"SolveCaptcha"}'></label>+ <input type="password" id="solve-captcha-api-key" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false">+ </div>+ <div class="btn-row">+ <button class="btn-primary" id="btn-save-solve-captcha" data-i18n="st.captcha.save"></button>+ <button class="btn-secondary" id="btn-test-solve-captcha" data-i18n="st.captcha.check_balance"></button>+ <button class="btn-secondary" id="btn-clear-solve-captcha" data-i18n="st.captcha.clear"></button>+ </div>+ <div class="test-result" id="test-solve-captcha" role="status" aria-live="polite"></div>+ <details class="captcha-advanced">+ <summary data-i18n="st.display.advanced"></summary>+ <div class="field">+ <label for="solve-captcha-weight" data-i18n="st.captcha.weight"></label>+ <input type="number" id="solve-captcha-weight" value="97" step="any">+ </div>+ </details>+ </section>++ <section class="captcha-provider" aria-labelledby="anti-captcha-heading">+ <div class="captcha-provider-header">+ <h4 id="anti-captcha-heading"><a href="https://anti-captcha.com" target="_blank" rel="noopener noreferrer">Anti-Captcha</a></h4>+ <label class="captcha-enabled"><input type="checkbox" id="anti-captcha-enabled"><span data-i18n="st.captcha.enabled"></span></label>+ </div>+ <p class="captcha-description" data-i18n="st.captcha.provider_desc" data-i18n-params='{"provider":"Anti-Captcha"}'></p>+ <div class="field">+ <label for="anti-captcha-api-key" data-i18n="st.captcha.provider_key" data-i18n-params='{"provider":"Anti-Captcha"}'></label>+ <input type="password" id="anti-captcha-api-key" pattern="[A-Fa-f0-9]{32}" minlength="32" maxlength="32" autocomplete="off" spellcheck="false">+ </div>+ <div class="btn-row">+ <button class="btn-primary" id="btn-save-anti-captcha" data-i18n="st.captcha.save"></button>+ <button class="btn-secondary" id="btn-test-anti-captcha" data-i18n="st.captcha.check_balance"></button>+ <button class="btn-secondary" id="btn-clear-anti-captcha" data-i18n="st.captcha.clear"></button>+ </div>+ <div class="test-result" id="test-anti-captcha" role="status" aria-live="polite"></div>+ <details class="captcha-advanced">+ <summary data-i18n="st.display.advanced"></summary>+ <div class="field">+ <label for="anti-captcha-weight" data-i18n="st.captcha.weight"></label>+ <input type="number" id="anti-captcha-weight" value="96" step="any">+ </div>+ </details></section><div class="info-box" style="margin-top:16px;" data-i18n="st.captcha.providers_security"></div></div>diff --git a/src/firefox/src/ui/settings.js b/src/firefox/src/ui/settings.jsindex a4f91ecaa..0de2b605c 100644--- a/src/firefox/src/ui/settings.js+++ b/src/firefox/src/ui/settings.js@@ -37,11 +37,7 @@ import {USER_MEMORY_MAX_PROMPT_CHARS_KEY,normalizeUserMemoryMaxPromptChars,} from '../agent/user-memory.js';-import {- isValidCapsolverApiKey,- normalizeCapsolverApiKey,-} from '../agent/capsolver-config.js';-import { isValidTwoCaptchaApiKey, normalizeTwoCaptchaApiKey } from '../agent/captcha-provider-config.js';+import { initCaptchaSettings } from './captcha-settings.js';import {isValidTypesafeApiKey,normalizeSystemOneThreshold,@@ -197,16 +193,6 @@ const btnClearUserMemory = document.getElementById('btn-clear-user-memory');const userMemoryImportText = document.getElementById('user-memory-import-text');const btnImportUserMemory = document.getElementById('btn-import-user-memory');const userMemoryTestResult = document.getElementById('test-user-memory');-const captchaApiKeyInput = document.getElementById('captcha-api-key');-const btnSaveCaptcha = document.getElementById('btn-save-captcha');-const btnTestCaptcha = document.getElementById('btn-test-captcha');-const btnClearCaptcha = document.getElementById('btn-clear-captcha');-const captchaTestResult = document.getElementById('test-captcha');-const twoCaptchaApiKeyInput = document.getElementById('two-captcha-api-key');-const btnSaveTwoCaptcha = document.getElementById('btn-save-two-captcha');-const btnTestTwoCaptcha = document.getElementById('btn-test-two-captcha');-const btnClearTwoCaptcha = document.getElementById('btn-clear-two-captcha');-const twoCaptchaTestResult = document.getElementById('test-two-captcha');const systemOneApiKeyInput = document.getElementById('system-one-api-key');const systemOneEnabledToggle = document.getElementById('toggle-system-one');const systemOneWatchToggle = document.getElementById('toggle-system-one-watch');@@ -702,14 +688,8 @@ async function init() {if (profileTextArea) profileTextArea.value = profileStored.profileText || '';await loadUserMemorySettings();- // Saving a valid key enables its provider independently.- const captchaStored = await browser.storage.local.get(['capsolverApiKey', 'twoCaptchaApiKey', 'webbrainCloudManaged']);- const cloudCaptchaCard = document.getElementById('captcha-card');- if (cloudCaptchaCard) cloudCaptchaCard.style.display = captchaStored.webbrainCloudManaged === true ? 'none' : '';- if (captchaApiKeyInput) captchaApiKeyInput.value = captchaStored.webbrainCloudManaged === true- ? '' : (captchaStored.capsolverApiKey || '');- if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = captchaStored.webbrainCloudManaged === true- ? '' : (captchaStored.twoCaptchaApiKey || '');+ // Each provider has independent key, enable state, and fallback weight.+ await initCaptchaSettings(browser.storage.local, sendToBackground, t);await loadCustomSkills();@@ -1980,133 +1960,6 @@ if (btnImportUserMemory) {});}-// --- CapSolver (captcha solving) ----// Saving a structurally valid API key enables CapSolver automatically.--function showCaptchaResult(className, text, color = '') {- if (!captchaTestResult) return;- captchaTestResult.className = `test-result show${className ? ` ${className}` : ''}`;- captchaTestResult.textContent = text;- captchaTestResult.style.color = color || '';- return captchaTestResult;-}--function flashCaptchaResult(className, text) {- const resultEl = showCaptchaResult(className, text);- if (resultEl) setTimeout(() => resultEl.classList.remove('show'), 3000);-}--if (btnSaveCaptcha) {- btnSaveCaptcha.addEventListener('click', async () => {- const key = normalizeCapsolverApiKey(captchaApiKeyInput?.value);- if (!isValidCapsolverApiKey(key)) {- flashCaptchaResult('fail', t('st.captcha.need_key'));- return;- }- if (captchaApiKeyInput) captchaApiKeyInput.value = key;- // Saving the key is the user's explicit opt-in. Keep the legacy boolean- // as an internal consent bit so upgrades preserve an existing opt-out.- await browser.storage.local.set({- capsolverApiKey: key,- captchaSolverEnabled: true,- });- flashCaptchaResult('ok', t('st.captcha.saved'));- });-}--if (btnTestCaptcha) {- btnTestCaptcha.addEventListener('click', async () => {- const key = normalizeCapsolverApiKey(captchaApiKeyInput?.value);- if (!isValidCapsolverApiKey(key)) {- flashCaptchaResult('fail', t('st.captcha.need_key'));- return;- }- showCaptchaResult('', t('st.captcha.checking'), 'var(--text2)');- try {- const res = await sendToBackground('test_capsolver_balance', { apiKey: key });- if (res?.ok) {- flashCaptchaResult('ok', t('st.captcha.balance_ok', { balance: `$${Number(res.balance).toFixed(4)}` }));- } else {- flashCaptchaResult('fail', t('st.captcha.balance_fail', { error: res?.error || 'Unknown error' }));- }- } catch (e) {- flashCaptchaResult('fail', t('st.captcha.balance_fail', { error: e.message }));- }- });-}--if (btnClearCaptcha) {- btnClearCaptcha.addEventListener('click', async () => {- if (captchaApiKeyInput) captchaApiKeyInput.value = '';- // Remove the legacy flag too so old exports cannot preserve a- // contradictory enabled-without-a-key state.- await browser.storage.local.remove(['capsolverApiKey', 'captchaSolverEnabled']);- flashCaptchaResult('ok', t('st.captcha.cleared'));- });-}--// --- 2Captcha (independent opt-in and balance check) -----function showTwoCaptchaResult(className, text, color = '') {- if (!twoCaptchaTestResult) return;- twoCaptchaTestResult.className = `test-result show${className ? ` ${className}` : ''}`;- twoCaptchaTestResult.textContent = text;- twoCaptchaTestResult.style.color = color || '';- return twoCaptchaTestResult;-}--function flashTwoCaptchaResult(className, text) {- const resultEl = showTwoCaptchaResult(className, text);- if (resultEl) setTimeout(() => resultEl.classList.remove('show'), 3000);-}--if (btnSaveTwoCaptcha) {- btnSaveTwoCaptcha.addEventListener('click', async () => {- const key = normalizeTwoCaptchaApiKey(twoCaptchaApiKeyInput?.value);- if (!isValidTwoCaptchaApiKey(key)) {- flashTwoCaptchaResult('fail', t('st.captcha.two_need_key'));- return;- }- if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = key;- // Saving this key opts in to 2Captcha independently of CapSolver.- await browser.storage.local.set({- twoCaptchaApiKey: key,- twoCaptchaEnabled: true,- });- flashTwoCaptchaResult('ok', t('st.captcha.two_saved'));- });-}--if (btnTestTwoCaptcha) {- btnTestTwoCaptcha.addEventListener('click', async () => {- const key = normalizeTwoCaptchaApiKey(twoCaptchaApiKeyInput?.value);- if (!isValidTwoCaptchaApiKey(key)) {- flashTwoCaptchaResult('fail', t('st.captcha.two_need_key'));- return;- }- showTwoCaptchaResult('', t('st.captcha.checking'), 'var(--text2)');- try {- const res = await sendToBackground('test_two_captcha_balance', { apiKey: key });- if (res?.ok) {- flashTwoCaptchaResult('ok', t('st.captcha.balance_ok', { balance: `$${Number(res.balance).toFixed(4)}` }));- } else {- flashTwoCaptchaResult('fail', t('st.captcha.balance_fail', { error: res?.error || 'Unknown error' }));- }- } catch (e) {- flashTwoCaptchaResult('fail', t('st.captcha.balance_fail', { error: e.message }));- }- });-}--if (btnClearTwoCaptcha) {- btnClearTwoCaptcha.addEventListener('click', async () => {- if (twoCaptchaApiKeyInput) twoCaptchaApiKeyInput.value = '';- // Clear only this provider's key and consent.- await browser.storage.local.remove(['twoCaptchaApiKey', 'twoCaptchaEnabled']);- flashTwoCaptchaResult('ok', t('st.captcha.cleared'));- });-}-// --- Provider Rendering ---// Prompt-tier selector, shown only for local + OpenRouter providers (cloud isdiff --git a/test/captcha-providers.mjs b/test/captcha-providers.mjsindex 7cf6a385d..487d48d3a 100644--- a/test/captcha-providers.mjs+++ b/test/captcha-providers.mjs@@ -31,7 +31,7 @@ for (const build of ['chrome', 'firefox']) {const base = new URL(`../src/${build}/src/ui/locales/`, import.meta.url);const locales = (await readdir(base)).filter(name => name.endsWith('.js')).map(name => name.slice(0, -3));const markup = await readFile(new URL('../settings.html', base), 'utf8');- const settings = await readFile(new URL('../settings.js', base), 'utf8');+ const settings = await readFile(new URL('../captcha-settings.js', base), 'utf8');const keys = Object.keys(captchaEnglish).sort();for (const key of keys) assert.ok(markup.includes(key) || settings.includes(key), `${key}: unused copy`);for (const lang of locales) {@@ -39,7 +39,7 @@ for (const build of ['chrome', 'firefox']) {assert.ok(copy, `${lang}: missing translation`);assert.deepEqual(Object.keys(copy).sort(), keys, `${lang}: incomplete translation`);for (const key of keys) assert.ok(copy[key].trim().length > 0, `${lang}/${key}: empty translation`);- assert.match(copy['st.captcha.two_desc'], /hCaptcha.*CapSolver|CapSolver.*hCaptcha/, lang);+ assert.match(copy['st.captcha.provider_desc'], /hCaptcha.*CapSolver|CapSolver.*hCaptcha/, lang);const legacy = (await import(new URL(`${lang}.js`, base))).default;for (const key of ['desc_html', 'security_html', 'enabled.label', 'enabled.desc']) {assert.equal(legacy[`st.captcha.${key}`], undefined, `${lang}: stale copy retained`);diff --git a/test/captcha-settings-ui.mjs b/test/captcha-settings-ui.mjsindex 2ec392f37..b637eda65 100644--- a/test/captcha-settings-ui.mjs+++ b/test/captcha-settings-ui.mjs@@ -19,6 +19,7 @@ await new Promise(r => server.listen(0, '127.0.0.1', r));const origin = `http://127.0.0.1:${server.address().port}`;try {for (const [build, engine] of [['chrome', chromium], ['firefox', firefox]]) {+ if (process.env.CAPTCHA_UI_BROWSER && process.env.CAPTCHA_UI_BROWSER !== build) continue;const browser = await engine.launch();try {for (const lang of ['en', 'tr', 'de', 'zh', 'ar']) for (const width of [390, 1280]) {@@ -39,7 +40,7 @@ try {runtime: { getURL: path => `${location.origin}/src/${build}/${path}`, getManifest: () => ({ version: '36.7.5' }), onMessage: { addListener() {} }, sendMessage(msg, callback) {testRequests.push(msg);const result = msg.action === 'get_providers' ? { providers: {}, active: '' }- : msg.action === 'test_two_captcha_balance' || msg.action === 'test_capsolver_balance' ? { ok: !window.failBalance, balance: 2.5, error: window.failBalance ? 'Synthetic balance failure' : undefined }+ : msg.action === 'test_captcha_provider_balance' || msg.action === 'test_two_captcha_balance' || msg.action === 'test_capsolver_balance' ? { ok: !window.failBalance, balance: 2.5, error: window.failBalance ? 'Synthetic balance failure' : undefined }: {};callback?.(result); return Promise.resolve(result);} }, commands: { getAll: async () => [] }, tabs: { create: async () => ({}) },@@ -50,15 +51,21 @@ try {await page.goto(`${origin}/src/${build}/src/ui/settings.html#display`);await page.reload();await page.waitForFunction(() => testRequests.some(r => r.action === 'get_providers'));- await page.locator('details.advanced-settings').first().locator('summary').click();+ await page.locator('details.advanced-settings').first().locator(':scope > summary').click();};await openSettings();const card = page.locator('#captcha-card');await card.scrollIntoViewIfNeeded();- assert.equal(await card.locator('section').count(), 2);- assert.equal(await card.evaluate(el => el.textContent.includes('st.captcha.')), false);+ assert.equal(await card.locator('section').count(), 5);+ assert.equal(await card.evaluate(el => el.textContent.includes('st.captcha.') || el.textContent.includes('{provider}')), false);+ assert.equal(await card.locator('.captcha-advanced[open]').count(), 0);+ for (const [id, defaultWeight] of [['captcha', 100], ['two-captcha', 99], ['capmonster', 98], ['solve-captcha', 97], ['anti-captcha', 96]]) {+ assert.equal(await page.locator(`#${id}-weight`).isVisible(), false);+ assert.equal(await page.locator(`#${id}-weight`).locator('xpath=ancestor::details[1]/summary').evaluate(el => getComputedStyle(el, '::after').content), '"+"');+ assert.equal(await page.locator(`#${id}-weight`).inputValue(), String(defaultWeight));+ }assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), undefined);- await card.screenshot({ path: `${output}/${build}-${lang}-${width}.png` });+ await card.screenshot({ path: `${output}/${build}-${lang}-${width}.png`, style: '.tabs { visibility: hidden; }' });assert.equal(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth), true);await page.locator('#two-captcha-api-key').fill('invalid');await page.locator('#btn-save-two-captcha').click();@@ -69,7 +76,12 @@ try {await page.locator('#btn-test-two-captcha').click();await page.waitForFunction(() => document.querySelector('#test-two-captcha').textContent.includes('2.5000'));assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), undefined, 'balance check is not consent');+ assert.equal(await page.locator('#two-captcha-enabled').isChecked(), true);+ await page.locator('#two-captcha-enabled').uncheck();await page.locator('#btn-save-two-captcha').click();+ assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), false, 'save respects an explicit opt-out');+ assert.equal(await page.evaluate(() => testStore.twoCaptchaApiKey), key);+ await page.locator('#two-captcha-enabled').check();assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), true);assert.equal(await page.evaluate(() => testStore.captchaSolverEnabled), undefined);await page.locator('#captcha-api-key').fill('CAP-0123456789abcdefghij');@@ -88,6 +100,34 @@ try {await page.locator('#btn-clear-two-captcha').click();assert.equal(await page.evaluate(() => testStore.twoCaptchaEnabled), undefined);assert.equal(await page.evaluate(() => testStore.twoCaptchaApiKey), undefined);+ for (const [id, keyName, enabledName, weightName] of [+ ['capmonster', 'capmonsterApiKey', 'capmonsterEnabled', 'capmonsterWeight'],+ ['solve-captcha', 'solveCaptchaApiKey', 'solveCaptchaEnabled', 'solveCaptchaWeight'],+ ['anti-captcha', 'antiCaptchaApiKey', 'antiCaptchaEnabled', 'antiCaptchaWeight'],+ ]) {+ await page.locator(`#${id}-api-key`).fill(key);+ assert.equal(await page.locator(`#${id}-enabled`).isChecked(), true);+ await page.locator(`#btn-save-${id}`).click();+ assert.equal(await page.evaluate(name => testStore[name], enabledName), true);+ await page.locator(`#${id}-enabled`).uncheck();+ await page.locator(`#${id}-api-key`).fill('f'.repeat(32));+ assert.equal(await page.locator(`#${id}-enabled`).isChecked(), false, 'manual opt-out survives further typing');+ await page.locator(`#btn-save-${id}`).click();+ assert.equal(await page.evaluate(name => testStore[name], enabledName), false);+ await page.locator(`#${id}-weight`).locator('xpath=ancestor::details[1]/summary').click();+ await page.locator(`#${id}-weight`).fill('110');+ await page.locator(`#${id}-weight`).blur();+ await page.waitForFunction(name => testStore[name] === 110, weightName);+ await openSettings();+ assert.equal(await page.locator(`#${id}-enabled`).isChecked(), false);+ assert.equal(await page.locator(`#${id}-api-key`).inputValue(), 'f'.repeat(32));+ assert.equal(await page.locator(`#${id}-weight`).inputValue(), '110');+ assert.equal(await page.locator(`#${id}-weight`).isVisible(), false);+ await page.locator(`#${id}-enabled`).check();+ await page.locator(`#btn-test-${id}`).click();+ await page.waitForFunction(dom => document.querySelector(`#test-${dom}`).textContent.includes('2.5000'), id);+ assert.equal(await page.evaluate(name => testStore[name], enabledName), true);+ }await page.evaluate(() => chrome.storage.local.set({ webbrainCloudManaged: true }));await openSettings();assert.equal(await card.isVisible(), false, 'managed settings keep broker-only UI');diff --git a/test/captcha-weighted-fallback.mjs b/test/captcha-weighted-fallback.mjsnew file mode 100644index 000000000..c5851af81--- /dev/null+++ b/test/captcha-weighted-fallback.mjs@@ -0,0 +1,163 @@+import test from 'node:test';+import assert from 'node:assert/strict';+import { readFile } from 'node:fs/promises';++const key = '0123456789abcdef0123456789abcdef';+const params = { type: 'turnstile', websiteURL: 'https://example.com/form', websiteKey: 'widget', metadata: { action: 'managed', cdata: 'data', chlPageData: 'page-data' } };+function api(t, respond) {+ let now = 0;+ const calls = [];+ t.mock.method(Date, 'now', () => now);+ t.mock.method(globalThis, 'setTimeout', (fn, delay) => { now += delay; fn(); });+ t.mock.method(globalThis, 'fetch', async (url, options) => {+ const parsed = new URL(url);+ const form = parsed.hostname === 'api.solvecaptcha.com';+ const body = form ? Object.fromEntries(options.body || parsed.searchParams) : JSON.parse(options.body);+ const call = { url, path: parsed.pathname, host: parsed.hostname, body, options, now };+ calls.push(call);+ const result = await respond(call, calls.length);+ return result instanceof Response ? result : Response.json(result);+ });+ return calls;+}++for (const build of ['chrome', 'firefox']) {+ const config = await import(`../src/${build}/src/agent/captcha-provider-config.js`);+ const solver = await import(`../src/${build}/src/agent/captcha-solver.js`);+ const extra = await import(`../src/${build}/src/agent/captcha-additional-providers.js`);+ const transfer = await import(`../src/${build}/src/config-transfer.js`);+ const all = Object.fromEntries(config.CAPTCHA_PROVIDERS.flatMap(p => [[p.key, p.id === 'capsolver' ? 'CAP-0123456789abcdefghij' : key], [p.enabled, true]]));+ const ids = value => config.getCaptchaProviders(value).map(p => p.id);++ test(`${build}: weights order all five, ties remain deterministic, disabled keys stay unused`, () => {+ assert.deepEqual(ids(all), ['capsolver', '2captcha', 'capmonster', 'solvecaptcha', 'anti-captcha']);+ assert.deepEqual(ids({ ...all, antiCaptchaWeight: 101, twoCaptchaEnabled: false }), ['anti-captcha', 'capsolver', 'capmonster', 'solvecaptcha']);+ assert.deepEqual(ids({ ...all, capmonsterWeight: 100, solveCaptchaWeight: 100 }), ['capsolver', 'capmonster', 'solvecaptcha', '2captcha', 'anti-captcha']);+ assert.deepEqual(ids({ ...all, capmonsterWeight: NaN, antiCaptchaWeight: Infinity, solveCaptchaWeight: '200' }), ids(all));+ assert.equal(ids({ ...all, capsolverWeight: -1 }).at(-1), 'capsolver');+ assert.equal(config.getCaptchaProviders({ ...all, antiCaptchaWeight: 0 }).at(-1).weight, 0);+ for (const p of config.CAPTCHA_PROVIDERS) {+ assert.deepEqual(ids({ [p.key]: all[p.key] }), []);+ assert.deepEqual(ids({ [p.key]: 'bad-key', [p.enabled]: true }), []);+ }+ assert.deepEqual(config.getCaptchaProviders({ ...all, webbrainCloudManaged: true }), []);+ assert.deepEqual(config.getCaptchaProviders({ ...all, webbrainCloudManaged: true, webbrainCloudCapsolverBrokerEnabled: true, antiCaptchaWeight: 200 }), [{ id: 'capsolver', apiKey: '', useCloudBroker: true }]);+ });++ test(`${build}: keys, checkbox states, and custom weights survive config round trip`, () => {+ const values = { ...all, antiCaptchaWeight: 120.5, capmonsterEnabled: false, solveCaptchaWeight: 0 };+ const imported = transfer.parseConfigImport(JSON.stringify(transfer.createConfigExport(values))).settings;+ for (const p of config.CAPTCHA_PROVIDERS) {+ assert.equal(imported[p.key], values[p.key]);+ assert.equal(imported[p.enabled], values[p.enabled]);+ assert.equal(imported[p.weight], values[p.weight] ?? p.defaultWeight);+ const keyOnly = transfer.parseConfigImport(JSON.stringify({ schema: transfer.CONFIG_SCHEMA, settings: { [p.key]: all[p.key] } })).settings;+ assert.equal(keyOnly[p.enabled], false);+ }+ assert.deepEqual(config.getCaptchaProviders(imported), config.getCaptchaProviders(values));+ });++ test(`${build}: provider-specific mappings preserve enterprise and Turnstile metadata`, () => {+ const normalized = solver.buildTask(params);+ const anti = extra.buildAdditionalCaptchaTask('anti-captcha', normalized);+ assert.deepEqual(anti, { type: 'TurnstileTaskProxyless', websiteURL: params.websiteURL, websiteKey: 'widget', action: 'managed', cData: 'data', chlPageData: 'page-data' });+ const monster = extra.buildAdditionalCaptchaTask('capmonster', normalized);+ assert.deepEqual(monster, { type: 'TurnstileTask', websiteURL: params.websiteURL, websiteKey: 'widget', data: 'data', pageAction: 'managed', pageData: 'page-data', cloudflareTaskType: 'token' });+ const solve = extra.buildSolveCaptchaTask(normalized);+ assert.deepEqual(solve, { method: 'turnstile', sitekey: 'widget', pageurl: params.websiteURL, action: 'managed', data: 'data', pagedata: 'page-data' });+ for (const type of ['recaptcha_v2', 'recaptcha_v2_enterprise', 'recaptcha_v3', 'recaptcha_v3_enterprise']) {+ const task = solver.buildTask({ ...params, type, pageAction: 'login', minScore: 0.7, enterprisePayload: { s: 's-value' } });+ const antiTask = extra.buildAdditionalCaptchaTask('anti-captcha', task);+ const capTask = extra.buildAdditionalCaptchaTask('capmonster', task);+ const solveTask = extra.buildSolveCaptchaTask(task);+ assert.equal(solveTask.method, 'userrecaptcha');+ assert.equal(solveTask.enterprise, type.includes('enterprise') ? 1 : undefined);+ if (type.includes('v3')) {+ assert.equal(antiTask.type, 'RecaptchaV3TaskProxyless');+ assert.equal(capTask.isEnterprise, type.includes('enterprise'));+ assert.equal(solveTask.version, 'v3');+ assert.equal(solveTask.action, 'login');+ assert.equal(solveTask.min_score, 0.7);+ } else {+ assert.equal(capTask.type, type.includes('enterprise') ? 'RecaptchaV2EnterpriseTask' : 'RecaptchaV2Task');+ assert.equal(antiTask.type, type.includes('enterprise') ? 'RecaptchaV2EnterpriseTaskProxyless' : 'RecaptchaV2TaskProxyless');+ }+ }+ });++ test(`${build}: one attempt per service follows weights and stops on last-provider success`, async t => {+ const calls = api(t, call => {+ if (call.host === 'api.solvecaptcha.com') return { status: 0, request: 'ERROR_ZERO_BALANCE' };+ if (call.host !== 'api.anti-captcha.com') return { errorId: 1, errorCode: 'ERROR_ZERO_BALANCE' };+ return call.path === '/createTask' ? { taskId: 123 } : { status: 'ready', solution: { token: 'solved' } };+ });+ const result = await solver.solveCaptchaWithProviders(config.getCaptchaProviders({ ...all, capmonsterWeight: 120 }), params);+ assert.equal(result.provider, 'anti-captcha');+ assert.equal(result.token, 'solved');+ assert.deepEqual(calls.filter(c => c.path === '/createTask' || c.path === '/in.php').map(c => c.host), ['api.capmonster.cloud', 'api.capsolver.com', 'api.2captcha.com', 'api.solvecaptcha.com', 'api.anti-captcha.com']);+ for (const call of calls) assert.equal(call.body.clientKey || call.body.key, call.host === 'api.capsolver.com' ? all.capsolverApiKey : key);+ });++ for (const id of ['capmonster', 'solvecaptcha', 'anti-captcha']) {+ const p = config.CAPTCHA_PROVIDERS.find(p => p.id === id);+ test(`${build}: ${id} supports balance, processing, image result, and early success`, async t => {+ let polls = 0;+ const calls = api(t, call => {+ if (id === 'solvecaptcha') {+ if (call.body.action === 'getbalance') return { status: 1, request: '3.5' };+ if (call.path === '/in.php') { assert.equal(call.body.method, 'base64'); return { status: 1, request: 'task-1' }; }+ assert.equal(call.body.id, 'task-1');+ return ++polls === 1 ? { status: 0, request: 'CAPCHA_NOT_READY' } : { status: 1, request: 'text-result' };+ }+ if (call.path === '/getBalance') return { errorId: 0, balance: 3.5 };+ if (call.path === '/createTask') { assert.equal(call.body.task.type, 'ImageToTextTask'); return { taskId: 42 }; }+ assert.equal(call.body.taskId, 42);+ return ++polls === 1 ? { status: 'processing' } : { status: 'ready', solution: { text: 'text-result' } };+ });+ assert.deepEqual(await extra.getAdditionalCaptchaBalance(id, key), { balance: 3.5 });+ const providers = config.getCaptchaProviders({ ...all, [p.weight]: 200 });+ const result = await solver.solveCaptchaWithProviders(providers, { type: 'image_to_text', body: 'image-data' });+ assert.equal(result.provider, id);+ assert.equal(result.token, 'text-result');+ assert.equal(calls.length, 4);+ assert.equal(new Set(calls.map(c => c.host)).size, 1);+ });+ test(`${build}: ${id} timeout falls back; disabling it prevents all its requests`, async t => {+ const calls = api(t, call => {+ if (call.host === 'api.capsolver.com') return call.path === '/createTask' ? { taskId: 'fallback' } : { status: 'ready', solution: { token: 'fallback-token' } };+ if (id === 'solvecaptcha') return call.path === '/in.php' ? { status: 1, request: 'slow-task' } : { status: 0, request: 'CAPCHA_NOT_READY' };+ return call.path === '/createTask' ? { taskId: 'slow-task' } : { status: 'processing' };+ });+ assert.equal((await solver.solveCaptchaWithProviders(config.getCaptchaProviders({ ...all, [p.weight]: 200 }), params)).provider, 'capsolver');+ assert.equal(calls.filter(c => c.path === '/createTask' || c.path === '/in.php').length, 2);+ calls.length = 0;+ await solver.solveCaptchaWithProviders(config.getCaptchaProviders({ ...all, [p.weight]: 200, [p.enabled]: false }), params);+ assert.ok(calls.every(c => c.host === 'api.capsolver.com'));+ });+ test(`${build}: ${id} rejects errors and malformed balances; hCaptcha never dispatches`, async t => {+ const calls = api(t, () => id === 'solvecaptcha' ? { status: 1, request: '' } : { errorId: 0 });+ await assert.rejects(extra.getAdditionalCaptchaBalance(id, key), /missing balance/);+ const count = calls.length;+ await assert.rejects(solver.solveCaptchaWithProviders(config.getCaptchaProviders({ [p.key]: key, [p.enabled]: true }), { ...params, type: 'hcaptcha' }), /No enabled provider supports/);+ assert.equal(calls.length, count);+ await assert.rejects(extra.solveWithAdditionalProvider(id, key, solver.buildTask(params)), /missing task/);+ });+ }+ test(`${build}: SolveCaptcha v3 waits before polling and uses its legacy protocol`, async t => {+ const calls = api(t, call => call.path === '/in.php' ? { status: 1, request: 'v3-id' } : { status: 1, request: 'v3-token' });+ const result = await solver.solveCaptchaWithProviders(config.getCaptchaProviders({ solveCaptchaApiKey: key, solveCaptchaEnabled: true }), { ...params, type: 'recaptcha_v3_enterprise', pageAction: 'login' });+ assert.equal(result.token, 'v3-token');+ assert.equal(calls[0].options.method, 'POST');+ assert.equal(calls[0].body.enterprise, '1');+ assert.equal(calls[0].body.version, 'v3');+ assert.equal(calls[1].options.method, 'GET');+ assert.equal(calls[1].body.action, 'get');+ assert.equal(calls[1].now, 20_000);+ });+}++test('shared provider code and settings controller match in both browser builds', async () => {+ for (const file of ['agent/captcha-provider-config.js', 'agent/captcha-json-api.js', 'agent/captcha-additional-providers.js', 'agent/two-captcha.js', 'ui/captcha-settings.js', 'ui/locales/captcha-copy.mjs']) {+ assert.equal(await readFile(`src/chrome/src/${file}`, 'utf8'), await readFile(`src/firefox/src/${file}`, 'utf8'), file);+ }+});diff --git a/test/run.js b/test/run.jsindex 9c9907df0..ab0e5e106 100644--- a/test/run.js+++ b/test/run.js@@ -45700,26 +45700,9 @@ test('saving a valid CapSolver key opts in without overriding legacy opt-outs',pathToFileURL(path.join(ROOT, prefix, 'src/agent/capsolver-config.js')).href);- assert.doesNotMatch(html, /toggle-captcha-enabled/, `${label}: CapSolver still exposes a redundant enable switch`);- assert.match(- html,- /id="captcha-api-key"[^>]*pattern="CAP-\[A-Za-z0-9_-\]\{20,\}"[^>]*minlength="24"/,- `${label}: CapSolver key input should expose the same structural validation as the runtime`,- );- assert.doesNotMatch(settings, /captchaEnabledToggle/, `${label}: removed CapSolver toggle still has settings handlers`);-- const saveStart = settings.indexOf("btnSaveCaptcha.addEventListener('click', async () => {");- const saveEnd = settings.indexOf('\n });\n}\n\nif (btnTestCaptcha', saveStart);- assert.notEqual(saveStart, -1, `${label}: CapSolver save handler missing`);- assert.notEqual(saveEnd, -1, `${label}: CapSolver save handler boundary missing`);- const saveBody = settings.slice(saveStart, saveEnd + 7);- assert.match(saveBody, /normalizeCapsolverApiKey\(captchaApiKeyInput\?\.value\)/, `${label}: CapSolver key should be normalized before saving`);- assert.match(saveBody, /if \(!isValidCapsolverApiKey\(key\)\) \{[\s\S]*?return;/, `${label}: malformed CapSolver keys should not be saved`);- assert.match(- saveBody,- new RegExp(`await ${api}\\.storage\\.local\\.set\\(\\{[\\s\\S]*?capsolverApiKey: key,[\\s\\S]*?captchaSolverEnabled: true,[\\s\\S]*?\\}\\)`),- `${label}: saving a valid CapSolver key should record explicit consent`,- );+ assert.match(html, /type="checkbox" id="captcha-enabled"/);+ assert.match(settings, /initCaptchaSettings/);+ assert.match(html, /id="captcha-api-key"[^>]*pattern="CAP-\[A-Za-z0-9_-\]\{20,\}"[^>]*minlength="24"/);assert.ok(background.includes(`const stored = await ${api}.storage.local.get(CAPTCHA_SETTINGS_KEYS)`)@@ -45729,7 +45712,7 @@ test('saving a valid CapSolver key opts in without overriding legacy opt-outs',);assert.match(background,- /if \(changes\.capsolverApiKey \|\| changes\.captchaSolverEnabled[\s\S]*?changes\.webbrainCloudCapsolverBrokerEnabled\) \{[\s\S]*?loadCaptchaSolver\(\)[\s\S]*?agent\._refreshSystemPrompts\(\)/,+ /if \(CAPTCHA_SETTINGS_KEYS\.some\(key => changes\[key\]\)\) \{[\s\S]*?loadCaptchaSolver\(\)[\s\S]*?agent\._refreshSystemPrompts\(\)/,`${label}: key, consent, or broker changes should refresh CapSolver availability immediately`,);assert.ok(@@ -47743,7 +47726,8 @@ test('settings provider save and test status updates are DOM-safe', () => {);assert.match(settings, /visionTestResult\.style\.color = color \|\| '';/, `${label}: vision results should clear stale inline colors`);assert.match(settings, /transcriptionTestResult\.style\.color = color \|\| '';/, `${label}: transcription results should clear stale inline colors`);- assert.match(settings, /captchaTestResult\.style\.color = color \|\| '';/, `${label}: captcha results should clear stale inline colors`);+ const captchaSettings = fs.readFileSync(path.join(ROOT, settingsRel.replace('settings.js', 'captcha-settings.js')), 'utf8');+ assert.match(captchaSettings, /result\.style\.color = '';/, `${label}: captcha results should clear stale inline colors`);const saveStart = settings.indexOf('async function saveProvider(id, { showFlash = true, markConfigured = true } = {}) {');assert.notEqual(saveStart, -1, `${label}: saveProvider missing`);@@ -48232,11 +48216,9 @@ test('settings async test controls surface rejected background results', () => {/function showTranscriptionResult\(className, text, color = ''\) \{[\s\S]*?if \(!transcriptionTestResult\) return;[\s\S]*?transcriptionTestResult\.style\.color = color \|\| '';[\s\S]*?return transcriptionTestResult;[\s\S]*?\}/,`${label}: transcription status helper should clear stale inline colors and tolerate absent controls`,);- assert.match(- settings,- /function showCaptchaResult\(className, text, color = ''\) \{[\s\S]*?if \(!captchaTestResult\) return;[\s\S]*?captchaTestResult\.style\.color = color \|\| '';[\s\S]*?return captchaTestResult;[\s\S]*?\}/,- `${label}: captcha status helper should clear stale inline colors and tolerate absent controls`,- );+ const captchaSettings = fs.readFileSync(path.join(ROOT, settingsRel.replace('settings.js', 'captcha-settings.js')), 'utf8');+ assert.match(captchaSettings, /result\.textContent = message;/, `${label}: CAPTCHA status uses safe text`);+ assert.match(captchaSettings, /result\.style\.color = '';/, `${label}: CAPTCHA status resets inline color`);const visionStart = settings.indexOf("btnTestVision.addEventListener('click', async () => {");assert.notEqual(visionStart, -1, `${label}: vision test handler missing`);@@ -48258,16 +48240,9 @@ test('settings async test controls surface rejected background results', () => {`${label}: rejected transcription provider checks should replace the testing state with a failure`,);- const captchaStart = settings.indexOf("btnTestCaptcha.addEventListener('click', async () => {");- assert.notEqual(captchaStart, -1, `${label}: captcha test handler missing`);- const captchaEnd = settings.indexOf('\n });\n}\n\nif (btnClearCaptcha', captchaStart);- assert.notEqual(captchaEnd, -1, `${label}: captcha test handler boundary missing`);- const captchaBody = settings.slice(captchaStart, captchaEnd + 7);- assert.match(- captchaBody,- /showCaptchaResult\('', t\('st\.captcha\.checking'\), 'var\(--text2\)'\);[\s\S]*?try \{[\s\S]*?const res = await sendToBackground\('test_capsolver_balance', \{ apiKey: key \}\);[\s\S]*?flashCaptchaResult\('ok'[\s\S]*?flashCaptchaResult\('fail'[\s\S]*?\} catch \(e\) \{[\s\S]*?flashCaptchaResult\('fail', t\('st\.captcha\.balance_fail', \{ error: e\.message \}\)\);[\s\S]*?\}/,- `${label}: rejected captcha balance checks should replace the checking state with a failure`,- );+ assert.match(captchaSettings, /sendToBackground\(action, \{ apiKey: key, provider: provider.id \}\)/);+ assert.match(captchaSettings, /catch \(error\) \{ show\('fail', t\('st\.captcha\.balance_fail', \{ error: error\.message \}\)\); \}/);+assert.match(settings,