aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/content.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content.ts')
-rw-r--r--src/content.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content.ts b/src/content.ts
index 9952a9dd..87dc0dbe 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -918,6 +918,8 @@ async function getVideoInfo(): Promise<void> {
function getYouTubeVideoID(document: Document): string | boolean {
const url = document.URL;
+ // clips should never skip, going from clip to full video has no indications.
+ if (url.includes("youtube.com/clip/")) return false;
// skip to URL if matches youtube watch or invidious or matches youtube pattern
if ((!url.includes("youtube.com")) || url.includes("/watch") || url.includes("/shorts/") || url.includes("playlist")) return getYouTubeVideoIDFromURL(url);
// skip to document and don't hide if on /embed/