'Disable contextmenu on video in inspect mode
To disable the contextmenu I added the following to video tag:
<video oncontextmenu="return false;">
and it did the job.
But it is not working on inspect mode, so right click in inspect mode open the video contextmenu and the option to download the video.
I know it impossible to completly block the download of a video, I just don't want it to be so easy with a right-click.
If you inspect on youtube video, you can see it is a video tag, but somehow if you right click on youtube video in inspect mode you get a general conetxt menu like you click on a text (without the option to download the video).
How can I disable the context menu on inspect mode? or making the context menu in inspect mode a general context menu like a for text?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
