Last active
January 20, 2016 02:45
-
-
Save unRob/762c895bc452bba18f1f to your computer and use it in GitHub Desktop.
Full Window Youtube
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run the youtube player full-window mode by adding this bookmarlet | |
<a href='javascript:(function(){var c,b,a=document.body.classList;if(a.contains("fsyoutube-available")){a.toggle("fsyoutube")}else{var d=document.createElement("style");document.head.appendChild(d);b=d.sheet;c=[".fsyoutube #masthead-positioner{display:none;}",".fsyoutube #movie_player{position:fixed;width:100%;height:100%;top:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;}",".fsyoutube video{margin:0 auto;position:relative!important;top:auto!important;left:auto!important;width:auto!important;height:auto!important;max-width:100%!important;min-width:100%!important;}",".ytp-chrome-bottom{width:98%!important;}"];c.forEach(function(e){b.insertRule(e)});a.add("fsyoutube-available");a.add("fsyoutube")}})();)'>FWYT</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var css, ss, | |
cl = document.body.classList; | |
if (cl.contains('fsyoutube-available')){ | |
cl.toggle('fsyoutube'); | |
} else { | |
var s = document.createElement("style"); | |
document.head.appendChild(s); | |
ss = s.sheet; | |
css = [ | |
'.fsyoutube #masthead-positioner { display: none; }', | |
'.fsyoutube #movie_player {position: fixed; width: 100%; height: 100%; top: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center;}', | |
'.fsyoutube video {margin:0 auto; position: relative !important; top: auto !important; left: auto !important; width: auto !important; height: auto !important; max-width: 100% !important; min-width: 100% !important;}', | |
'.ytp-chrome-bottom { width: 98% !important; }' | |
]; | |
css.forEach(function(rule){ ss.insertRule(rule);}); | |
cl.add('fsyoutube-available'); | |
cl.add('fsyoutube'); | |
} | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){var c,b,a=document.body.classList;if(a.contains("fsyoutube-available")){a.toggle("fsyoutube")}else{var d=document.createElement("style");document.head.appendChild(d);b=d.sheet;c=[".fsyoutube #masthead-positioner{display:none;}",".fsyoutube #movie_player{position:fixed;width:100%;height:100%;top:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;}",".fsyoutube video{margin:0 auto;position:relative!important;top:auto!important;left:auto!important;width:auto !important;height:auto!important;max-width:100%!important;min-width:100%!important;}",".ytp-chrome-bottom{width:98% !important;}"];c.forEach(function(e){b.insertRule(e)});a.add("fsyoutube-available");a.add("fsyoutube")}})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment