您可以將 Google 的 reCAPTCHA 預設為聲音版本嗎?

您可以將 Google 的 reCAPTCHA 預設為聲音版本嗎?

您可以將 Google 的 reCAPTCHA 預設為聲音版本嗎?我正在使用 Chrome 和 Firefox,我厭倦了每次都必須手動選擇聲音。

答案1

是的,可以透過使用者腳本實現。例子:

// ==UserScript==
// @name         Autoplay Google reCAPTCHA v2
// @description  Attempts to autoplay audio version of Google reCAPTCHA v2.
// @namespace    https://github.com/Destroy666x
// @author       Destroy666
// @version      1.0
// @supportURL   https://github.com/Destroy666x/greasemonkey-script-collection
// @homepage     https://patreon.com/Designeous
// @match        *://*/*
// @grant        none
// ==/UserScript==

(async function() {
  'use strict';
  const { default: monitoring } = await import('https://cdn.jsdelivr.net/npm/monitoring/dist/monitoring-latest.min.mjs');

  // Monitor with iframe support
  const monitor = monitoring(document.body, { iframes: true });
  const imagePopupSelector = '#rc-imageselect';
  const audioButtonSelector = '#recaptcha-audio-button';
  const playButtonSelector = '.rc-button-default';

  // We need to monitor the popup as it's buggy for the button (or some children in general)
  monitor.appeared(
    imagePopupSelector,
    el => {
        el.querySelector(audioButtonSelector).click();
    }
  );

  // Also monitor the popup with the play button to press it, here it works directly
  monitor.appeared(
    playButtonSelector,
    el => {
        el.click();
    }
  );
})();

將其貼為例如新的搗固猴腳本,然後確保它已啟用。

請注意,使用這樣的腳本可能會影響 reCaptcha 的機器人分數,您可能會因為看起來過於自動化而遇到更多挑戰。

相關內容