# Video Gallery: How to hide Download button in player

**URL:** <https://community.elfsight.com/t/video-gallery-how-to-hide-download-button-in-player/175582>\
**Category:** Pro Tips\
**Tags:** video-gallery\
**Created:** [October 1, 2026, 12:37pm UTC](https://community.elfsight.com/t/video-gallery-how-to-hide-download-button-in-player/175582 "2026-10-01T12:37:16Z")\
**Posts on this page:** 1\
**Page:** 1

<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:37pm UTC](https://community.elfsight.com/t/video-gallery-how-to-hide-download-button-in-player/175582/1 "2026-10-01T12:37:17Z")

</div>

Want to keep your **[Video Gallery](https://elfsight.com/video-gallery-widget/)** player a little cleaner — or simply prefer visitors to watch your videos on the website rather than download them?

By default, the player includes a **Download** button, and there’s currently no built-in setting to hide it. But you can easily remove it with a small Custom JS tweak.

Just add the following script to the **Custom JS** field on the **Settings** tab of your widget:

```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)

  

**Before:**

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/3/2/32d4ed6d6bfadedd8e5b327386e30f846b39f32d.jpeg)

  

**After:**

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/3/5/35efb2d87b09fa036a52d928e97e4e91c62d5129.jpeg)

  

> Folks, was this solution helpful? Let us know in the comments below 😉
