From d57f95fba6d73e879c107f130d81b9c89052a383 Mon Sep 17 00:00:00 2001 From: Booteille Date: Sun, 17 Feb 2019 20:26:21 +0100 Subject: [PATCH] use body instead of classname, fix styling of the banner on invidious --- src/youtube.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/youtube.ts b/src/youtube.ts index 1256881..accd9a4 100644 --- a/src/youtube.ts +++ b/src/youtube.ts @@ -43,8 +43,8 @@ async function peertubeify(query: String) { const link = videoLink(url, video); removeVideoLink(); - - const querySelector = isYouTube ? 'ytd-app' : '.pure-g'; + + const querySelector = isYouTube ? 'ytd-app' : 'body'; document.querySelector(querySelector).appendChild(link); }).catch(removeVideoLink); break;