Skip to content

Commit 09f7997

Browse files
authored
Update youtube.provider.ts
1 parent 5488a05 commit 09f7997

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

apps/extension/src/providers/list/youtube.provider.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import { ProviderInterface } from "@gitroom/extension/providers/provider.interfa
22

33
export class YoutubeProvider implements ProviderInterface {
44
identifier = "youtube";
5-
baseUrl = "https://youtube.com";
6-
element = `tp-yt-paper-item[test-id="upload-beta"]`;
7-
attachTo = `#container.ytd-masthead`;
5+
baseUrl = "https://www.youtube.com";
6+
element = `ytd-topbar-menu-button-renderer button[aria-label^="Create"]`;
7+
attachTo = `#end`;
88
style = "dark" as "dark";
99

1010
findIdentifier = (element: HTMLElement) => {
11-
// Extracts video ID from URL if available, else fallback to the full URL
1211
const match = window.location.href.match(/v=([\w-]{11})/);
1312
return match ? match[1] : window.location.href;
1413
};

0 commit comments

Comments
 (0)