A script, to be injected into Gogs installation (Gogs ─ https://github.com/gogits/gogs is a "painless self-hosted Git service"), that after a little while begins to screw with your mind. Especially effective after long hours spent in front of the computer: all-night coding sessions, work / academic emergencies, etc.. Not for the fainthearted.
Fix the issue with LongHours UI mod menu item in .../user/settings being not clickable if SSH Keys item is currently selected.
Include javascript.svg logo icon with the mod installation set, amend installation instructions accordingly.
Add a quick-settings menu drop-up into the standard Gogs footer.
Fill the settings page itself with properly named and annotated (even if yet unconnected) controls to set mod's parameters. Use either exactly the elements found in other settings pages or use Semantic (for now use version 2.3.1, later - guess it from the active Gogs installation itself).
Add a general enable/disable control to the .../user/settings page, to control if LongHours is to run at all upon injection and properly connect it to the data - this one control should be completely functional.
Make this JS logo change appearance to further indicate injections' status (i.e. not present, loaded, active, error(?), disabled, waiting to go active, modified settings, original settings) and add the same status as text popup, appearing on hover over the settings item.
In order to avoid depending on any external framework or library as well as for general lightness of code implement two-way coupling between settings values stored in global object's properties and UI controls for setting them, as found on .../user/settings page. Do so, by creating a proxy for the object with handler monitoring .set(...) calls and informing all concerned parties of any changes via custom events.
Implement some simple client-side storage for mod settings' values (at this point - not necessarily connected to the particular Gogs instalaltion)
It's weird but shouldn't be difficult to fix - for some reason clicking on LongHours UI mod menu item in settings page (.../user/settings, demo) works perfectly unless SSH Keys item has been clicked previously and is currently on display.