Skip to content

Commit

Permalink
Fix preview blur
Browse files Browse the repository at this point in the history
  • Loading branch information
kkurczewski committed Apr 9, 2024
1 parent 02a6546 commit 5516bd2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/content/preview.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@
#video-preview #thumbnail-container {
/* hides thumbnail before video preview */
display: none;
}

#video-preview :not(video) {
/* fixes blur on search page when preview video is enabled */
pointer-events: none;
}
3 changes: 2 additions & 1 deletion src/content/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.blur :is(#thumbnail, .thumbnail-wrapper) img,
.blur #thumbnail #mouseover-overlay img,
.ytp-endscreen-content .blur div,
:has(.blur:hover) #video-preview video {
:has(.blur:hover) #video-preview video,
#video-preview :hover video {
--blur: 15px;

filter: blur(var(--blur));
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Blurred thumbnails",
"version": "1.5.2",
"version": "1.5.3",
"description": "Blur thumbnails on YT page for whatever reason",
"icons": {
"16": "icons/icon16.png",
Expand Down

0 comments on commit 5516bd2

Please sign in to comment.