aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-01-08 15:22:21 -0500
committerAjay <[email protected]>2022-01-08 15:22:21 -0500
commit0da8a34e7a25fdafe55301e8abc58245f7303a24 (patch)
tree84939362596a4928a22c50816eb58c6954ecc05c /src/render
parent02d8bf9a6f4ad9875dab9cfa4e37f1d884697abd (diff)
downloadSponsorBlock-0da8a34e7a25fdafe55301e8abc58245f7303a24.tar.gz
SponsorBlock-0da8a34e7a25fdafe55301e8abc58245f7303a24.zip
Add title element for category pill on updated youtube
Diffstat (limited to 'src/render')
-rw-r--r--src/render/CategoryPill.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/CategoryPill.tsx b/src/render/CategoryPill.tsx
index fc20c6db..266796d1 100644
--- a/src/render/CategoryPill.tsx
+++ b/src/render/CategoryPill.tsx
@@ -23,8 +23,8 @@ export class CategoryPill {
vote: (type: number, UUID: SegmentUUID, category?: Category) => Promise<VoteResponse>): Promise<void> {
const referenceNode =
await GenericUtils.wait(() =>
- // YouTube, Mobile YouTube, Invidious
- document.querySelector(".ytd-video-primary-info-renderer.title, .slim-video-information-title, #player-container + .h-box > h1") as HTMLElement);
+ // New YouTube Title, YouTube, Mobile YouTube, Invidious
+ document.querySelector("#title h1, .ytd-video-primary-info-renderer.title, .slim-video-information-title, #player-container + .h-box > h1") as HTMLElement);
if (referenceNode && !referenceNode.contains(this.container)) {
this.container = document.createElement('span');