diff --git a/websites/Y/YouTube/metadata.json b/websites/Y/YouTube/metadata.json index 87a2afbbebe6..ee269c22e8d1 100644 --- a/websites/Y/YouTube/metadata.json +++ b/websites/Y/YouTube/metadata.json @@ -75,7 +75,7 @@ "*://www.youtube.com/*", "*://studio.youtube.com/*" ], - "version": "5.11.0", + "version": "5.11.1", "logo": "https://cdn.rcd.gg/PreMiD/websites/Y/YouTube/assets/logo.png", "thumbnail": "https://cdn.rcd.gg/PreMiD/websites/Y/YouTube/assets/thumbnail.jpg", "color": "#E40813", diff --git a/websites/Y/YouTube/presence.ts b/websites/Y/YouTube/presence.ts index 6929620b0391..c48df3085d3c 100644 --- a/websites/Y/YouTube/presence.ts +++ b/websites/Y/YouTube/presence.ts @@ -327,6 +327,7 @@ presence.on("UpdateData", async () => { ).textContent; // Get channel name when viewing a channel } else if ( + !document.querySelector("#text.ytd-channel-name")?.textContent && documentTitle.includes( document.querySelector("#text.ytd-channel-name")?.textContent ) @@ -348,7 +349,7 @@ presence.on("UpdateData", async () => { strings.browsingThrough } ${tabSelected} ${document .querySelector( - '[class="style-scope ytd-c4-tabbed-header-renderer iron-selected"]' + '[class="style-scope ytd-tabbed-page-header"] [aria-selected="true"]' ) ?.textContent.trim() .toLowerCase()}`;