Remove controlslist=nodownload

Removes the attribute controlslist=nodownload of video tag.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Remove controlslist=nodownload
// @namespace   remove-controlslist-nodownload
// @version     7
// @description Removes the attribute controlslist=nodownload of video tag.
// @author      Shawphy
// @grant       none
// @include *
// ==/UserScript==

(function() {
var target = document.querySelector('body'); 
var observer = new MutationObserver(function(mutations) {  
  mutations.forEach(function(mutation) { 
    Array.prototype.forEach.call(document.querySelectorAll('video[controlslist~=nodownload]'), function(el){
      el.controlsList.remove("nodownload");
    });
  }); 
}); 

var config = { childList: true, subtree: true } 
observer.observe(target, config); 
})();