// ==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();
}
);
})();
是的,可以通过用户脚本实现。例子:
将其粘贴为新的Tampermonkey脚本,然后确保其已启用。
请注意,使用这样的脚本可能会影响 reCaptcha 的机器人分数,并且您可能会因为看起来过于自动化而遇到更多挑战。