skotz / cbl-js

JavaScript CAPTCHA solving library
MIT License
155 stars 47 forks source link

Use image file instead of img html node? #37

Closed openseauser closed 4 years ago

openseauser commented 4 years ago

Is there a way I can just have this solve a captcha from the downloaded image instead of through an img element? I'm doing some cross domain stuff, and I want to avoid opening an iframe as it slows things down.

skotz commented 4 years ago

You mean open an image file without directly or indirectly loading it with an img tag? Right now I believe it only works if the image is already referenced in an img tag, or if you call cbl.solve with the path to the image (which internally creates an img tag).