lewisje

Twitch HTML5 Video Bookmarklet

Feb 4th, 2016
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:$('.js-player').html($('<iframe>').attr('src','http://player.twitch.tv/?branding=false&showInfo=false&html5&'+(window.location.pathname.indexOf('/v/')>0?'video=v'+window.location.pathname.split('/')[3]:'channel='+window.location.pathname.substr(1))).attr('width','100%').attr('height','100%').attr('frameborder','0').attr('scrolling','no').attr('seamless','seamless').attr('allowfullscreen','allowfullscreen').attr('webkitallowfullscreen','webkitallowfullscreen').attr('mozallowfullscreen','mozallowfullscreen').attr('sandbox','allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts ms-allow-popups').css('border',0));
Add Comment
Please, Sign In to add comment