diff options
author | Umimaso <git@umimaso.com> | 2021-06-21 00:56:26 +0100 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-06-23 14:34:55 -0500 |
commit | 2d1794889aa3591b31a62f325a0c11a8553ba2d9 (patch) | |
tree | 8695134d0fcdf2b04e5a21d494640632bb33d9a6 /youtube/static/watch.css | |
parent | ff7aae05c45ccbde4fd14e6e5e7e3cb4edf8c816 (diff) | |
download | yt-local-2d1794889aa3591b31a62f325a0c11a8553ba2d9.tar.lz yt-local-2d1794889aa3591b31a62f325a0c11a8553ba2d9.tar.xz yt-local-2d1794889aa3591b31a62f325a0c11a8553ba2d9.zip |
feat: autoplay for related videos
Add autoplay support for related videos. Move the playlist autoplay code
into this shared script. Add the SameSite=Strict attribute to the
autoplay cookie due to Firefox soon rejecting cookies which use
SameSite=None without the secure attribute.
Closes: #50
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/static/watch.css')
-rw-r--r-- | youtube/static/watch.css | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube/static/watch.css b/youtube/static/watch.css index 90c08d5..60abd21 100644 --- a/youtube/static/watch.css +++ b/youtube/static/watch.css @@ -345,6 +345,14 @@ label[for=options-toggle-cbox] { .side-videos { grid-area: side-videos; } +.side-videos .related-autoplay { + list-style: none; + display: grid; + grid-template-columns: repeat(2, auto); + justify-content: start; + grid-column-gap: 0.5rem; +} + /* playlist items */ .side-videos .site-playlist { border-style: solid; |