YouTube - Show Buttons On Hover When Paused

Hide buttons when the video is paused and show them again when hovered

目前為 2021-09-11 提交的版本,檢視 最新版本

  1. /* ==UserStyle==
  2. @name YouTube - Show Buttons On Hover When Paused
  3. @namespace https://github.com/pabli24
  4. @version 1.0.0
  5. @description Hide buttons when the video is paused and show them again when hovered
  6. @author Pabli
  7. @license MIT
  8. @homepageURL https://github.com/pabli24/YTPlayerHideButtonsWhenPaused
  9. @supportURL https://github.com/pabli24/YTPlayerHideButtonsWhenPaused/issues
  10. ==/UserStyle== */
  11.  
  12. @-moz-document domain("youtube.com") {
  13. .paused-mode .ytp-gradient-top,
  14. .paused-mode .ytp-gradient-bottom,
  15. .paused-mode .ytp-chrome-top,
  16. .paused-mode .ytp-chrome-bottom,
  17. .paused-mode .branding-img-container,
  18. .paused-mode .ytp-pause-overlay {
  19. opacity: 0
  20. }
  21. .html5-video-player:hover .ytp-gradient-top,
  22. .html5-video-player:hover .ytp-gradient-bottom,
  23. .html5-video-player:hover .ytp-chrome-top,
  24. .html5-video-player:hover .ytp-chrome-bottom,
  25. .html5-video-player:hover .branding-img-container,
  26. .html5-video-player:hover .ytp-pause-overlay {
  27. opacity: 1
  28. }
  29. }