# How to hide Download button in the video player in Video Gallery

**URL:** <https://community.elfsight.com/t/how-to-hide-download-button-in-the-video-player-in-video-gallery/175543>\
**Category:** Customization\
**Tags:** video-gallery\
**Created:** [September 30, 2026, 8:55pm UTC](https://community.elfsight.com/t/how-to-hide-download-button-in-the-video-player-in-video-gallery/175543 "2026-09-30T20:55:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Klinger](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/daniel_klinger/32/104170_2.png) [@Daniel\_Klinger](https://community.elfsight.com/u/Daniel_Klinger)\
**Post date:** [September 30, 2026, 8:55pm UTC](https://community.elfsight.com/t/how-to-hide-download-button-in-the-video-player-in-video-gallery/175543/1 "2026-09-30T20:55:38Z")

</div>

Hi everyone is there a way to hide the download option (via custom css) from the video options? We are streaming the video from custom urls (non-public options). We would rather not share our videos in this way. It looks like they player is a custom one (not the one that is coming from the actual streaming source.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [October 1, 2026, 12:10pm UTC](https://community.elfsight.com/t/how-to-hide-download-button-in-the-video-player-in-video-gallery/175543/3 "2026-10-01T12:10:37Z")

</div>

Hi there and welcome to the Community, @Daniel_Klinger 👋

Our devs came up with a custom script for this case (it’s already added to the **Custom JS** field on the **Settings** tab of your widget’ settings):

```auto
util.waitForElement('.es-playlist-player-view-player-wrap').then(player => {
  new MutationObserver(() => {
    const video = player.querySelector('.es-media-video-player video:not([data-processed])');
    if (!video) return;
    video.setAttribute('controlsList', 'nodownload');
    video.setAttribute('data-processed', '');
  }).observe(player, {
    childList: true,
    subtree: true
  });
});

```

  

> **Note:** Custom JS doesn’t function in the preview mode, so you can check the result right on your website or through the [Share Link](https://help.elfsight.com/article/1471-how-to-share-widget-via-link)

Check it out and let me know if you like the result 😉
