I have a webpage on which I'm doing tons of cool stuff using greasemonkey. I'm actually pretty terrible at greasemonkey/javascript
but I'm learning quick. Every once in a while I get a really terrible CAPTCHA validation which I want to automate. I have a command-line utility that can do this with local and remote files, but not with the file in question because It's behind a session..
tim@g2sv ocr-thingy my-image.png
135189
Works like a charm. I'm looking for a way to pass the image from the website (running the script) to the utility. I don't care how complicated it has to be, but at the moment I'm clueless. I've been thinking about providing the utility as some type of REST-like API for greasemonkey to interface with but I don't know how to supply an image to an API other than by passing the URL which doesn't work (as stated before). Greasemonkey (luckly) doesn't allow you to download a file an run software on my PC so the most straightforward option is out.
I'm open to all suggestions it's a fun side-project for me so the crazier the better ;)
I would prefer an option that silently runs in the background (doesn't take or require focus like mouse and keyboard controlling software, java robot).
Maybe you're interested to know I'm not trying to brake any laws or anything, the owner of the website knows I'm doing this and was interested to see if I was able to do it!