(() => {
const videoID = "dtp8ggCXvgw";
const overlay = document.createElement("div");
overlay.style.cssText = `
position:fixed;
inset:0;
z-index:999999;
background:#080808;
color:white;
display:flex;
align-items:center;
justify-content:center;
flex-direction:column;
text-align:center;
font-family:Arial;
padding:20px;
`;
overlay.innerHTML = `
<h1 style="color:red">⚠️ WARNING!</h1>
<h2>Michael Jackson Phobia Warning</h2>
<p>
This video contains imagery of Michael Jackson.
It may cause fear, discomfort or sudden fright.
</p>
<p>Viewer discretion is advised.</p>
<button id="mjContinue" style="
background:#b00000;
color:white;
padding:15px 25px;
border:0;
border-radius:8px;
font-size:17px;
">CONTINUE</button>
`;
document.body.appendChild(overlay);
document.getElementById("mjContinue").onclick = () => {
overlay.remove();
const video = document.createElement("iframe");
video.src =
"https://www.youtube.com/embed/" +
videoID + "?autoplay=1&playsinline=1";
video.allow =
"autoplay; encrypted-media; picture-in-picture";
video.allowFullscreen = true;
video.style.cssText = `
position:fixed;
inset:0;
width:100%;
height:100%;
border:0;
z-index:999998;
`;
document.body.appendChild(video);
};
})();