stener("mousedown", closeContextMenu);
  }

  var downloadButton = document.getElementById("download")
  if (downloadButton) {
    downloadButton.addEventListener("click", function() {
      closeContextMenu();
    })
  }

  var copyUrlButton = document.getElementById("copyurl")
  if (copyUrlButton) {
    copyUrlButton.addEventListener("click", function() {
      copyTextToClipboard("https://streamable.com/" + self.video.shortcode);
      closeContextMenu();
    })
  }

  var copyEmbedButton = document.getE