![]() |
|
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 |