Simple Youtube HTML5 enabler

This scipt (simple) enables html5 on youtube by adding &html5=1 to the url. It takes no options.

目前為 2014-10-23 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Simple Youtube HTML5 enabler
  3. // @author Gerhard Sliwa
  4. // @description This scipt (simple) enables html5 on youtube by adding &html5=1 to the url. It takes no options.
  5. // @include http://www.youtube.com/*
  6. // @include https://www.youtube.com/*
  7. // @grant none
  8. // @version 141023
  9. //
  10. // @namespace https://greasyfork.org/users/6280
  11. // ==/UserScript==
  12. var url = location.href;
  13. var n = url.indexOf('html5');
  14. var m = url.indexOf('user');
  15. if (n == -1 && m == -1)
  16. location.href = url + '&html5=1'