diff --git a/sortbylikecount.js b/sortbylikecount.js index e6a92c2..c271115 100644 --- a/sortbylikecount.js +++ b/sortbylikecount.js @@ -88,8 +88,22 @@ } + // Add CSS to override the preview thumb image container dimensions + function addCustomStyles() { + const style = document.createElement('style'); + style.textContent = ` + .plyr__preview-thumb__image-container { + width: 85px !important; + height: 50px !important; + } + `; + document.head.appendChild(style); + console.log('Custom styles added for preview thumb image container'); + } + // Run the sort function after the DOM content has loaded window.addEventListener('load', function() { + addCustomStyles(); addSortButton(); sortAllVideos(); })