[GH-ISSUE #5420] Feature Request: ability for admin to inject js into all Open-WebUI (adding shortcuts, better UI, etc) #52645

Closed
opened 2026-05-05 13:45:03 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @thiswillbeyourgithub on GitHub (Sep 14, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5420

The initial idea was to add keyboard shortcuts and make them customizable (by the admin, not the user). But to bring maximum extensibility for the admin and lower the burden on developpers I'm suggesting this somewhat larger and easier feature:

  • In the admin settings, add a new tab "js" containing a text field that will be injected into openwebui.
  • This would make it trivial to add shortcuts, modify the UI, etc. It would give considerable control to the admin, even able to break it if they want too.
  • Also needed would be a toggle switch at the top to disable the injection.
  • As well as an env variable to disable the injection on startup, just as a last resort solution if something goes wrong.

An alternative would be to not modify the UI and simply inject the content of a local js file if present and specified by an env variable.

Here's a non exhaustive list of issue and discussions that would be solveable without bothering the devs if that was implemented:

I'm aware there are ways to inject js into a page via browser extensions, but that won't work on mobile, work computers, my granny's computer etc.

It would also make Open-WebUI much able to customize the UI for people with accessibility issues, or tighten security by hiding some features from non admin users etc.

What do you think?

Originally created by @thiswillbeyourgithub on GitHub (Sep 14, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/5420 The initial idea was to add keyboard shortcuts and make them customizable (by the admin, not the user). But to bring maximum extensibility for the admin and lower the burden on developpers I'm suggesting this somewhat larger and easier feature: - In the admin settings, add a new tab "js" containing a text field that will be injected into openwebui. - This would make it trivial to add shortcuts, modify the UI, etc. It would give considerable control to the admin, even able to break it if they want too. - Also needed would be a toggle switch at the top to disable the injection. - As well as an env variable to disable the injection on startup, just as a last resort solution if something goes wrong. An alternative would be to not modify the UI and simply inject the content of a local js file if present and specified by an env variable. Here's a non exhaustive list of issue and discussions that would be solveable without bothering the devs if that was implemented: - #3172 - #2847 - #2869 - #4426 - #4754 - #3158 - #2846 - #1414 - #4682 - #4422 - #5241 - #5147 - #3960 - #4074 - #2698 - #1132 Probably more but basically anything that could be solved by an UI change can possibly be helped by this. I'm aware there are ways to inject js into a page via browser extensions, but that won't work on mobile, work computers, my granny's computer etc. It would also make Open-WebUI much able to customize the UI for people with accessibility issues, or tighten security by hiding some features from non admin users etc. What do you think?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#52645