Advertisement
congdantoancau

My youtube css

Dec 25th, 2017
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.01 KB | None | 0 0
  1. /*Audio only*/
  2. video { display: none !important;}
  3. /*Player height*/
  4. #player .player-api, #placeholder-player .player-api { height: 40px;}
  5. /*Background*/
  6. .ytp-iv-video-content{  background: url("https://s3.envato.com/files/231857282/Preview%20Mexico%20590x332.jpg");}
  7. #player-playlist .watch-playlist{   background: url("https://st2.depositphotos.com/1859105/6997/i/950/depositphotos_69979599-stock-photo-wood-table-top-background-and.jpg");}
  8. #player-playlist .playlist-videos-list,
  9. #player-playlist .playlist-videos-list li, #player-playlist .playlist-videos-list .yt-ui-ellipsis
  10. {   background: transparent;}
  11.  
  12. .hidden{display: none;}
  13.  
  14. <script>
  15. // Remove related videos
  16. $(document).ready(function () {
  17.     setInterval(function() {
  18.     if ($('#watch-appbar-playlist').length)
  19.         $('#watch7-sidebar').addClass('hidden');
  20.     else
  21.         $('#watch7-sidebar').css('margin-top', '5%');
  22.     }, 60000);
  23. });
  24.  
  25. // Media play key
  26. $(document).keyup(function(e) {
  27.   if (e.keyCode==179)
  28.     $('.ytp-play-button').trigger('click');
  29. });
  30.  
  31. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement