Jellyfin Forum
hide the download button with CSS? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Themes & Styles (https://forum.jellyfin.org/f-themes-styles)
+--- Thread: hide the download button with CSS? (/t-hide-the-download-button-with-css)



hide the download button with CSS? - tiber - 2023-09-15

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!


RE: hide the download button with CSS? - iFraan - 2023-11-05

you can disable download on a per-user basis

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


RE: hide the download button with CSS? - tiber - 2023-11-06

(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