HTML5 on Youtube

Makes Youtube use HTML5

  1. // ==UserScript==
  2. // @name HTML5 on Youtube
  3. // @namespace notconform@gmail.com
  4. // @description Makes Youtube use HTML5
  5. // @include http://www.youtube.com/*
  6. // @include https://www.youtube.com/*
  7. // @version 4
  8. // @grant none
  9. // ==/UserScript==
  10. var myURL = location.href;
  11. var watch = myURL.indexOf("watch");
  12. var enableOrnot = myURL.indexOf("html5");
  13. if (watch > 0 && enableOrnot == -1){
  14. location.href += "&html5=1";
  15. }