i'm developing chrome extension. I want to add button to youtube. But button is not showing. (It only appears for a very short time while the page is loading, then disappears immediately.)
Content.js
let btn = document.createElement("button");
btn.innerHTML = "Music Button";
btn.id = "btn-music";
btn.style.zIndex = "10";
document.body.appendChild(btn);
document.getElementById("title").insertBefore(btn, document.getElementById("title").children[0]);