🏠 

DeathByCatpcha API Wrapper

API wrapper for using DeathByCaptcha's decaptcha service

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/9125/158918/DeathByCatpcha%20API%20Wrapper.js


Ask a question, post a review, or report the script.
Author
cykage
Version
0.0.1.20150410093403
Created
2015-04-10
Updated
2015-04-10
Size
4.03 KB
License
N/A

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:

DeathByCaptcha.balance(callback)

callback paramters:

DeathByCaptcha.report(capId, callback)

callback paramters: