There is no way for a plugin to hook or alter index.html - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Development (https://forum.jellyfin.org/f-development) +--- Forum: Plugin Development (https://forum.jellyfin.org/f-plugin-development) +--- Thread: There is no way for a plugin to hook or alter index.html (/t-there-is-no-way-for-a-plugin-to-hook-or-alter-index-html) |
There is no way for a plugin to hook or alter index.html - SethBacon - 2024-06-18 Im trying every which way to get some middleware to inject into index.html or main.jellyfin.bundle.js from a plugin (based on the template) but it is impossible, or fuck you, or something.. Jellyfin server plugins cant mess with jellyfin web? RE: There is no way for a plugin to hook or alter index.html - crobibero - 2024-06-18 No, that is not supported. RE: There is no way for a plugin to hook or alter index.html - SethBacon - 2024-06-18 Thank you, its a relief to know it wasn't my fault anyways. I'll go back to editing js chunks like a proper goon, but sleep soundly in my goon den knowing there wasn't a better way. RE: There is no way for a plugin to hook or alter index.html - Namo - 2024-10-06 Hey, Just wanted to mention, that it is possible. I do it (copied it myself from Jellyscrub) https://github.com/Namo2/InPlayerEpisodePreview The general approach here is that you inject a new script tag into index.html on server start (can fail due to file permissions) You will bundle a js file with your dll containing every change etc. The script tag in index.html will call your controller/endpoint which will return the js scipt file from step 2 Sry @SethBacon for disturbing your peacful sleep and @ devs for any question or problem that will come up because of plugins which do unsupported things RE: There is no way for a plugin to hook or alter index.html - JellyHunter - 2025-01-25 (2024-10-06, 08:52 AM)Namo Wrote: Hey,You shouldn't have to say sorry for being creative and finding new ways and ideas to make Jellyfin even better, I salute you bro! RE: There is no way for a plugin to hook or alter index.html - Venson - 2025-01-26 https://github.com/jellyfin/jellyfin-meta/discussions/34 TL;DR We dont support server plugins modfiying the WebUI because its just one client and we dont give one client preferable treatment, its a total pain to maintain and breaks every update, this kind of js injection does only really work on the webUI and no other client making it very limited in scope. |