• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Development Plugin Development There is no way for a plugin to hook or alter index.html

     
    • 0 Vote(s) - 0 Average

    There is no way for a plugin to hook or alter index.html

    Invoking Cunninghams Law
    SethBacon
    Offline

    Member

    Posts: 51
    Threads: 3
    Joined: 2023 Nov
    Reputation: 5
    Country:Canada
    #1
    2024-06-18, 02:51 AM (This post was last modified: 2024-06-18, 02:55 AM by SethBacon. Edited 1 time in total.)
    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?
    crobibero
    Offline

    Core Team (Server & Plugins)

    Posts: 245
    Threads: 0
    Joined: 2023 Jun
    Reputation: 17
    Country:United States
    #2
    2024-06-18, 03:20 AM
    No, that is not supported.
    1
    1
    SethBacon
    Offline

    Member

    Posts: 51
    Threads: 3
    Joined: 2023 Nov
    Reputation: 5
    Country:Canada
    #3
    2024-06-18, 04:11 AM
    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.
    Namo
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2023 Dec
    Reputation: 0
    Country:Germany
    #4
    2024-10-06, 08:52 AM
    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
    1
    1
    1
    1
    1
    1
    JellyHunter
    Offline

    Junior Member

    Posts: 28
    Threads: 3
    Joined: 2025 Jan
    Reputation: 0
    #5
    2025-01-25, 11:24 PM (This post was last modified: 2025-01-25, 11:25 PM by JellyHunter.)
    (2024-10-06, 08:52 AM)Namo Wrote: 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
    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!
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 378
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #6
    2025-01-26, 07:31 AM
    https://github.com/jellyfin/jellyfin-met...ussions/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.
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode