Greasy Fork 还支持 简体中文。

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. // @version 141023
  8. //
  9. // @namespace https://greasyfork.org/users/6280
  10. // ==/UserScript==
  11. var url = location.href;
  12. var n = url.indexOf('html5');
  13. var m = url.indexOf('user');
  14. if (n == -1 && m == -1)
  15. location.href = url + '&html5=1'