r/userscripts • u/Hakorr • Jul 19 '22
A Universal GUI for Userscripts — UserGui: Looking for feedback
Hey r/userscripts,
There didn't seem to be any easy way to implement a floating GUI to a userscript, and some existing GUI libraries looked outdated. I often just resulted to having settings on the source code itself, but that wasn't very user-friendly, which I would like my scripts to be. You'd be surprised how many people use userscripts, and have little to no knowledge of coding. They might not be able to fully enjoy your userscript without a GUI.
I decided to make my own userscript GUI library: UserGui. It should ease the process of creating the GUI and let you focus more on your userscript. The project is still in early stages of development, but I am still looking for feedback, such as bugs, annoying features or just the general experience you had setting up the GUI.

If creating the GUI seems confusing, don't worry, I'm planning on creating a simple builder in which you can easily modify the GUI and with a click of a button generate all the necessary code. It will skip a lot of the steps you see on the documentation currently. The builder would also have more Bootstrap 5 elements for your GUI.
(Looking at the examples might help you understand how UserGui functions)
Anyhow, I hope you give it a go and help me create the most simple userscript GUI library there is!
3
3
2
u/brazenvoid Nov 11 '22
That's good neat package, just to be truly easy to use, IMO a solution should be made without explicit HTML.
I have made such for my scripts but its old now (Bootstrap v4.6), though am still shamelessly using it as it integrates with my library ecosystem and allows me to throw in a snap script whenever I please in under 2 hours.
You can see my libraries at: https://greasyfork.org/en/users/220654-brazenvoid
My scripts using them are for adult sites so you need an account to see those.