use body instead of classname, fix styling of the banner on invidious
This commit is contained in:
parent
8eca34b755
commit
d57f95fba6
|
@ -43,8 +43,8 @@ async function peertubeify(query: String) {
|
||||||
const link = videoLink(url, video);
|
const link = videoLink(url, video);
|
||||||
|
|
||||||
removeVideoLink();
|
removeVideoLink();
|
||||||
|
|
||||||
const querySelector = isYouTube ? 'ytd-app' : '.pure-g';
|
const querySelector = isYouTube ? 'ytd-app' : 'body';
|
||||||
document.querySelector(querySelector).appendChild(link);
|
document.querySelector(querySelector).appendChild(link);
|
||||||
}).catch(removeVideoLink);
|
}).catch(removeVideoLink);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue