mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #5420] Feature Request: ability for admin to inject js into all Open-WebUI (adding shortcuts, better UI, etc) #52645
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
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:
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?