Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(youtube): channel name and viewed content #8362

Merged
merged 14 commits into from
May 11, 2024
2 changes: 1 addition & 1 deletion websites/Y/YouTube/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion websites/Y/YouTube/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ presence.on("UpdateData", async () => {
).textContent;
// Get channel name when viewing a channel
} else if (
document.querySelector("#text.ytd-channel-name")?.textContent !==
"" &&
theusaf marked this conversation as resolved.
Show resolved Hide resolved
documentTitle.includes(
document.querySelector("#text.ytd-channel-name")?.textContent
)
Expand All @@ -348,7 +350,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()}`;
Expand Down