Youtube Html5 Disable

///

  1. // ==UserScript==
  2. // @name Youtube Html5 Disable
  3. // @description ///
  4. // @author Trahbumbeiten
  5. // @icon http://youtube.com/favicon.ico
  6. // @homepageURL https://github.com/
  7. // @namespace //
  8. // @version 1.0
  9. // @include http*://*.youtube.com/*
  10. // @include http*://youtube.com/*
  11. // @include http*://*.youtu.be/*
  12. // @include http*://youtu.be/*
  13. // ==/UserScript==
  14.  
  15. //YOYTUBE--------------------------HTML5--------------------------DISABLE 1
  16. window.addEventListener("popstate",function(e){
  17. JS();
  18. });
  19. function JS(){
  20. var script = document.createElement("script");
  21. script.type = "text/javascript";
  22. script.textContent = 'document.createElement("video").constructor.prototype.canPlayType = function(type){return ""}';
  23. document.documentElement.appendChild(script);
  24. }
  25. JS();