to run, look at the .js file. Copy the whole thing. then paste it in your browser's development console.
Errorcode 429 means you tried to place again too soon. Don't worry about it.
It looks at every pixel, and calls them black/not black. it then looks at every pixel neighboring the pixel. If its black, the pixel gets a point. the pixels with the most points put into a hat, and one gets drawn at random to be a target.
Feel free to update/improve/fork.
(This script is chaos atm)