feat: hide with controls timer for non-youtube websites, site-specific rules for it too

This commit is contained in:
2026-03-29 15:13:59 -04:00
parent 03f5dbaa96
commit 14e37c62d5
4 changed files with 134 additions and 18 deletions
+4 -2
View File
@@ -24,14 +24,16 @@
/* YouTube auto-hide feature: fade controller with YouTube's controls */
/* When the wrapper has ytp-autohide class, hide it (unless vsc-hidden overrides) */
.vsc-controller.ytp-autohide:not(.vsc-hidden) {
.vsc-controller.ytp-autohide:not(.vsc-hidden),
.vsc-controller.vsc-idle-hidden:not(.vsc-hidden) {
visibility: hidden;
transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
opacity: 0;
}
/* Show it temporarily when it has vsc-show class */
.vsc-controller.ytp-autohide.vsc-show:not(.vsc-hidden) {
.vsc-controller.ytp-autohide.vsc-show:not(.vsc-hidden),
.vsc-controller.vsc-idle-hidden.vsc-show:not(.vsc-hidden) {
visibility: visible;
opacity: 1;
}