您能让 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();
    }
  );
})();

将其粘贴为例如 new坦普猴脚本,然后确保它已启用。

请注意,使用这样的脚本可能会影响 reCaptcha 的机器人分数,并且您可能会因为过于自动化而面临更多挑战。

相关内容