A new automatic horn & KR solving userscript, with a focus on code readability and modularity. Note that the published userscript is generated by a JS bundler, so don't try to debug it directly. Instead, go to the script's GitHub repo (linked below) and download the source code. The repo has instructions on how to run the bundler yourself.
Great start on the script. There is no way to know if the script blew the horn without a manual page refresh. I recommend adding a refresh page after the conditions are met, and the horn is blown.