# إضافة حماية حقوق النشر للمواضيع الموسومة

**URL:** <https://meta.discourse.org/t/add-copyright-protection-to-tagged-topics/208970>\
**Category:** Developers\
**Tags:** how-to\
**Created:** [12 نوفمبر 2021، 12:28م UTC](https://meta.discourse.org/t/add-copyright-protection-to-tagged-topics/208970 "2021-11-12T12:28:40Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)\
**Post date:** [17 ديسمبر 2022، 9:05ص UTC](https://meta.discourse.org/t/add-copyright-protection-to-tagged-topics/208970/12 "2022-12-17T09:05:21Z")

</div>

Hello,

Here is a _quick and hacky_ solution to disable download on videos.

Paste this to Common / Header

Use this, if you want to disable only the download button from video controls.

```xml
<script type="text/discourse-plugin" version="0.8">
  api.decorateCooked(
    $elem => $elem.find('video').attr('controlsList', 'nodownload'),
    { id: 'disable-video-download-button' }
  );
</script>

```

* * *

Use this, if you want to disable download button from video controls and disable right click (context menu) on video. So it prevents the video download with right click or long tap (mobile) from context menu.

```xml
<script type="text/discourse-plugin" version="0.8">
  api.decorateCooked(
    $elem => $elem.find('video')
    // disable download button from controls
    .attr('controlsList', 'nodownload')
    // disable right click context menu
    .on('contextmenu', function(e) {
      e.preventDefault()
    }),
    { id: 'disable-video-download' }
  );
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/add-copyright-protection-to-tagged-topics/208970)._
