fix hid vod bug

This commit is contained in:
Lawrence Hook
2023-06-15 08:55:39 -04:00
parent c76bd89441
commit d6000589be
+2 -2
View File
@@ -194,11 +194,11 @@ function runDynamicSettings() {
});
// VODs
const vodSelector = '#metadata-line span:nth-child(2)';
const vodSelector = '#metadata-line span';
const vodSpans = qsa(vodSelector).filter(span => span.innerText.includes('Streamed'));
vodSpans.forEach(span => {
const video = span.closest('ytd-grid-video-renderer');
const updatedGridVideo = badge.closest('ytd-rich-item-renderer');
const updatedGridVideo = span.closest('ytd-rich-item-renderer');
video?.setAttribute('is_vod', '');
updatedGridVideo?.setAttribute('is_vod', '');
});