File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
apps/extension/src/providers/list Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,12 @@ import { ProviderInterface } from "@gitroom/extension/providers/provider.interfa
22
33export 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 } ;
You can’t perform that action at this time.
0 commit comments