User:Ghost7706: Difference between revisions
Added link Tags: Mobile edit Mobile web edit Visual edit |
No edit summary Tags: Mobile edit Mobile web edit Visual edit |
||
| Line 1: | Line 1: | ||
(() => { | |||
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 = ` | |||
<nowiki><h1 style="color:red">⚠️ WARNING!</h1></nowiki> | |||
<nowiki><h2>Michael Jackson Phobia Warning</h2></nowiki> | |||
<nowiki><p></nowiki> | |||
This video contains imagery of Michael Jackson. | |||
It may cause fear, discomfort or sudden fright. | |||
<nowiki></p></nowiki> | |||
<nowiki><p>Viewer discretion is advised.</p></nowiki> | |||
<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 = | |||
"<nowiki>https://www.youtube.com/embed/</nowiki>" + | |||
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); | |||
}; | |||
})(); | |||
Revision as of 12:36, 23 November 2026
(() => {
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);
};
})();