Skip to content

Commit

Permalink
Closes #958
Browse files Browse the repository at this point in the history
Improve video thumbnail background size
  • Loading branch information
ParticleCore committed Mar 21, 2024
1 parent 6d1b807 commit b6235fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/chrome/css/content-script.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#movie_player.unstarted-mode:is(.playing-mode, .paused-mode):not(.buffering-mode) > *:not(.ytp-cued-thumbnail-overlay) {
display: none;
}
#movie_player > .ytp-cued-thumbnail-overlay > .ytp-cued-thumbnail-overlay-image {
background-size: contain !important;
}
/* end | autoplay */

/* ini | video focus */
Expand Down
2 changes: 1 addition & 1 deletion src/chrome/js/background-inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ function mainScript(extensionId, SettingData, defaultSettings) {

const chat = document.getElementById("chat-container");

if (chat) {
if (chat && !chat.firstElementChild.hasAttribute("collapsed")) {

const videoContainer = document.getElementById("player-full-bleed-container");

Expand Down
3 changes: 3 additions & 0 deletions src/firefox/css/content-script.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#movie_player.unstarted-mode:is(.playing-mode, .paused-mode):not(.buffering-mode) > *:not(.ytp-cued-thumbnail-overlay) {
display: none;
}
#movie_player > .ytp-cued-thumbnail-overlay > .ytp-cued-thumbnail-overlay-image {
background-size: contain !important;
}
/* end | autoplay */

/* ini | video focus */
Expand Down
2 changes: 1 addition & 1 deletion src/firefox/js/background-inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ function mainScript(extensionId, SettingData, defaultSettings) {

const chat = document.getElementById("chat-container");

if (chat) {
if (chat && !chat.firstElementChild.hasAttribute("collapsed")) {

const videoContainer = document.getElementById("player-full-bleed-container");

Expand Down

0 comments on commit b6235fa

Please sign in to comment.