Skip to content

Commit

Permalink
Merge pull request #2383 from raszpl/patch-5
Browse files Browse the repository at this point in the history
Update general.js disableThumbnailPlayback search page fix
  • Loading branch information
ImprovedTube authored Jun 17, 2024
2 parents 33fb5bc + a66054a commit 9b17645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js&css/extension/www.youtube.com/general/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ extension.features.thumbnailsQuality = function (anything) {
--------------------------------------------------------------*/
extension.features.disableThumbnailPlayback = function (event) {
if (event instanceof Event) {
if (event.composedPath().some(elem => (elem.matches != null ? elem.matches("#content ytd-rich-item-renderer") : false)
if (event.composedPath().some(elem => (elem.matches != null && elem.matches('#content.ytd-rich-item-renderer, #contents.ytd-item-section-renderer'))
)) {
event.stopImmediatePropagation();
}
Expand Down

0 comments on commit 9b17645

Please sign in to comment.