YouTube - Show Buttons On Hover When Paused

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

当前为 2021-09-29 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name YouTube - Show Buttons On Hover When Paused
  3. @namespace https://github.com/pabli24
  4. @version 1.0.2
  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:not(.unstarted-mode) > div:not(.html5-video-container) {
  14. opacity: 0
  15. }
  16. .paused-mode:hover > div:not(.html5-video-container) {
  17. opacity: 1
  18. }
  19. }