Advertisement
omgfrost

TwitchHtml5Greasemonkey

Nov 29th, 2015
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Twitch.tv Full HTML5 Player
  3. // @version 1.2.1
  4. // @description Twitch.tv Full HTML5 Player
  5. // @author Devrim
  6. // @match http://twitch.tv/*
  7. // @match http://*.twitch.tv/*
  8. // @run-at document-end
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. setTimeout(function() {
  13. $(".js-player").html(
  14. $("<iframe>").attr({
  15. "src": "http://player.twitch.tv/?branding=false&html5&showInfo=false&channel=" + $(location).attr('pathname'),
  16. "width": "100%",
  17. "height": "100%",
  18. "allowfullscreen": true,
  19. "webkitallowfullscreen": true,
  20. "mozallowfullscreen": true
  21. }).css(
  22. "border", 0
  23. )
  24. );
  25. $(".player-overlay").hide();
  26. $(".player-loading").hide();
  27. },5000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement