DeathByCatpcha API Wrapper

API wrapper for using DeathByCaptcha's decaptcha service

이 스크립트는 직접 설치하는 용도가 아닙니다. 다른 스크립트에서 메타 지시문 // @require https://update.greasyfork.org/scripts/9125/158918/DeathByCatpcha%20API%20Wrapper.js을(를) 사용하여 포함하는 라이브러리입니다.

작성자
cykage
버전
0.0.1.20150410093403
생성일
2015-04-10
갱신일
2015-04-10
크기
4.03KB
라이선스
해당 없음

For use in user scripts for solving catpchas on pages DeathByCaptha account required

Usage

var dbc = new DeathByCaptcha('DBC_USERNAME', 'DBC_PASSWORD');

var capImg = document.querySelector('.captcha-image');

dbc.solve(capImg, function(err, solution, capId) {
    if (!err) {
        console.log(solution)
    }

    //if solution is incorrect 
    {
        dbc.report(capId)
    }
}

DeathByCaptcha.solve(imgNode, callback)

callback paramters:

  • error: Error returned if unsuccessful
  • solution: String of solved captcha
  • captchaID: ID # returned from DBC service

DeathByCaptcha.balance(callback)

callback paramters:

  • error: Error returned if unsuccessful
  • balance: Account balance in cents

DeathByCaptcha.report(capId, callback)

callback paramters:

  • error: Error returned if unsuccessful