Greasy Fork is available in English.

DeathByCatpcha API Wrapper

API wrapper for using DeathByCaptcha's decaptcha service

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.greasyfork.org/scripts/9125/158918/DeathByCatpcha%20API%20Wrapper.js

作者
cykage
版本
0.0.1.20150410093403
建立日期
2015-04-10
更新日期
2015-04-10
授權條款
未知

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