gofullscreen

fix missing button for full screen mode at html5 videos

目前为 2015-10-13 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name gofullscreen
  3. // @description fix missing button for full screen mode at html5 videos
  4. // @namespace gnblizz
  5. // @include *
  6. // @noframes
  7. // @version 1
  8. // @grant none
  9. // @icon data:image/gif;base64,R0lGODlhMAAwAKECAAAAAICAgP///////yH5BAEKAAMALAAAAAAwADAAAALQnI+py+0Po5y02ouz3rz7D4biBJTmiabqyrbuC8fyHAf2jedpzuOvAAwKh6mhUfg7Hks3gHLpehptwIBTioxig0zrdStIgrslMFA8pCKp1oAZjXW6w/Mt/Nl2t8HeFl7o5QZgBagEYyawNxhUl7h4dlelFlZG+QVY6aglmIjjuKd50xla9RKI0mSCqaPJSMM0aEK4mhfbpSnTabM4WXrShtpHI6gqKvmKnCwns0tm2lOsLP3aUy08aK0zvc3d7b09Ei4+Tl5ufo6err7O3n5QAAA7
  10. // ==/UserScript==
  11. (function(af) {
  12. var i = af.length;
  13. if(i) do {
  14. af[--i].setAttribute('allowfullscreen', 'true');
  15. } while(i);
  16. }(document.querySelectorAll('iframe:not([allowfullscreen])')))
  17. //public domain by gnblizz
  18. //contact me with my user name + '@web.de'