Skip to content

Commit

Permalink
Update general.js disableThumbnailPlayback search page fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raszpl authored Jun 16, 2024
1 parent 85bf124 commit 83e197a
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().find(elem => (elem.matches != null && elem.matches('#content.ytd-rich-item-renderer, #contents.ytd-item-section-renderer'))
)) {
event.stopImmediatePropagation();
}
Expand Down

0 comments on commit 83e197a

Please sign in to comment.