This script is no longer updated. For a more updated version check out https://github.com/Citrinate/gleamSolver
Warning: Using automation scripts is against the TOS of gleam.io and will most likely get your account banned. Use with caution.
Solves almost all tasks on gleam.io
How to use this script ?
The easiest way is to get Greasemonkey/Tampermonkey extension for you browser.
Firefox: https://addons.mozilla.org/firefox/addon/greasemonkey/
Chrome: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
Opera: https://addons.opera.com/en/extensions/details/tampermonkey-beta/
After you installed it, click this link and you should get an install prompt:
https://github.com/Tackyou/Gleam.io-Autosolve/raw/master/gleamio.user.js