Greasy Fork is available in English.

getVaptchaCode

vaptcha-iframe 依赖库

이 스크립트는 직접 설치해서 쓰는 게 아닙니다. 다른 스크립트가 메타 명령 // @require https://update.greasyfork.org/scripts/418420/878837/getVaptchaCode.js(으)로 포함하여 쓰는 라이브러리입니다.

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
Jixun.Moe
버전
0.0.1.20201210000758
생성
2020-12-09
갱신
2020-12-10
라이선스
없음

适用于用户脚本的 vaptcha-iframe 人机验证方案。

同步于: https://raw.githubusercontent.com/jixunmoe/vaptcha-iframe/default/getVaptchaCode.js

DEMO: https://jixunmoe.github.io/vaptcha-iframe/

仓库: https://github.com/jixunmoe/vaptcha-iframe/

// 初始化
        const vid = '5b4d9c76a485e504101923df';
        const frameURL = 'https://jixunmoe.github.io/vaptcha-iframe/frame.html#' + location.origin + '|' + vid;

// 提交代码

        async function submit(data) {
            data.token = await getVaptchaCode(frameURL, document.getElementById('container'));
            fetch(...);
        }