Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Disable Download Button in Video Module -->
- <script>
- window.onload = function() {
- videos = document.querySelectorAll('video');
- [].forEach.call(videos, function(video) {
- video.setAttribute("controlsList", "nodownload");
- });
- };
- </script>
- <!-- Disable Right-click on All Media -->
- <script>
- document.addEventListener("contextmenu", function(e){
- e.preventDefault();
- }, false);
- </script>
- <!-- Remove Download Button in Video Module -->
- <script>
- jQuery(document).ready(function() {
- if (jQuery('.lwp-no-download .et_pb_video_box').length !== 0) {
- jQuery(".lwp-no-download .et_pb_video_box").find('video').attr('controlsList', 'nodownload');
- }
- });
- </script>
Add Comment
Please, Sign In to add comment