Behold! the Scriptinator! A plasmoid button to launch custom scripts on click and on mouse scroll, allowing you to change icon dynamically
Merging all in a single script with functions for the init and periodic scripts caused issues. Apparently, Scriptinator requires at least init, periodic and onCick scripts to be kept separate.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by Sadi58 and has received 0 comments.