v3: follows, notifications, invite-only registration, unread markers
This commit is contained in:
@@ -12,7 +12,9 @@ function extractVideoId(url: string): string | null {
|
||||
if (u.pathname === "/watch" || u.pathname.startsWith("/watch?")) {
|
||||
return u.searchParams.get("v");
|
||||
}
|
||||
if (u.pathname.startsWith("/embed/") || u.pathname.startsWith("/shorts/")) {
|
||||
if (
|
||||
u.pathname.startsWith("/embed/") || u.pathname.startsWith("/shorts/")
|
||||
) {
|
||||
return u.pathname.split("/")[2] || null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user