A Graphical user interface for userscripts. Creating user-friendly userscripts can be a bit challenging, as the majority of regular users are scared to touch your code. UserGUI allows you to unlock your userscript to more people, and create a more pleasing experience.
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_xmlhttpRequest
// @require https://github.com/AugmentedWeb/UserGui/raw/Release-1.0/usergui.js
Internal GUI | External GUI | |
---|---|---|
Parent | iFrame | New Window |
Positions | Inside document body | Anywhere in screen |
Weakness | Can’t move outside of window | Disabled popups hide the GUI |
Mobile | Supports mobile devices, can’t move window | Supports mobile devices |
Browsers | Tested on Chromium & Firefox | Tested on Chromium & Firefox (Unstable) |
Image | ![]() |
![]() |
Notes | Use the internal GUI when possible, it’s more stable and works on most browsers. | Avoid using the external GUI. It’s unstable due to different browsers restricting and altering the window.open function. |
UserGUI is built around BeautifyTools’ Form Builder. It eases the design process of your GUI’s form so that you don’t have to remember a million different commands and element names.
After designing the form, it can be exported as a HTML string. With one UserGUI command it can be added to the GUI. The design process is increadibly easy and fast to do. You’ll love it once you get used to it.
If you add multiple pages to the GUI, navigation tabs will generated automatically.
The GUI is partly isolated from the site’s environment. Both internal and external GUI live in its own document. This means that the site’s functions and CSS styles won’t interfere with the GUI that easily.
The isolated environment and the option to use either an internal or external GUI help keep the GUI working in almost any situation.
UserGUI uses the power of Bootstrap 5 to make beautiful interfaces. Bootstrap is loaded using the userscript manager’s GM_xmlHttpRequest
function. This is done in order to bypass possible CORS-limitations.
UserGUI doesn’t need to load anything else than Bootstrap 5. Everything else functions from pure vanilla JavaScript.
I’m glad you’re interested in using UserGUI, welcome! To get started, please take a look at the documentation.