I'm trying to make a chrome extension that will add HTML code to YouTube but when I try adding HTML code, the YouTube website just blackout. I want to add my code on top of YouTube already existing HTML code.
if(window.location.href.includes('youtube.com')) {
document.querySelector('body').innerHTML += `<h1>Hello</h1>`;
}