Fix shorts watch history

This commit is contained in:
goodtube4u
2025-11-16 16:28:08 +10:00
parent 14a37fc627
commit 5af2974cbd
2 changed files with 14 additions and 2 deletions

View File

@@ -413,6 +413,14 @@
// Debug message
console.log('[GoodTube] Shorts removed');
}
// Otherwise, allow shorts in watch history
else {
cssOutput += `
ytd-item-section-renderer[page-subtype='history'] ytd-reel-shelf-renderer {
display: block !important;
}
`;
}
// Hide suggested videos if they're not enabled

8
goodtube.min.js vendored
View File

@@ -80,13 +80,17 @@
.ytp-miniplayer-button {
display: none !important;
}
`,he==="false"&&(e+=`
`,he==="false"?(e+=`
ytm-pivot-bar-item-renderer:has(> .pivot-shorts),
ytd-rich-section-renderer,
grid-shelf-view-model {
display: none !important;
}
`,console.log("[GoodTube] Shorts removed")),lt==="true"&&(e+=`
`,console.log("[GoodTube] Shorts removed")):e+=`
ytd-item-section-renderer[page-subtype='history'] ytd-reel-shelf-renderer {
display: block !important;
}
`,lt==="true"&&(e+=`
/* Hide suggested videos */
ytd-watch-flexy #secondary #related {
display: none !important;