Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

re-enable disabled menu "save video as" chrome ext or chrome itself "Save Video As"

How can I re-enable the "Save Video As" option when it is disabled on a video?

This is basically the opposite of this question.

Is there a global command I can send to the chrome command line which re-enables this option?

Or is there a simple extension I could use?

like image 809
DOMDocumentVideoSource Avatar asked Sep 02 '25 17:09

DOMDocumentVideoSource


1 Answers

I think it is possible (at least in one way)

If we are using this method to "block" the menu context of the video

<video oncontextmenu="return false;">
   <source src="https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_2MB.mp4"/>
</video>

Then, all you need to do is to select video element (using dev-tools) and reverse the blocking command. For instance:

document.querySelector('body > video').oncontextmenu="return true"

Will re-enable the "right click menu" + allows you to download video using the "save video as..." option

As noted in accepted answer this is a bad practice because experienced users that already familiar with dev-tools can by-pass this easily. If you intend to protect your videos, please consider using a cloud service that specialized in that specific task.

like image 174
ymz Avatar answered Sep 04 '25 09:09

ymz