Skip to content

Commit

Permalink
Merge pull request #2678 from marvinl803/feature-issue-2670
Browse files Browse the repository at this point in the history
issue #2670 - Feature to remove thumbnail dots
  • Loading branch information
ImprovedTube authored Nov 17, 2024
2 parents 957d9c2 + eae1e10 commit c78dcd4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,9 @@
"hideThumbnailOverlay": {
"message": "Hide buttons on thumbnails"
},
"hideThumbnailDots": {
"message": "Hide '⫶' (more actions) on thumbnails"
},
"hideThumbnails": {
"message": "Hide thumbnails"
},
Expand Down
8 changes: 8 additions & 0 deletions js&css/extension/www.youtube.com/general/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# Mark watched videos
# Hide aniamted thubmnails
# Hide buttons on thumbnails
# Hide dots on thumbnails
--------------------------------------------------------------*/
html[it-cursorLighting=true] #below {opacity:.4; transition:3s;}
html[it-cursorLighting=true] #below:hover {opacity:1; transition:.5s;}
Expand Down Expand Up @@ -69,6 +70,13 @@ html[it-hide-animated-thumbnails='true'] #preview>ytd-video-preview,
html[it-hide-thumbnail-overlay='true'] #hover-overlays,
html[it-hide-thumbnail-overlay='true'] #player-controls.ytd-video-preview,
/*--------------------------------------------------------------
# HIDE DOTS ON THUMBNAILS
--------------------------------------------------------------*/
html[it-hide-thumbnail-dots='true'] button#button[aria-label="Action menu"],
html[it-hide-thumbnail-dots="true"] button.yt-spec-button-shape-next[aria-label="More actions"] {
display: none;
}
/*--------------------------------------------------------------
# EMBEDDED VIDEOS
--------------------------------------------------------------*/
html[it-embeddedHidePauseOverlay='true'] .ytp-pause-overlay,
Expand Down
5 changes: 5 additions & 0 deletions menu/skeleton-parts/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ extension.skeleton.main.layers.section.general = {
text: 'hideThumbnailOverlay',
tags: 'preview'
},
hide_thumbnail_dots: {
component: 'switch',
text: 'hideThumbnailDots',
tags: 'preview'
},
thumbnails_quality: {
component: 'select',
text: 'thumbnailsQuality',
Expand Down

0 comments on commit c78dcd4

Please sign in to comment.