• 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 Support Themes & Styles hide the download button with CSS?

     
    • 0 Vote(s) - 0 Average

    hide the download button with CSS?

    need some help with CSS
    tiber
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2023 Sep
    Reputation: 0
    Country:United States
    #1
    2023-09-15, 05:47 PM
    Hi folks. I have a jellyfin server hosting mixed media - audio, books, and shows. The books (really, PDF) functionality in jellyfin requires that downloads are enabled. However, I don't really want to allow downloads, especially since the educational materials I am hosting rely on the mixed media presentation.

    I realize that simply hiding the downloads button doesn't prevent people from downloading things, but I would like to at least discourage users from doing it. Can someone please give me a CSS snippet I can include to hide the button? 

    Thanks!
    iFraan
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2023 Nov
    Reputation: 0
    #2
    2023-11-05, 06:06 AM
    you can disable download on a per-user basis

    Go to the user > Profile > Uncheck "Allow media downloads" setting
    tiber
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2023 Sep
    Reputation: 0
    Country:United States
    #3
    2023-11-06, 01:29 PM
    (2023-11-05, 06:06 AM)iFraan Wrote: you can disable download on a per-user basis

    Go to the user > Profile > Uncheck "Allow media downloads" setting

    Thanks for the reply. That will break the book reading plugin since the books have to be downloaded.

    However there is light at the end of the tunnel:

    Code:
    .downloadbutton-icon-complete,
    .downloadbutton-icon-on,
    .button-flat.btnDownload.detailButton.emby-button {
          display: none;
    }

    It may not be the best code, but that's what I came up with to keep the book functionality without letting people download the materials. Smiling-face
    solum
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2025 Feb
    Reputation: 0
    Country:Germany
    #4
    2025-02-12, 11:01 AM
    I used

    Code:
    button[data-id="download"] {
      display: none;
    }

    to hide the download button.

    Works for me.
    « 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